Skip to content

test(gateway): the retired-agent clock test tells a slow write from one that waited - #904

Merged
earakely-scale merged 1 commit into
mainfrom
edgararakelyan/clock-watch-retired-flake
Nov 24, 2026
Merged

earakely-scale merged 1 commit into
mainfrom
edgararakelyan/clock-watch-retired-flake

Conversation

@earakely-scale

@earakely-scale earakely-scale commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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_nothing flaked in unit on five pull request runs on 2026-11-23 (#898, the Dependabot uv bump three times, and mandy/shared-slot-teardown), each time the same way: the clock write took about 1.08 s against the test's waited < 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

  • The test passes, and so do the other three retire tests in the file.
  • With ClockFollowers.retire made 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

RetriggerView in GreptileConfidence 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.

  • The retired-agent test allows runner delays without masking writes that wait.

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

…ne that waited

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale
earakely-scale requested a review from a team as a code owner November 24, 2026 03:02
@earakely-scale
earakely-scale merged commit 1476181 into main Nov 24, 2026
35 checks passed
@earakely-scale
earakely-scale deleted the edgararakelyan/clock-watch-retired-flake branch November 24, 2026 03:54
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.

1 participant