Skip to content

ci(release): fix false-red btc-Windows --help smoke (PowerShell pipe truncation)#719

Merged
frstrtr merged 1 commit into
masterfrom
ci-steward/release-win-smoke-falsered
Jul 16, 2026
Merged

ci(release): fix false-red btc-Windows --help smoke (PowerShell pipe truncation)#719
frstrtr merged 1 commit into
masterfrom
ci-steward/release-win-smoke-falsered

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Run 29493641642 (v0.2.1 re-dispatch off master 1737f37) shows btc package (Windows x86_64) red at the Smoke test (--help) step — but the binary is fine: build and link succeeded, and the log shows correct usage output (Usage: c2pool-b...coind HOST:PORT).

Root cause: the step piped c2pool-<coin>.exe --help 2>&1 | Select-Object -First 5. --help writes usage to stderr; Select-Object -First 5 truncates and closes the pipe early, so PowerShell surfaces a NativeCommandError and the step exits 1. The Linux/macOS smoke lanes already tolerate this with || true; the Windows lane did not.

Fix: buffer the output into $out first (exe runs to completion, no broken pipe), Select-Object on the array, and exit 0. Smoke is a liveness check, not a gate.

Unblocks the v0.2.1 release consolidation (all 5 Windows lanes were passing except this false red on btc). No self-merge — integrator gate.

The Windows smoke step piped a native command straight into
Select-Object -First 5. --help writes usage to stderr; the -First 5
truncation closes the pipe early, so PowerShell raises a
NativeCommandError and the step exits 1 even though the binary printed
correct usage (build succeeded, link succeeded). Buffer the output into
a variable first (exe runs to completion, no broken pipe), then
Select-Object on the array, and exit 0 to match the Linux/macOS lanes,
which already use || true. Smoke is a liveness check, not a gate.
@frstrtr
frstrtr merged commit 1fba7c5 into master Jul 16, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant