From ac72d67a290d282c93be779d03874232b21c4c4e Mon Sep 17 00:00:00 2001 From: Duda Nogueira Date: Tue, 1 Sep 2026 10:00:42 -0300 Subject: [PATCH] test(journey): tolerate server default RQ quantizer The WCD cluster this journey test targets now applies a default RQ quantizer to HNSW indexes, so the strict deep-equal on the collection config fails with `quantizer: undefined` vs `{type: 'rq', bits: 8, rescoreLimit: 20}`. Because the test connects to a fixed cloud cluster rather than the local container, this broke every `tests-without-auth` matrix job at once, on every Weaviate version, across all open PRs. Pull `quantizer` out of the deep-equal and assert its shape loosely, matching the approach already taken in fa9c488f for the openai hfresh expectation. The rest of the config is still compared strictly. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01SXVS2uKtuEH91QEVka8zWV --- test/collections/journey.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/collections/journey.test.ts b/test/collections/journey.test.ts index 673baeb7..11d01222 100644 --- a/test/collections/journey.test.ts +++ b/test/collections/journey.test.ts @@ -1,5 +1,5 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest'; -import weaviate, { CollectionConfig, WeaviateClient } from '../../src/index.js'; +import weaviate, { CollectionConfig, VectorIndexConfigHNSW, WeaviateClient } from '../../src/index.js'; import { GeoCoordinate } from '../../src/proto/v1/properties.js'; describe('Journey testing of the client using a WCD cluster', () => { @@ -56,6 +56,9 @@ describe('Journey testing of the client using a WCD cluster', () => { .get(collectionName) .config.get() .then(async (config) => { + // Defaults on the shared WCD cluster change over time; keep assertions here tolerant. + const { quantizer } = config.vectorizers.default.indexConfig as VectorIndexConfigHNSW; + expect(['rq', undefined]).toContain(quantizer?.type); expect(config).toEqual({ name: collectionName, description: undefined, @@ -202,7 +205,7 @@ describe('Journey testing of the client using a WCD cluster', () => { multiVector: undefined, skip: false, vectorCacheMaxObjects: 1000000000000, - quantizer: undefined, + quantizer, type: 'hnsw', }, indexType: 'hnsw',