Repository navigation
fix(station): eliminate title-nudge race in mb-live-station and runner exit race in claude.test - #8919
Merged
Conversation
…r exit race in claude.test
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.
Root causes
station/test/mb-live-station.test.ts(a release with no Node: a relay enrolled by an agent's token on the station's door, listed and revoked) (failed on fix(mesh): bump noq-proto so a discarded path 0 no longer aborts the front #8847 run 45866338282 / job 140079184248):fakeClaudecalledchat_postwithout atitle, causing the station to trigger an asynchronousits chat has no title; asking it to name itturn right after turn 1 (enroll).list) writing$FAKE_OUT/extraand postingrelays 2, claimingextra.<sid>.2on the title nudge and leavingrelays 2as an unread message that caused subsequentchat_postcalls to be held back (turn ended without a state; nudging attempt=1), hanging call 3 (revoke) until the 60 suntiltimeout."title":"fake chat"on turn 1 ($n = 1) infakeClaude'schat_postcall so no unsolicited title-nudge turn fires.station/test/claude.test.ts(a TUI turn is taken up after handover and its next input reaches the same terminal, C21) (failed on perf(station): keep Readers.retireMismatchedIdle stat-free on Pion hot path #8916pion-stationrun 45869169521 / job 140083918232):taken.abort()andclosed, the test returned andafter()randrivers.map(d => d.shutdown())+rmSync(data)without waiting for thestillfail-runnerOS process to finish exiting, tripping the test harness orphan-process check (left running after its tests (ended now): stillfail-runner --id claude-slack_T1_C21_...).stillfail-runnerPID(s) and wait for them to exit (process.kill(pid, 0)->ESRCH) afterclosed, and wait for allexistingRunners(data)PIDs to exit inafter()before removingdata.Verification
pnpm --dir station exec tsgo --noEmitpassed (0 errors).node scripts/native.ts run mesh runner launcher reader -- sh -c 'cd station && node --import ./test/setup-env.mjs --test test/claude.test.ts': 28/28 passed in 1.3 s with zero leaked runner processes.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.