Skip to content

Make the slow-client storage failure test deterministic - #630

Closed
simonchrz wants to merge 1 commit into
git-pkgs:mainfrom
simonchrz:test/slow-client-deterministic
Closed

simonchrz wants to merge 1 commit into
git-pkgs:mainfrom
simonchrz:test/slow-client-deterministic

Conversation

@simonchrz

Copy link
Copy Markdown
Contributor

TestCacheMissSlowClientFailsWithoutStoredCopy (from #609) read the response right away and relied on the upstream copy outrunning the client. On a slow runner the client kept up, got the whole artifact, and the test failed: "read 409563 bytes without error" on Windows in #608 and #610.

The test now starts reading only after the proxy has closed the upstream body, so the client is always more than the feed limit behind. Reproduced the failure locally with a throttled upstream body; the new version doesn't depend on timing.

The test read the response right away and relied on the copy outrunning
it. On a slow runner the client kept up, got the whole artifact and the
test failed (seen on Windows). It now reads only after the upstream body
is closed, so the client is always behind.
@simonchrz
simonchrz requested a review from andrew October 28, 2026 16:01
@andrew

andrew commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Thanks for fixing this. Closing as a duplicate of 28ce5f4, which is already on main and fixes the same test race by waiting for the background fetch to finish before reading the response.

@andrew andrew closed this Oct 28, 2026
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.

2 participants