fix(local): make the trial-build gate detect non-throwing build failures #130
Loading…
Reference in a new issue
No description provided.
Delete branch "t3code/fix-gate-false-green"
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?
Critical: the gate was false-green
The latest run printed
3/3 passed on alpine-324while all three builds actually failed (theirrstandependency won't compile). A false-green gate would let broken registry entries merge — worse than no gate.Root cause:
bincraft::build_binary_package()catches build failures internally and returns"error"for the failed tag rather than throwing. The gate'stryCatchonly treated a thrown exception as failure, so every non-throwing failure looked like a pass.Fix: inspect the return value. A tag passes only if the flattened result is non-empty and contains no
"error"sentinel; a thrown error still counts as failure. Verified the verdict againsterror/skipped/TRUE/list(success=TRUE)/NULL/mixed inputs.With this, the current rstan-blocked entries will correctly show 0/3 (red) — which is the right answer until rstan builds.