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
No known key found for this signature in database
GPG Key ID: DF6ABC77AAD98C95
6 changed files with 11 additions and 10 deletions

View File

@ -600,7 +600,7 @@ jobs:
contents: read contents: read
services: services:
postgres: postgres:
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 image: tensorchord/vchord-postgres:pg14-v0.3.0
env: env:
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres POSTGRES_USER: postgres

View File

@ -37,8 +37,8 @@ services:
image: redis:6.2-alpine@sha256:3211c33a618c457e5d241922c975dbc4f446d0bdb2dc75694f5573ef8e2d01fa image: redis:6.2-alpine@sha256:3211c33a618c457e5d241922c975dbc4f446d0bdb2dc75694f5573ef8e2d01fa
database: database:
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 image: tensorchord/vchord-postgres:pg14-v0.3.0
command: -c fsync=off -c shared_preload_libraries=vectors.so command: -c fsync=off -c shared_preload_libraries=vchord.so
environment: environment:
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres POSTGRES_USER: postgres

View File

@ -84,7 +84,7 @@ limit
$7 $7
offset offset
$8 $8
rollback commit
-- SearchRepository.searchDuplicates -- SearchRepository.searchDuplicates
begin begin
@ -115,7 +115,7 @@ from
"cte" "cte"
where where
"cte"."distance" <= $7 "cte"."distance" <= $7
rollback commit
-- SearchRepository.searchFaces -- SearchRepository.searchFaces
begin begin

View File

@ -170,7 +170,7 @@ export const getRepository = <K extends keyof RepositoriesTypes>(key: K, db: Kys
} }
case 'search': { case 'search': {
return new SearchRepository(db, new ConfigRepository()); return new SearchRepository(db);
} }
case 'session': { case 'session': {

View File

@ -7,7 +7,7 @@ import { getKyselyConfig } from 'src/utils/database';
import { GenericContainer, Wait } from 'testcontainers'; import { GenericContainer, Wait } from 'testcontainers';
const globalSetup = async () => { 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) .withExposedPorts(5432)
.withEnvironment({ .withEnvironment({
POSTGRES_PASSWORD: 'postgres', POSTGRES_PASSWORD: 'postgres',
@ -17,9 +17,7 @@ const globalSetup = async () => {
.withCommand([ .withCommand([
'postgres', 'postgres',
'-c', '-c',
'shared_preload_libraries=vectors.so', 'shared_preload_libraries=vchord.so',
'-c',
'search_path="$$user", public, vectors',
'-c', '-c',
'max_wal_size=2GB', 'max_wal_size=2GB',
'-c', '-c',

View File

@ -13,6 +13,9 @@ export const newDatabaseRepositoryMock = (): Mocked<RepositoryInterface<Database
createExtension: vitest.fn().mockResolvedValue(void 0), createExtension: vitest.fn().mockResolvedValue(void 0),
updateVectorExtension: vitest.fn(), updateVectorExtension: vitest.fn(),
reindexVectorsIfNeeded: vitest.fn(), reindexVectorsIfNeeded: vitest.fn(),
getDimensionSize: vitest.fn(),
setDimensionSize: vitest.fn(),
deleteAllSearchEmbeddings: vitest.fn(),
prewarm: vitest.fn(), prewarm: vitest.fn(),
runMigrations: vitest.fn(), runMigrations: vitest.fn(),
withLock: vitest.fn().mockImplementation((_, function_: <R>() => Promise<R>) => function_()), withLock: vitest.fn().mockImplementation((_, function_: <R>() => Promise<R>) => function_()),