Repository navigation
test(tier3): run the Bedrock judge-deadline retry test on a manual clock - #393
Merged
Merged
Conversation
test_bedrock_converse_aborts_when_judge_deadline_exhausted_before_retry set a real 0.5 s judge deadline and expected the retry-backoff check to fire. Importing boto3 and building the first bedrock-runtime client happen after that deadline is set, and can take longer than 0.5 s on a loaded host (seen on PR #391's Python 3.14 job; every run on a busy macOS host). The pre-request check then fired first with "LLM judge time budget exhausted" and the assertion on "... before retry" failed. Replace the verifier's time module with a manual clock for this test, as tests/tier3/test_judge_policies.py already does, so setup cost never counts against the deadline. Removing the backoff deadline check still fails the test. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
November 8, 2026 14:33
rng1995
added a commit
that referenced
this pull request
Nov 9, 2026
Bring in #393, which runs the Bedrock judge-deadline retry test on a manual clock so the Python 3.14 job no longer fails on it. No conflicts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
5 of 9 tasks
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.
Summary
test_bedrock_converse_aborts_when_judge_deadline_exhausted_before_retrysets a real 0.5 s judge deadline and expects the retry-backoff check to stop the call ("LLM judge time budget exhausted before retry"). Importing boto3 and building the firstbedrock-runtimeclient happen after that deadline is set. On a loaded host that takes longer than 0.5 s, so the pre-request check fires first with "LLM judge time budget exhausted" and the assertion fails.This test now replaces the verifier's
timemodule with a manual clock, the same patterntests/tier3/test_judge_policies.pyalready uses. Monotonic time moves only when the code sleeps, so setup cost never counts against the deadline.Evidence
main. Building the first client took 7–9 s there.templates/eval.pystill fails the test, so it keeps guarding the behavior.Testing
tests/test_retry.pyandtests/tier3/test_judge_policies.py: 152 passed.ruff checkandruff format --checkpass.Test-only change, so no CHANGELOG entry (as in #358).
🤖 Generated with Claude Code