Repository navigation
test(gateway): the retired-agent clock test tells a slow write from one that waited - #904
Merged
Merged
Conversation
…ne that waited Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes
tst/unit/env/gateway/clock_watch_test.py::test_a_retired_agent_is_no_longer_waited_for_or_named_and_its_token_acknowledges_nothingflaked inuniton five pull request runs on 2026-11-23 (#898, the Dependabot uv bump three times, andmandy/shared-slot-teardown), each time the same way: the clock write took about 1.08 s against the test'swaited < 1.The write doesn't wait for the retired agent; the second was the runner's load. The bound now separates the two cases by a wide margin: the write gives followers
wait_followers_s: 30, and the test takes it as not waited for under 10 s. A write that did wait for the agent (one that hasn't watched yet is always waited for) would take the full 30 s and answer 504.Tests
ClockFollowers.retiremade a no-op, the test fails as it should: the write waited 30 s and answered 504, and the retired agent's token still matched.🤖 Generated with Claude Code


Confidence Score: 5/5
This PR appears safe to merge.Summary
This PR gives the retired-agent test more room for a slow runner without changing gateway behavior.
No actionable issues found. Tests were not run during this review.
Reviews (1) · Last reviewed commit: "test(gateway): the retired-agent clock t..." · Reviewed by Greptile