Repository navigation
CLI 0.2.19: snapshot uploads the store refuses are tried again - #128
Merged
Merged
Conversation
…connection) is tried again, up to six times
ndbroadbent
force-pushed
the
cli-upload-retry
branch
from
December 3, 2026 10:12
1a51e3a to
5872e3f
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 3, 2026
…the CLI's fingerprint; plugin 0.1.48 cli.md and screenshots.md say the CLI sends images by their SHA-256 and VisualCI fingerprints them; pdfs.md (and its skill) says why PDFs keep their fingerprint: their bytes change every run while what they draw doesn't.
ndbroadbent
added a commit
that referenced
this pull request
Dec 3, 2026
…the CLI's fingerprint; plugin 0.1.48 cli.md and screenshots.md say the CLI sends images by their SHA-256 and VisualCI fingerprints them; pdfs.md (and its skill) says why PDFs keep their fingerprint: their bytes change every run while what they draw doesn't.
ndbroadbent
added a commit
that referenced
this pull request
Dec 3, 2026
…the CLI's fingerprint; plugin 0.1.48 cli.md and screenshots.md say the CLI sends images by their SHA-256 and VisualCI fingerprints them; pdfs.md (and its skill) says why PDFs keep their fingerprint: their bytes change every run while what they draw doesn't.
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.
A CI run's upload failed on one 429 from the blob store. It was the journeys job on #126, run 47079339687:
The CLI uploads each file to its presigned storage URL, eight at a time, and gave up on the first refusal. R2 limits how fast one client may write. Customers' CI uploading hundreds of screenshots would hit this too.
Change
Client::put_blobsends each storage PUT. It tries again on a 429, a 5xx or a dropped connection (timeout, connect, request), up to six tries in all. It waits as long asRetry-Afterasks (at most 30 s), otherwise 0.5, 1, 2, 4, then 8 s. Any other refusal (a 403 from an expired URL) fails at once, as before.CLI 0.2.19: the workspace version, Cargo.lock's visualci-* entries (visualci_server included) and app/Cargo.lock's visualci-core. The docs'
VISUALCI_VERSION=lines move in a later commit, once the release is out.UPLOADS). Each batch of up to 500 files is split over 8 threads, and the batches run one after another.--verboseprints each retry:visualci: upload refused (try 2 of 6), trying again in 1.0 s.Tests
The tests run against a local storage server that answers with a set list of statuses:
a_refused_upload_is_tried_again: 429, then 503, then 200, so three PUTs and success.an_upload_refused_six_times_fails: 429 every time, so six PUTs, and the error names the 429.a_bad_request_is_not_tried_again: 403, so one PUT.fmt, clippy, and both locks pass with
cargo metadata --locked.