Skip to content

tests: no unit tests for RetryPolicy boundary conditions — max_retries=0 immediate failure path, jitter bounds staying within the declared interval, and backoff saturation at max_delay_ms #528

Closed

Description

@alpergundogdu

The retry module in crates/cache/src/retry.rs implements exponential backoff with jitter but has no tests verifying that a zero-retry policy never sleeps, that computed delays never exceed max_delay_ms, or that the jitter factor keeps each delay within [base, base+jitter_range]. A regression in the delay formula would be invisible until an operator observed unexpectedly long origin stalls.


Filed via GitDailyReporterBot

Activity

  1. added
    kind:bug
    kind:test
    on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:bugkind:test

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions