Repository navigation
test: fix flaky timeDecay, users, backup and WCD journey tests - #486
Open
dudanogueira wants to merge 3 commits into
Open
dudanogueira wants to merge 3 commits into
dudanogueira wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
dudanogueira
force-pushed
the
fix/flaky-ci-tests
branch
from
October 5, 2026 14:49
7c89904 to
4e5eed7
Compare
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'.
…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
dudanogueira
force-pushed
the
fix/flaky-ci-tests
branch
from
October 30, 2026 09:01
4e5eed7 to
78b1648
Compare
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
🛡️ The following SAST misconfigurations have been detected
| NAME | FILE | ||
|---|---|---|---|
| GitHub Actions Workflow or Action Missing Top-Level Name | .../workflows/main.yaml | View in code |
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.
dudanogueira
force-pushed
the
fix/flaky-ci-tests
branch
from
October 30, 2026 09:04
78b1648 to
34f6d9c
Compare
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #485. Retargeted from
maintoweaviate-client: after thepackages/restructure (#307), the oldtest/layout and the 3.x releases live on this branch, and its CI still fails on these tests (for example the v3.15.2/v3.15.3 runs on 27 and 29 Oct). #496 ports the two fixes that still apply tomain.timeDecay boost test (
test/collections/query/integration.test.ts)All objects were inserted with
createdAt: Date.now(), while the decay origin is2024-01-01with a35dscale. Every object's decay was therefore effectively zero and identical, so the boost did nothing, andnot.toEqual(baseline)only passed when float noise reordered ties.createdAtis 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.WCD journey test (
test/collections/journey.test.ts)It runs against a shared WCD cluster, not the version-matrix container.
replication.asyncEnabledis that cluster's server default, which already flipped once (it was pinned totruein #494 after failing asfalse). The test now accepts any boolean instead of pinning the current default.users (
test/users/integration.test.ts)beforeAllfiredroles.delete/roles.createwithout awaiting them, so the role-assignment tests could run before thetestrole existed.backup (
test/backup/journey.test.ts)Before 1.38.10 the server could briefly report a failed restore as
FAILEDwith no error (weaviate/weaviate 895cd4d409), so asserting on the error message was flaky. The suite now runs only on >= 1.38.10.Dropped from the original PR
main.yamlon this branch was deliberately reverted to the older matrix in 96f0b1a, so that is left to the branch owners.centering/trainingLimitdefaults on 1.39.3+: not exercised without 1.39 in CI.Testing
tsc, eslint and prettier pass. The boost suite passed 3 out of 3 runs locally against Weaviate 1.38.2.