Skip to content

test: fix flaky CI tests and test against Weaviate 1.39 - #486

Open
dudanogueira wants to merge 7 commits into
weaviate:mainfrom
dudanogueira:fix/flaky-ci-tests
Open

dudanogueira wants to merge 7 commits into
weaviate:mainfrom
dudanogueira:fix/flaky-ci-tests

Conversation

@dudanogueira

Copy link
Copy Markdown
Contributor

Fixes #485. Unblocks CI for #459 and any other open PR.

Journey test (test/collections/journey.test.ts)

Runs against a shared WCD cluster, not the version-matrix container, so it fails identically on every tests-without-auth job. The cluster now defaults replication.asyncEnabled to true. That's server configuration, not client behaviour, so the test now accepts any boolean instead of pinning false.

timeDecay boost test (test/collections/query/integration.test.ts)

All objects were inserted with createdAt: Date.now() while the decay origin is 2024-01-01 with a 35d scale, so every object's decay was ~0 and identical — the boost did nothing, and not.toEqual(baseline) only passed when float noise reordered ties. createdAt is now spread around the origin (origin, +30d, +1y), so the object at the origin — red, which ranks last on vector distance alone — gets a real boost.

Testing

Lint, prettier, and tsc pass. The boost suite is gated to ≥1.38 and my local server is 1.36, so it is verified by this PR's CI rather than locally.

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@dudanogueira
dudanogueira requested a review from a team as a code owner October 5, 2026 14:14
@dudanogueira dudanogueira changed the title test: fix journey replication assertion and flaky timeDecay boost test test: fix flaky CI tests and test against Weaviate 1.39 Oct 5, 2026
…st deterministic

The journey test runs against a shared WCD cluster whose default for
replication.asyncEnabled flipped to true, breaking every tests-without-auth
job. That value is owned by the cluster config, so accept any boolean.

The timeDecay boost test inserted all objects at Date.now() while decaying
from 2024-01-01 over 35d, so every object's boost was ~0 and identical and
the assertion only passed when float noise reordered ties. Spread createdAt
around the origin so the boost reorders results deterministically.

Fixes weaviate#485
The delete and create calls were fired without awaiting, so beforeAll could
resolve before the 'test' role existed, or the delete could land after the
create. assignRoles/revokeRoles then failed with 404 'role doesn't exist'.
1.38.18 includes the server fix for the backup status race where a poll
could read FAILED without an error (weaviate/weaviate 895cd4d409, first in
1.38.10), which flaked the 'fail restoring backup for existing class' test.
Before 1.38.10 a poll could read a failed restore as FAILED with no error
(fixed upstream in weaviate/weaviate 895cd4d409), so the error-message
assertion flaked. 1.33-1.37 have no backport.
… 1.38.16

The concept and extension endpoints were removed in 1.38.16 and 1.39.6
(weaviate/weaviate#13083), so these tests 404 on the latest patches.
Adds a requireLowerThan helper next to requireAtLeast.
…eaviate >= 1.39.3

1.39.3 added both fields to the RQ config (weaviate/weaviate#12502), so the
schema journey's deep-equal failed on 1.39.9.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: journey test asserts WCD cluster's replication default; timeDecay boost test is flaky

1 participant