Skip to content

test(relay): the cache-notice comparisons do not hang on the readiness clock (#856) - #905

Merged
akleizor merged 1 commit into
mainfrom
hive/856-land
Nov 25, 2026
Merged

akleizor merged 1 commit into
mainfrom
hive/856-land

Conversation

@akleizor

Copy link
Copy Markdown
Owner

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
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

…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>
@akleizor
akleizor merged commit 4b9129f into main Nov 25, 2026
17 of 18 checks passed
@akleizor
akleizor deleted the hive/856-land branch November 25, 2026 14:35
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.

test: the three #226 relay tests fail under parallel load — exact-output equality pins the 1s adapter advisory line

1 participant