Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ on:
env:
WEAVIATE_127: 1.27.27
WEAVIATE_128: 1.28.16
WEAVIATE_129: 1.29.9
WEAVIATE_130: 1.30.17
WEAVIATE_131: 1.31.16
WEAVIATE_132: 1.32.10
WEAVIATE_133: 1.33.0
WEAVIATE_129: 1.29.11
WEAVIATE_130: 1.30.22
WEAVIATE_131: 1.31.20
WEAVIATE_132: 1.32.18
WEAVIATE_133: 1.33.6
WEAVIATE_134: 1.34.1

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -41,15 +42,16 @@ jobs:
fail-fast: false
matrix:
versions: [
{ node: "22.x", weaviate: $WEAVIATE_127},
{ node: "22.x", weaviate: $WEAVIATE_128},
{ node: "22.x", weaviate: $WEAVIATE_129},
{ node: "22.x", weaviate: $WEAVIATE_130},
{ node: "22.x", weaviate: $WEAVIATE_131},
{ node: "22.x", weaviate: $WEAVIATE_132},
{ node: "18.x", weaviate: $WEAVIATE_133},
{ node: "20.x", weaviate: $WEAVIATE_133},
{ node: "22.x", weaviate: $WEAVIATE_133},
{ node: "24.x", weaviate: $WEAVIATE_127},
{ node: "24.x", weaviate: $WEAVIATE_128},
{ node: "24.x", weaviate: $WEAVIATE_129},
{ node: "24.x", weaviate: $WEAVIATE_130},
{ node: "24.x", weaviate: $WEAVIATE_131},
{ node: "24.x", weaviate: $WEAVIATE_132},
{ node: "24.x", weaviate: $WEAVIATE_133},
{ node: "20.x", weaviate: $WEAVIATE_134},
{ node: "22.x", weaviate: $WEAVIATE_134},
{ node: "24.x", weaviate: $WEAVIATE_134},
]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -80,7 +82,7 @@ jobs:
fail-fast: false
matrix:
versions: [
{ node: "22.x", weaviate: $WEAVIATE_133},
{ node: "24.x", weaviate: $WEAVIATE_134},
]
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "jest --no-cache --useStderr --runInBand --detectOpenHandles",
Expand Down
20 changes: 14 additions & 6 deletions src/collections/config/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Testing of the collection.config namespace', () => {

afterAll(() => client.collections.deleteAll());

it('should be able get the config of a collection without generics', async () => {
it('should be able to get the config of a collection without generics', async () => {
const collectionName = 'TestCollectionConfigGetWithGenerics';
type TestCollectionConfigGet = {
testProp: string;
Expand Down Expand Up @@ -68,7 +68,9 @@ describe('Testing of the collection.config namespace', () => {
dynamicEfMax: 500,
dynamicEfFactor: 8,
vectorCacheMaxObjects: 1000000000000,
filterStrategy: 'sweeping',
filterStrategy: (await client.getWeaviateVersion().then((ver) => ver.isLowerThan(1, 34, 0)))
? 'sweeping'
: 'acorn',
flatSearchCutoff: 40000,
distance: 'cosine',
multiVector: undefined,
Expand Down Expand Up @@ -124,7 +126,9 @@ describe('Testing of the collection.config namespace', () => {
dynamicEfMax: 500,
dynamicEfFactor: 8,
vectorCacheMaxObjects: 1000000000000,
filterStrategy: 'sweeping',
filterStrategy: (await client.getWeaviateVersion().then((ver) => ver.isLowerThan(1, 34, 0)))
? 'sweeping'
: 'acorn',
flatSearchCutoff: 40000,
distance: 'cosine',
multiVector: undefined,
Expand Down Expand Up @@ -609,7 +613,9 @@ describe('Testing of the collection.config namespace', () => {
dynamicEfMax: 500,
dynamicEfFactor: 8,
vectorCacheMaxObjects: 1000000000000,
filterStrategy: 'sweeping',
filterStrategy: (await client.getWeaviateVersion().then((ver) => ver.isLowerThan(1, 34, 0)))
? 'sweeping'
: 'acorn',
flatSearchCutoff: 40000,
distance: 'cosine',
multiVector: undefined,
Expand Down Expand Up @@ -682,7 +688,7 @@ describe('Testing of the collection.config namespace', () => {
expect(config.multiTenancy.enabled).toEqual(true);
});

it('should be able update the config of a collection with legacy vectors', async () => {
it.only('should be able update the config of a collection with legacy vectors', async () => {
const clientV2 = weaviateV2.client({
host: 'http://localhost:8080',
});
Expand Down Expand Up @@ -719,7 +725,9 @@ describe('Testing of the collection.config namespace', () => {
dynamicEfMax: 500,
dynamicEfFactor: 8,
vectorCacheMaxObjects: 1000000000000,
filterStrategy: 'sweeping',
filterStrategy: (await client.getWeaviateVersion().then((ver) => ver.isLowerThan(1, 34, 0)))
? 'sweeping'
: 'acorn',
flatSearchCutoff: 40000,
distance: 'cosine',
multiVector: undefined,
Expand Down
2 changes: 2 additions & 0 deletions src/connection/integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StartedWeaviateContainer, WeaviateContainer } from '@testcontainers/weaviate';
import { Wait } from 'testcontainers';
import weaviate from '..';
import { WeaviateStartUpError } from '../errors';
import { Meta } from '../openapi/types';
Expand All @@ -14,6 +15,7 @@ describe('Integration testing of the ConnectionGRPC class', () => {

beforeAll(async () => {
container = await new WeaviateContainer(`semitechnologies/weaviate:${process.env.WEAVIATE_VERSION}`)
.withWaitStrategy(Wait.forHttp('/v1/.well-known/ready', 8080).withStartupTimeout(10 * 1000))
.withExposedPorts(8080, 50051)
.withEnvironment({
GRPC_MAX_MESSAGE_SIZE: '1',
Expand Down