Repository navigation
fix(testing): capture compiler-fixture child output so the Windows nightly summarizer can attribute rows - #13434
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 58 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
There was a problem hiding this comment.
Code Review
This pull request redirects the stdout and stderr of the child compiler process to log files in the scratch directory instead of inheriting them, preventing child logs from cluttering the parent test suite's output. If the process fails or verification fails, the scratch directory is retained and the log paths are included in the error. The reviewer suggests improving debuggability by reading and embedding the actual contents of these log files directly into the error message.
ripr static exposure checkCommit Took 45s. |
1c14125 to
b562b95
Compare
…mmarizer can attribute rows #13288's compiler-admission fixtures re-execute the crate's own libtest harness (current_exe() --exact <selector> --nocapture) with inherited stdout/stderr, so every fixture child prints its running-1-test / test ... ok / test result rows into the parent suite's log. On the nightly Windows advisory (run 42164175174, main e4f5ff0) 134 such blocks landed inside parent target contexts and the fail-closed summarizer refused both workspace runs as incomplete_evidence with 14637 target-attribution provenance errors. Redirect the child's stdout/stderr into files inside the existing scratch dir: the parent only needs the exit status and the acknowledgement file, so the single-writer try_wait loop keeps its no-pipe-to-fill property. A failed status or acknowledgement now retains the scratch and names both child-output paths, keeping the fixture's --nocapture diagnostics retrievable. #9272
b562b95 to
1957fb3
Compare
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the diff contains no committed regression test that explicitly captures parent output and asserts nested libtest harness rows are absent, making the red/green distinction dependent on an external proof script described only in the PR body.
- Confirm the strongest source-route claim that this fix covers every inherited-child-stdout fixture is not established by the available evidence.
Parked follow-ups
- Failure diagnostics are both path-addressable and inline, but each error reads both files synchronously after child exit, potentially duplicating I/O for large outputs.
Evidence gaps
- No successful cargo-test receipt is present in the supplied evidence despite cargo-test being required for the Rust behavior change.
- The packet lacks a completed cargo-test receipt, so scheduled test execution is not independent proof of the current head.
- Model proof intent was rejected by deterministic validation.
- The central proof needed to validate the Windows attribution fix is not yet available: ripr failed and the scheduled cargo-test receipt is absent.
Governing issue or accepted claim: #3922 (release_required row: windows-test-verdict #3922, blocked by #9272)
Acceptance delta (one sentence): The nightly Windows advisory regains a terminal summarizer verdict on current main because the #13288 compiler-fixture children no longer print their own libtest harness output into the parent suite's log.
Observed failure (hosted, workflow_dispatch on main e4f5ff0)
Run 42164175174 (dispatched 2026-11-06T04:43Z for #9272's row verification, job 127716637770): all five cargo steps completed inside their deadlines, but the summarizer refused both runs:
Root cause: #13288 (
crates/ripr/src/testing/compiler_environment.rs) re-executes the crate's own libtest harness per compiler fixture —run_childspawnscurrent_exe() --exact <selector> --nocaptureand, by its own comment, "Stdout/stderr remain inherited". Each fixture child therefore prints itsrunning 1 test/test ... ok/test result: ok. 1 passed; ... 13447 filtered outblock into the parent suite's stdout (134 such blocks in this one run). Inside the parent's target context the fail-closed summarizer reads them as nested harnesses with unattributable rows and refuses the run. The summarizer is right to refuse: its own nested-harness rule says nonempty child output "has no trustworthy attribution in this interleaved text format" (xtask/src/windows_advisory.rs).Fix
run_childredirects the child's stdout and stderr into files inside the existing scratch directory. The parent only needs the child's exit status and the acknowledgement file, so no pipe can fill and the single-writertry_waitloop is unchanged. On a failed status or a failed acknowledgement the scratch is retained (the existingscratch.retainpattern) and the error names both child-output paths, so the fixture's own--nocapturediagnostics stay retrievable. Production behavior is unchanged: this helper is test-only (#[cfg(test)]consumers inanalysis::facts::quickcheck_generator_tests).Evidence
running 1 testfollowed bytest result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 13447 filtered outbetween ripr-lib rows) and the summarizer refusal.cargo test -p ripr --lib quickcheck_generator— all fixture tests pass and the captured console contains norunning 1 testrow (the proof script greps the console and reports CONSOLE-CLEAN).Non-goals
Residual
git.rsflood/hang re-exec probes; Linux/macOS-onlybounded_read.rsFIFO child andagent/artifact.rsunlinked-exe child). None of those spawn full libtest harnesses on the Windows nightly lanes today; if one ever does, it will fail closed at the summarizer the same way and get the same treatment.