Skip to content

fix: BED-10669 make retry-budget tests independent of local configuration - #113

Merged
jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10669-retry-budget-test-configuration
Nov 20, 2026
Merged

jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10669-retry-budget-test-configuration

Conversation

@jaredcatkinson

@jaredcatkinson jaredcatkinson commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

The retry-budget regression test expected seven HTTP attempts while CI uses DLT’s default overall limit of five. A higher local retry setting masked the failure.

Set the limit explicitly in the test and cover both stopping at five attempts and succeeding on attempt seven. Production retry behavior is unchanged.

Validation: 668 tests passed with RUNTIME__REQUEST_MAX_ATTEMPTS=5; Ruff and git diff --check.

Summary by CodeRabbit

  • Tests
    • Expanded coverage of request retry limits, including cases that exhaust the configured attempts and eventually succeed.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The rate-limit retry test now checks outcomes and send counts for overall attempt limits of five and seven.

Changes

Retry budget tests

Layer / File(s) Summary
Attempt limit expectations
tests/test_github_rest_client.py
The test checks that five attempts end with HTTP 503 and seven attempts reach success. Both cases assert that the send count matches the configured limit.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • SpecterOps/openhound-github#95: Changes the shared retry budget for transient failures, which affects the attempt counts covered by this rate-limit test.

Suggested reviewers: eladshamir

Merge Risk: Minimal · up to b352f

This is a test-only change that makes the retry-budget regression test independent of local retry configuration. Production behavior is unchanged, and no merge-blocking risk is evident.

Security architecture risk: Minimal · up to b352f

The change makes retry-test configuration explicit and checks two expected outcomes. Production retry behavior and external exposure are unchanged.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the fix (retry-budget tests made independent of local configuration), which matches the changeset. The test now sets the overall attempt limit explicitly (5 and 7) instead of relying o…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix (retry-budget tests made independent of local configuration), which matches the changeset. The test now sets the overall attempt limit explicitly (5 and 7) instead of relying on a local RUNTIME__REQUEST_MAX_ATTEMPTS value. The 'fix:' prefix and ticket ID are acceptable, and the title is specific enough for a reviewer scanning history.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit counts each retry with care,
Four rate limits hop through the air.
Five sends end with a 503,
Seven reach success, as tests agree.
The send count matches every run,
Then off I hop beneath the sun.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c85bc85b-23ba-4760-a1cd-48b301c00ead
Commits

Reviewing files that changed from the base of the PR and between ee3ec55 and b352fb6.

Files selected for processing: 1

  • tests/test_github_rest_client.py

Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@jaredcatkinson
jaredcatkinson merged commit 7a27fbe into main Nov 20, 2026
3 checks passed
@jaredcatkinson
jaredcatkinson deleted the fix/BED-10669-retry-budget-test-configuration branch November 20, 2026 16:55
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