Repository navigation
baselines tests: retry the store's 429/5xx like the CLI, and print its answer - #211
Merged
Merged
Conversation
…hat it answered Since #176 put every integration test in one binary, baselines' five upload tests sometimes fail together on CI (runs 47362577655, 47345661986, main ef8a7a9), all at baselines.rs:137, within a second of each other, about 10 s into the run, while other uploads in the same run pass. The assert didn't print the status, so the cause is unknown, and it doesn't reproduce locally (6 full runs, fresh RustFS, 100 concurrent PUTs to one key with DELETEs mixed in). The helper now PUTs as the CLI does (client.rs retryable: 429 and 5xx tried again, each retry printed) and fails with the URL, status and body otherwise, so a 4xx cause shows itself on the next failure.
…nce, same pixels); jittered backoff like the CLI Every test built the identical 8x6 PNGs, so with all tests in one binary, baselines (and gallery, retention, project_deletion) wrote and verified the same blobs/<sha256> at once. A per-World nonce in a tEXt chunk keeps the pixels and fingerprints and gives each test its own key. Retries now wait 0.5 s doubling plus up to half again at random, 6 tries, as the CLI does.
ndbroadbent
force-pushed
the
fix/baselines-upload-flake
branch
from
December 4, 2026 16:11
3416917 to
a16553d
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 4, 2026
…e since #176) The baselines flake's cause, printed by #211's diagnostic on main 40dcc92: HTTP 404 NoSuchBucket. In one test binary, baselines' tests all create the bucket at once on a fresh RustFS; one gets 409 while another's create is in progress, and its upload then finds no bucket. ensure_bucket now polls HEAD bucket until it answers (up to 10 s).
ndbroadbent
added a commit
that referenced
this pull request
Dec 4, 2026
…e since #176) (#217) The baselines flake's cause, printed by #211's diagnostic on main 40dcc92: HTTP 404 NoSuchBucket. In one test binary, baselines' tests all create the bucket at once on a fresh RustFS; one gets 409 while another's create is in progress, and its upload then finds no bucket. ensure_bucket now polls HEAD bucket until it answers (up to 10 s).
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.
Since #176 (one integration test binary),
app/tests/baselines.rs' five upload tests sometimes fail together on CI, all atbaselines.rs:137, within a second of each other, about 10 s into the run. Other uploads in the same run pass. Reported by the gallery session.Failing runs:
The assert didn't print the status, so the cause isn't known yet. I tried to reproduce it on agents-box-2, and none of these failed:
I also checked whether any test changes S3 settings, process env, proxies or the clock for the whole binary. None does.
Change (test-only):
crates/visualci-cli/src/client.rs,retryable): a 429 or 5xx from the store is tried again, up to 4 tries with a short backoff, and each retry is printed.Locally:
cargo test -p visualci-app --test app baselinespasses (15), and clippy is clean.Update (second commit), after an independent review. The likely trigger is one hot key. Every test built the identical 8x6 PNGs, so in the one binary, baselines (and gallery, retention, project_deletion) all wrote and verified the same
blobs/<sha256>together at start-up. On a busy runner, a 503 from RustFS's per-object lock is a plausible result.Worldnow puts a nonce in atEXtchunk, so the pixels and fingerprints are the same and the blob key is the test's own. A new test checks this.Locally: the full app test binary passes (350), and clippy is clean.
Follow-up story sc-9380:
BlobStore::verifydeletes the object on any mismatch, including a plain 404. With keys shared across customers, a race could delete an object someone else still needs.