push gate: assemble-payload's pnpm build dies on interactive modules purge under no TTY — harden the gate #389
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#389
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?
What happened
2026-08-10 ~02:40 UTC the shared pre-receive push gate (
go test ./...) went RED for every swarm push on an environmental defect, parking #382 mid-slice (its comment 5295):internal/vm'sTestAssemblePayload_ProducesResolvableLayoutrunsscripts/assemble-payload.sh→cd dashboard && pnpm build.verify-deps-before-rundecided the modules directory was stale and auto-triggered an install, which aborted withERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY("Aborted removal of modules directory due to no TTY") — an interactive purge prompt inside a TTY-less test harness.f48233c), but nothing repo-side prevents recurrence: there is no workspace.npmrc, and the test hard-fails (internal/vm/assemble_test.go:81) with no guard.Any future pnpm/node_modules drift on the build machines re-blocks the whole swarm the same way.
Fix (repo-side hardening)
Make the gate's pnpm invocation non-interactive so it can never stall on a purge prompt:
.npmrc(repo root, picked up by pnpm) withconfirm-modules-purge=false— this is the setting pnpm's error message names for exactly this abort.CI=truearound thepnpm buildinscripts/assemble-payload.sh(line 88) so pnpm takes its non-interactive paths under the harness regardless of the caller's environment.(
verify-deps-before-run=falseis deliberately not proposed — silently building against stale deps trades a loud red for a wrong artifact; fail-loud discipline wins.)Acceptance
node_modules, whenTestAssemblePayload_ProducesResolvableLayoutrunsassemble-payload.shin a TTY-less harness, then pnpm either completes the install-and-build or fails loudly on the real error — never on an interactive purge promptFixed in
1c2375b6b9(on origin/main).Hardened the push gate so its dashboard build can never stall on pnpm 11's interactive modules-purge prompt:
.npmrcat the repo root (the pnpm workspace root, so it is read even when pnpm runs indashboard/) withconfirm-modules-purge=false— the exact setting pnpm'sERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTYmessage names.scripts/assemble-payload.shnow runs the dashboard build asCI=true pnpm build(belt-and-braces) so pnpm takes its non-interactive paths regardless of the caller's environment.verify-deps-before-rundeliberately left ON (fail-loud on stale deps, not a wrong artifact).Acceptance:
TestAssemblePayload_ProducesResolvableLayout(which runs the realpnpm build) stays GREEN, and the pre-pushgo test ./...gate passed on push.Guard test added:
internal/vm/assemble_test.goTestAssemblePayload_DashboardBuildIsNonInteractivelocks both measures against silent regression.