Commit 4a01bfa
committed
W32: gate_phoenix.sh --wiring infra repair (Option A + B layered fix)
scripts/gate_phoenix.sh exited via pipefail in Step 3 (Phoenix Tests)
before Step 4-6 ran in every invocation since the gate was added at
D-1776714419: the Phoenix output's `Result: SUCCESS` literal could be
absent (zero-test runs, format drift) so PHOENIX_RESULT misclassified
clean runs as UNKNOWN, and the diagnostic FAILURES grep returned exit 1
on no-match, killing the script under `set -euo pipefail`. Step 6
wiring smoke had never run end-to-end. Empirical surface:
docs/gates/cd5a1c50a0.log truncates after `Phoenix: 0 tests, 0/0
modules, Result: UNKNOWN` then `Phoenix FAILURES:` and nothing else.
This commit applies both fixes from W32:
Option B (semantic fix): drop the regex-on-output classification and
use the test command's exit code as the canonical SUCCESS/FAIL signal.
Bracket the test invocation with `set +e ... PHOENIX_EXIT=$? ... set -e`
so the exit code is captured cleanly, and report it alongside RESULT
for forensic traceability.
Option A (defense-in-depth): wrap the FAILURES diagnostic grep in a
`{ ... || true; }` block so a no-match exit no longer cascades through
the pipeline and tee under pipefail.
Together these unblock Step 4-6 and let the wiring smoke test actually
run end-to-end for the first time.
Per supervisor L2764 + theologian L2944 W32 spec § 3 Option C
(layered fix recommended per W26 § 4b precedent). W32 doc-only
companion already filed at docs/w32-gate-phoenix-wiring-repair.md.
Verification deferred to testkeeper per lane split: induced-fault test
(corrupt one of the 5 force_compile fns to trigger JIT_CHECK) +
end-to-end run on cbb9453 push 101 known-PASS commit confirming
Step 6 trailer `wiring smoke: PASS` lands in the gate log. The W32
doc § 4 calls out that without this triplet the gate is muted, not
repaired.1 parent 2325932 commit 4a01bfa
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
229 | 236 | | |
230 | 237 | | |
231 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
232 | 243 | | |
233 | 244 | | |
234 | 245 | | |
235 | 246 | | |
236 | | - | |
| 247 | + | |
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
240 | 251 | | |
241 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
242 | 255 | | |
243 | 256 | | |
244 | 257 | | |
| |||
0 commit comments