Skip to content

[test] Remove mock-specific resiliency backoff tuning#404

Open
mhatrevi wants to merge 1 commit into
mainfrom
vmhatre/res-retry-config
Open

[test] Remove mock-specific resiliency backoff tuning#404
mhatrevi wants to merge 1 commit into
mainfrom
vmhatre/res-retry-config

Conversation

@mhatrevi
Copy link
Copy Markdown
Contributor

Use the standard retry backoff constants for mock builds, increase the resiliency stress reset interval to match the longer timing, and remove the nextest serialization override for those stress tests.

Use the standard retry backoff constants for mock builds, increase the
resiliency stress reset interval to match the longer timing, and remove the
nextest serialization override for those stress tests.
Copilot AI review requested due to automatic review settings May 27, 2026 19:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes mock-only retry backoff tuning so mock builds use the same resiliency retry constants as non-mock builds, and adjusts stress-test/reset scheduling and nextest configuration accordingly.

Changes:

  • Remove cfg(feature = "mock") overrides for resiliency backoff base and jitter, standardizing on the 400ms/100ms constants.
  • Increase the mock resiliency stress Reset interval to align with the longer retry timing.
  • Remove the nextest ci-mock override that serialized resiliency stress tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
api/tests/src/resiliency/stress/tests.rs Updates mock Reset interval used by resiliency stress tests (but leaves some stale documentation).
api/lib/src/resiliency.rs Removes mock-specific backoff constants so retry timing matches the standard constants.
.config/nextest.toml Removes the ci-mock serialization override previously applied to resiliency stress tests.

Comment on lines 54 to 61
/// Delay between Reset triggers (ms).
///
/// Mock: the retry backoff base is 8 ms (see `BACKOFF_BASE_MS` in
/// `resiliency.rs` under `cfg(feature = "mock")`), and
/// `SessionNeedsRenegotiation` retries without backoff.
/// With 4 workers all serializing through `restore_partition`,
/// recovery completes quickly. 1 second is high enough for
/// recovery completes quickly. 3 seconds is high enough for
/// recovery to finish, but low enough that workers encounter
Comment thread api/lib/src/resiliency.rs
/// A uniform random value in `0..=BACKOFF_JITTER_MS` is added on top of
/// the exponential delay so that concurrent callers don't all retry at
/// exactly the same instant.
///
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