update image for sql checker

update images for gha
This commit is contained in:
mertalev
2025-05-09 18:26:41 -04:00
parent b750440f90
commit 0c9890b70f
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ export const getRepository = <K extends keyof RepositoriesTypes>(key: K, db: Kys
}
case 'search': {
return new SearchRepository(db, new ConfigRepository());
return new SearchRepository(db);
}
case 'session': {
+2 -4
View File
@@ -7,7 +7,7 @@ import { getKyselyConfig } from 'src/utils/database';
import { GenericContainer, Wait } from 'testcontainers';
const globalSetup = async () => {
const postgresContainer = await new GenericContainer('tensorchord/pgvecto-rs:pg14-v0.2.0')
const postgresContainer = await new GenericContainer('tensorchord/vchord-postgres:pg14-v0.3.0')
.withExposedPorts(5432)
.withEnvironment({
POSTGRES_PASSWORD: 'postgres',
@@ -17,9 +17,7 @@ const globalSetup = async () => {
.withCommand([
'postgres',
'-c',
'shared_preload_libraries=vectors.so',
'-c',
'search_path="$$user", public, vectors',
'shared_preload_libraries=vchord.so',
'-c',
'max_wal_size=2GB',
'-c',
@@ -13,6 +13,9 @@ export const newDatabaseRepositoryMock = (): Mocked<RepositoryInterface<Database
createExtension: vitest.fn().mockResolvedValue(void 0),
updateVectorExtension: vitest.fn(),
reindexVectorsIfNeeded: vitest.fn(),
getDimensionSize: vitest.fn(),
setDimensionSize: vitest.fn(),
deleteAllSearchEmbeddings: vitest.fn(),
prewarm: vitest.fn(),
runMigrations: vitest.fn(),
withLock: vitest.fn().mockImplementation((_, function_: <R>() => Promise<R>) => function_()),