Repository navigation
test(opencode): count a process blocked opening a FIFO among the diagnostic's waiters - #3783
Conversation
…d-in diagnostic's waiters
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
One reviewer: test-only PR (server/opencode-first-message.contract.test.ts). Test-only PR ( Follow-up to #3780 from its review: the diagnostic's waiter filter now also counts a process blocked opening a FIFO with no writer (kernel wait Left, LOW (Codex, read): on a failure the diagnostic prints the command lines of the pane's processes, which could carry a secret passed as an argument; in this test they are the test's own stand-ins. |
…heir arguments (#3787) ## Summary Follows up #3783, from the merge pass's Codex review (LOW). On a failure, the stand-in diagnostic's `waiting` list scans every process on the machine for one blocked on a FIFO, and printed each match's full command line. In CI the container only holds the test's own processes. In a local run on a shared machine, though, an unrelated program that happens to wait on a pipe would have its arguments printed into the log, and arguments can carry a secret. ## Change (diagnostic only, test file) `waiting` entries now carry only the process name (`/proc/<pid>/comm`), its pid and its wait channel, never its arguments. The pane's own processes (`pane_processes`) keep their argv: they come from `pane.process_info` for the test's own pane, which is the stand-in. ## Validation - `HERDR_TEST_MODE=integration bun test ./server/opencode-first-message.contract.test.ts` (herdr 0.9.3): 6 pass, 0 fail. - `bun run check fast`: pass. No changelog fragment: this changes a test only.
Summary
Follows up #3780, from the merge pass's Codex review (LOW).
#3780's failure message lists processes that wait on a FIFO:
wchancontainingfifo, or holding the folder'sopencode.json. A process blocked opening a FIFO that has no writer waits inwait_for_partnerinstead, and holds no fd on it yet. The diagnostic would have left out exactly the process it is meant to name.Reproduced here:
caton a writerless FIFO sits in/proc/<pid>/wchan=wait_for_partner.Change (diagnostic only, test file)
The waiter filter also matches
wchan === "wait_for_partner".Validation
caton a writerless FIFO showswait_for_partner. Checked on this host; the probe process was killed by its pid.HERDR_TEST_MODE=integration bun test ./server/opencode-first-message.contract.test.ts(herdr 0.9.3): 6 pass, 0 fail.bun run check fast: pass.No changelog fragment: this changes a test only.