mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
update image for sql checker
update images for gha
This commit is contained in:
parent
b750440f90
commit
0c9890b70f
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -600,7 +600,7 @@ jobs:
|
||||
contents: read
|
||||
services:
|
||||
postgres:
|
||||
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
|
||||
image: tensorchord/vchord-postgres:pg14-v0.3.0
|
||||
env:
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_USER: postgres
|
||||
|
@ -37,8 +37,8 @@ services:
|
||||
image: redis:6.2-alpine@sha256:3211c33a618c457e5d241922c975dbc4f446d0bdb2dc75694f5573ef8e2d01fa
|
||||
|
||||
database:
|
||||
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
|
||||
command: -c fsync=off -c shared_preload_libraries=vectors.so
|
||||
image: tensorchord/vchord-postgres:pg14-v0.3.0
|
||||
command: -c fsync=off -c shared_preload_libraries=vchord.so
|
||||
environment:
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_USER: postgres
|
||||
|
@ -84,7 +84,7 @@ limit
|
||||
$7
|
||||
offset
|
||||
$8
|
||||
rollback
|
||||
commit
|
||||
|
||||
-- SearchRepository.searchDuplicates
|
||||
begin
|
||||
@ -115,7 +115,7 @@ from
|
||||
"cte"
|
||||
where
|
||||
"cte"."distance" <= $7
|
||||
rollback
|
||||
commit
|
||||
|
||||
-- SearchRepository.searchFaces
|
||||
begin
|
||||
|
@ -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': {
|
||||
|
@ -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_()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user