Repository navigation
test: wait for the PTY job's foreground handoff - #137
Merged
Merged
Conversation
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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 cause: test readiness, not a product refusal bug
The fixture looked for any child whose process group equalled the shell's terminal foreground group. Immediately after
fork, a child can still inherit zsh's group, so that check could succeed before zsh completed job-control setup. The nextpsread then saw the child's new group, and product preflight correctly rejected the changed target. The real product identifies an already-registered CLI PID; it does not select a just-forked child this way.Reproduced before the fix on the Linux pool in run 40117930898, unit 4/4, using temporary snapshot instrumentation and 40 repetitions of the same six cases: 2 failures / 240 cases, both with the original preflight-refusal signature. One captured transition was:
The other failure captured the same transition for child 7455 and shell group 7452. The original six-case diagnostic pool run 40117616979 passed, illustrating the intermittency. All temporary diagnostic/repetition changes are absent from this PR.
Fix
pgid === pid) and the terminal reports that group in the foreground.resume_failed, so an early preflight refusal cannot satisfy the rollback test.Addresses tech-debt row 319 in
docs/tech-debt-tracker.md(tracker intentionally unchanged).Verification
/tmp/maws-review/with-slot.sh, 120/120 cases passed. The Linux race did not reproduce on the Mac; observed load was about 6, not the much higher load seen earlier today.doperpowers:reviewer-mediumreview of9a564bc43..d541e16ee: no material findings; correct. No fix wave or further round was needed.static,unit,probes: 40118042019, static/probes and unit 1/4, 2/4, 4/4 green on attempt 1. Unit 3/4 hit the tracked unrelatedtest/org-directory.test.ts:435call-count assertion (4versus2); its one unchanged-shard rerun failed identically on attempt 2. This is not a preemption or a PTY failure. The unchanged stress tree's shard 3/4 passed in 40118350058.static,unit,probeson this exact head: 40118644709, all requested gates and all four unit shards green on attempt 1.Five fresh
--gates unit --class1a poolinvocations tested the same head. Each invocation makes a new nonce carrier; all seven normal-run carriers were checked to have this PR head as their parent.Seven consecutive green shard-4 executions on
d541e16ee, each log explicitly showing all six PTY cases passing: the five unit runs above, the fully green full gate, and shard 4 of the initial full gate whose unrelated shard 3 stayed red. The attempt-2 copy of the original shard 4 is not counted as another execution, and the 240-case stress carrier is not counted toward this same-head streak. No preempted executions were counted.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)