Repository navigation
test: give each test client its own SDK retry partition - #199
Merged
Merged
Conversation
The SDK shares a retry token bucket among a process's clients with the same retry partition, which defaults to the service and region. Under cargo test, simulations running in parallel drew down each other's retry quota, so s3_express_overload_sdk_retries failed on every run while passing alone or under nextest. Each test client now gets its own partition. Fixes #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryGives each test client a separate AWS SDK retry quota so parallel tests do not consume each other's retries.
Reviews (1) · Last reviewed commit: "test: give each test client its own SDK ..." · Reviewed by Greptile |
Merged
shikhar
pushed a commit
that referenced
this pull request
Oct 28, 2026
## 🤖 New release * `cachey`: 0.12.1 -> 0.13.0 <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.13.0](0.12.1...0.13.0) - 2026-10-28 ### Added - *(object_store)* report early hedge outcomes ([#194](#194)) - *(object_store)* [**breaking**] model latency by size band ([#192](#192)) ### Fixed - *(object_store)* recognise bare 404 and 416 responses ([#200](#200)) ### Other - use Chainguard Rust for cachey ([#195](#195)) - give each test client its own SDK retry partition ([#199](#199)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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 #196.
cargo test --libfailed on every run insimulation_rescue_preserves_availability_and_work_under_overload. That test (s3_express_overload_sdk_retries) passes when run alone, under--test-threads=1, and under nextest, which CI uses.Cause
It isn't task scheduling order, as the issue suggests. Each test has its own paused runtime. The shared state is the AWS SDK's retry token bucket:
aws-smithy-runtimekeeps one in a process-wideStaticPartitionMapper retry partition. The partition defaults tos3-{region}, and every test client usesus-east-1. Simulations running in parallel in one process drew down the same retry quota, so SDK retries were denied depending on what else was running.Fix
The simulator, the downloader's scripted test clients, and the service's mock client each take a fresh
RetryPartition, so every test client gets its own quota, as a separate process would. Production is unchanged: the server builds one client, and sharing the quota across clients is the SDK's intended behavior.The issue's suggested change, gating the attempt budget on overload alone, would mask the symptom without removing the shared state.
Validation
cargo test --locked --lib: 190 passed on three runs in a row, wheremainfailed all three.main's. Sequential runs within one campaign never drew the bucket down enough to matter, so no reference results change.🤖 Generated with Claude Code