Repository navigation
fix(deploy): the consumer's log handle is one bash can run under — an append-only Windows handle made every unattended deploy on the 5090 exit 1 in one second with an empty log - #4233
Conversation
… append-only Windows handle made every unattended deploy on the 5090 exit 1 in one second with an empty log Measured 2026-09-19: three ticks per tip, each "warm build exited exit code: 1; leaving the running core untouched", nothing else in deploy-consume.log, then GaveUp — on 97f480e, 5b82e10, 1d994a7 and 7b69109. The same script under the same scheduler environment builds (probe task, bash -x), and the same bash from Python builds. The one difference: the CLI hands the build `deploy_log_file()` as stdout/stderr, opened with `.append(true)`, which on Windows is FILE_APPEND_DATA without FILE_WRITE_DATA — and an MSYS bash given that handle exits 1 before running a line (not even `SHELLOPTS=xtrace` prints). Full write access, seeked to the end: same append, a handle every child accepts. Confirmed: the consumer's next tick started rustc. - `open_log_for_child(path)` is the one opener; `deploy_log_file` uses it. - A failed warm build now says WHAT ran (command, envs, cwd) in the failure line, since the exit code alone named nothing for a day. - Regression test (Windows): Git bash under the handle exits 0 and its line lands after the seed; the old `.append(true)` fails it with exit code 1. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
|
APPROVE — reviewed at exact head b6ea946. The root cause is exactly the class that hides: a handle that is valid for us and invalid for the child, and the exit code naming nothing. The regression test is the right instrument (bash under the handle, and the bytes land after the seed), and the failure message now carries the command, env and cwd — the thing three dead attempts could not say. One nit, not a condition: |
… keep the atomic append, only the child's handle is write+seek (Fable, #4233) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
|
Note taken at 33f1de9: two openers with the reason on each — |
…n (the unwrap ratchet, CI on #4233) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
-#4235) — textual resolution only; the two install verbs are reconciled in the next commit
Measured
Every unattended deploy on the 5090 since the consumer landed: three ticks per tip, each
warm build exited exit code: 1; leaving the running core untouched, nothing else in the log, thenGaveUp— on 97f480e, 5b82e10, 1d994a7, 7b69109. Same script under the same scheduler environment (a probe task,bash -x) builds; same bash spawned from Python builds;SHELLOPTS=xtracethrough the CLI prints not one+line.Cause
The CLI hands the build
deploy_log_file()as stdout/stderr, opened with.append(true). On Windows that isFILE_APPEND_DATAwithoutFILE_WRITE_DATA, and an MSYS bash given such a handle exits 1 before running a line. Correct parts composing into silence: the redirect was added so a failing build would leave a reason; the handle it used was what made the build fail with none.Fix
open_log_for_child(path): full write access, seeked to the end — the same append, in a handle every child accepts.deploy_log_fileuses it. A failed warm build now names what ran (command, envs, cwd), since the exit code alone said nothing for a day.Test
the_deploy_log_handle_is_one_bash_can_run_under(Windows): Git bash under the handle exits 0 and its line lands after the seed. Verified it fails under the old.append(true)with exactlyexit code: 1, then passes with the fix.Receipt
With the fix, the consumer's next hand-run tick on this node started
Compiling continuum-coreinto the log. The consumer on PATH here is still the 07:32 build (the stale-CLI seam), so this reaches the node through the installer/continuum installpath or one more hand of the new CLI — noted, not hidden.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc