Repository navigation
ci(test): name soldr daemon deaths as infra so red main is not read as a code failure - #2186
Conversation
Live proof from PR #2186's own Dell run (job 139429807645, 2026-11-25): the classifier fired correctly -- ##[error]INFRA - the shared soldr daemon killed the compile on route soldr-daemon-7f93f9787aa...: 1 relay reset(s) (soldr#3377), 2 lost-connection report(s); not a code failure -- but "2 lost-connection report(s)" was ONE kill: cargo prints it as the build script's own `warning: <package>: ...` line and again as the forwarded `cargo:warning=...` copy. Dedup now compares the event body (cc-rs's `warning: <package>: ` decoration stripped), so the count states how many compiles the daemon actually dropped. Tests: the two real renderings collapse to one; the captured Dell shape (3 identical relay lines + both lost renderings) reports 1 and 1.
|
Production proof that the classifier fires, from this PR's own Zero That run also exposed a counting bug, now fixed in 562b859: cargo prints one kill twice (the build script's own Verification on 562b859: #2178 stays open: the unblock is still a daemon restart or |
Merge group 45701476278 (pr-2186) captured the hole live: 8 relay resets
and a lost connection from route soldr-daemon-7f93f978..., plus
`test result: FAILED. 5 passed; 1 failed` (lnk_e2e::
lnk_resolver_cache_hit_skips_network_on_second_call over its 15s budget at
avg_cpus=1.31, load=20.67). The daemon verdict still printed
"not a code failure", which would excuse a genuine break on trunk.
emit_daemon_verdict now takes the TestEvidence the wrapper already
collects: when the runner saw its own failed test or a compiler error the
daemon hit is reported as context (route kept, "NOT proven infra"), and the
INFRA summary is not written at all.
Proven RED: with the veto block removed the new wiring test fails on
`assertNotIn("not a code failure")`; all 14 tests pass with it.
|
Second commit Live evidence (merge group The wrapper still printed Fix: Tests: 14 OK ( Both merge-group attempts today died on the same Dell route ( |
The previous commit's veto over-corrected and vetoed itself live: push run
45707669541 (job 139533914957) had only relay resets, a lost connection and
an ordinary cargo `{"reason":"build-finished","success":false}` with a cc-rs
exit 101 -- zero rustc diagnostics, zero failed tests -- yet the annotation
printed "NOT proven infra" instead of naming the daemon route as infra.
Cause: `observe` folded a failed build-finished record into compiler_failed.
That record is the *consequence* of the kill (the build script exits 101), so
treating it as independent evidence made the classification circular.
TestEvidence now tracks `build_failed` separately and only a rustc level=error
diagnostic, `Couldn't compile the test.`, or `test result: FAILED.` vetoes the
infra verdict. `assertion_failure_only` keeps its meaning via `not
build_failed`.
Proven RED: with the old fold restored, both new tests fail
(`assertFalse(result.compiler_failed)` and `assertNotIn("NOT proven infra")`);
17/17 pass with the fix. ruff format+check, C901 and basedpyright clean;
gate-script-coverage + fractional-workflows 42 OK.
|
Fourth commit The push run for But there was no failing test and no rustc diagnostic in that job. The only "failure of its own" was cargo's Fix:
Real output: Why it matters: as shipped in |
|
Live confirmation of The push run for Evidence from that same log: 0 occurrences of
Merge not attempted again. The queue failure is |
Why
mainis red (run 45665615665 on9d94ad24)and the failure is not a diff:
linux / Checkdied intree-sitter-cpp's build script after foursoldr#3377relay resets andlost the connection to the soldr daemon (route soldr-daemon-7f93f978…)— #2178's signature. Every hour that costs someone a job log read, and the reflex repair
(
gh run rerun --failed) is 2/2 dead on this SHA.ci/test_cache_status.pyalready streams every line of that output to decide cache saves, but itrecords nothing when the daemon is what failed. So a red trunk reads exactly like a red test run.
What changes
Purely additive, and the exit status is untouched:
DaemonDeathclassifiessoldr#3377relay resets andlost the connection to the soldr daemonlines, extracting the shared daemon's route id. Identical lines count once;
cargo:warning=forwarded twins are recognized.
emit_daemon_verdictprints a GitHub annotation (::error::INFRA - …on a failing run,::warning::if it recovered) and appends the same verdict to$GITHUB_STEP_SUMMARY, namingci: merge queue red on the Dell pool — shared soldr daemon drops compile connections (route 7f93f978…) #2178 and stating that a rerun is not the repair.
normalized()is extracted soTestEvidenceandDaemonDeathshare one line normalizer(
TestEvidence's assertions are unchanged).Real log from
9d94ad24through the new classifier:This does not repair the red lane — the daemon is soldr's and the host is Zach's call
(
FORGE_POOL_LABELS). It makes the failure name itself.Tests
uv run --no-project python -m unittest ci.test_test_cache_status→ 11 tests OK (7 new:classifier, route extraction, forwarded-warning twin, dedupe, clean log, plus two end-to-end
wiring tests that run the real script against a
soldrshim and read back$GITHUB_STEP_SUMMARY).RED proof: with
emit_daemon_verdict(...)removed frommain(), the wiring test fails(
'::error::INFRA -' not found), so the guard cannot be silently dropped.Gates, real output:
ci/check_python_complexity.py→All checks passed!ci/check_python_types.py→0 errors, 0 warnings, 0 notesruff format --checkclean;ci.test_gate_script_coverage+ci.test_fractional_workflows→42 tests OK (no workflow change, so both invocation contracts are untouched)
#2178 stays open — the lane still needs the daemon restarted or rerouted.