Skip to content

CICD-343 · Retry behaviour validation ​

Encyclopedia · Distributed systems and reliability testing · All snippets

Previous · CICD-342 · Next · CICD-344

1. Where it fits ​

  • Placement CI run step.
  • Prerequisites disposable integration environment, synthetic traffic and controlled test faults.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
pytest -q tests/reliability -k 'retry and (backoff or idempotency)' --maxfail=1

3. How it works ​

Pytest discovers the selected test files or markers and returns a process exit status reflecting the test outcome.

4. Verify the result ​

Fixture should count attempts, fake the clock and verify permanent errors are returned without extra retries.

Validation syntax-validated (Bash parse). Status definitions.