Repository navigation
test(relay): the cache-notice comparisons do not hang on the readiness clock (#856) - #905
Merged
Merged
Conversation
…s clock (#856) Six relay tests compared the launch output with exact equality, but a launch whose adapter readiness wait passes one second prints "ccmorph: Starting adapter for '<label>'…", and every five after "ccmorph: Waiting for '<profile>' adapter (Ns); Ctrl-C to cancel." (util/adapterstart.go). On a loaded gate host that wait crosses a second routinely — the reason #766 raised the readiness limit — and the advisory landed inside the compared bytes, so the suite went red at the moment the gate was busiest (four named tests on main, and every caller of check_relay_cache_notice_absent raced the window). strip_readiness_advisories drops only whole lines in exactly the two emitted shapes — the quoted label with the trailing ellipsis, the quoted profile with (Ns) and the full Ctrl-C tail — before the exact comparisons in the helper and in the relay resume test; a malformed lookalike keeps its place in the equality. The status, the cache-notice check and every other byte stay exact. Patterns ride $'…' strings matched through ${~}, because a literal single quote cannot be spelled inside a case pattern without the parser misreading the quotes around it. A fixture adapter that answers readiness 1.3 s late reproduces the recorded failure of all four named tests without the drop and passes with it; one-line mutations (an extra line, an advisory lookalike, the cache notice, a wrong expected status, an extra line in relay resume output) all still turn red. Closes #856 Co-Authored-By: Claude Code <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.
Closes #856
Six relay tests compared the launch output with exact equality, but a
launch whose adapter readiness wait passes one second prints
"ccmorph: Starting adapter for ''…", and every five after
"ccmorph: Waiting for '' adapter (Ns); Ctrl-C to cancel."
(util/adapterstart.go). On a loaded gate host that wait crosses a second
routinely — the reason #766 raised the readiness limit — and the advisory
landed inside the compared bytes, so the suite went red at the moment the
gate was busiest (four named tests on main, and every caller of
check_relay_cache_notice_absent raced the window).
strip_readiness_advisories drops only whole lines in exactly the two$'…' strings matched through $ {~},
emitted shapes — the quoted label with the trailing ellipsis, the quoted
profile with (Ns) and the full Ctrl-C tail — before the exact comparisons
in the helper and in the relay resume test; a malformed lookalike keeps
its place in the equality. The status, the cache-notice check and every
other byte stay exact. Patterns ride
because a literal single quote cannot be spelled inside a case pattern
without the parser misreading the quotes around it. A fixture adapter
that answers readiness 1.3 s late reproduces the recorded failure of all
four named tests without the drop and passes with it; one-line mutations
(an extra line, an advisory lookalike, the cache notice, a wrong expected
status, an extra line in relay resume output) all still turn red.
Closes #856
Co-Authored-By: Claude Code noreply@anthropic.com