stdioBridge unit tests inherit the host env — 3 false reds on any machine that exports IDSS_PAYLOAD_DIR (i.e. every drive host) #755
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#755
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while proving #750 offline on
matou-dev-server-01(session-runner host).app/tests/unit/stdioBridge.test.tsspawns a REAL process and asserts what thehelper env carries. Three of its cases read the ambient environment instead of
only the launch options, so they fail on any machine that exports
IDSS_PAYLOAD_DIR— which every drive host does, because that is exactly howscripts/smoke-private-path.shand the rehearsal machinery resolve the payload(#295).
Reproduce (at
e6cfb52, before #750's commit — this is not a regression from it):The three:
Why it matters: a unit test whose verdict depends on the operator's shell is a
false red on precisely the machines that also run the live drives — the hosts
where a real red most needs to be trusted. The third case is the sharpest: it
asserts an ABSENCE that the host env can never satisfy.
Suggested fix: make the test own the child's environment rather than inheriting
it — pass an explicit env to the spawn (or stub
process.envfor the case),so the "a shell IDSS_PAYLOAD_DIR wins" case sets that variable deliberately
instead of borrowing whatever the host happens to export. Worth a scan for
sibling tests that spawn with an inherited env.
Filed as a follow-up under ADR 0174 rule 1 (work only the session's ticket, file
follow-ups) — #750 left this untouched.
swarm-claim host=elitebook-distributed-server-03 run=9830
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #755 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope