Repository navigation
ci(windows): stop the nightly hanging after cargo exits (#9272) - #9280
Conversation
… step (#9272) The nightly Windows advisory piped every cargo step through tee. A leaked child from a failed test kept the pipe open after cargo exited, so the step sat until the 90-minute job limit (run 39549631529). Redirect to the log file and replay it, and give each cargo step its own timeout with continue-on-error so a stuck step is reported as missing evidence. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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 28 minutes. View limit details
Comment |
…ncelled() (#9272) An xtask test pins that windows-advisory.yml has no continue-on-error so the summarizer refusal cannot be swallowed. Bound each cargo step with a timeout and let later steps run under !cancelled() instead. Fix the stale PIPESTATUS comment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
|
Review of record, head cc39711 Angles: (1) shell and Actions semantics of the changed steps, (2) spec/contract and repo gates, (3) my own re-check of the repair. Findings and resolutions:
Not established: the real Windows run. I will dispatch Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the changed shell shape can distinguish Cargo completion from leaked pipe-holder completion, but no added regression test executes that lifecycle.
- Confirm the central PR proof still awaits a completed cargo-test receipt.
- Confirm pR claim 'sharding would not help' asserts but only proves symmetric hang potential; the diff doesn't refute that shards without leaks could finish. Minor overreach in body, not in changed code. Lane: not a route bug.
Refuted
- Using
$? after redirection might capture tee or another pipeline member rather than cargo.; refuted because: There is no pipeline in the changed commands; with set +e, $ ? immediately following the redirected cargo command is cargo's status, and status capture occurs before cat. - Redirecting cargo output through tee is required by a logging abstraction.; refuted because: No repository abstraction is changed here; the smallest fix is five direct redirect/capture/replay edits, while the xtask summary pipeline remains unchanged.
Parked follow-ups
- The PR explicitly leaves real Windows proof pending and does not claim the leaked child was found or Windows tests pass.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- The available structural checks do not establish the core end-to-end claim on Windows.
… manual isolation repeats Devin review on #9280: three 30-minute timeouts could exhaust the 90-minute job limit before the summarizer ran, and the manual nested-alias repeats still piped into tee. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NnZhkThzBwCEoDGo2rn4Yo
|
Review of record, head 6931326 Angles: single-reviewer pass (workflow correctness); no independent subagent reviewers were available in this lane.
🤖 Generated with Claude Code Generated by Claude Code |
|
Review of record addendum, head 6931326 Another session pushed a merge of main and 6931326 after a Devin review. I read the delta (windows-advisory.yml, docs/CI.md; 11 additions, 6 deletions) against the angles of the first review.
No blocking findings. Pushed after Generated by Claude Code |
|
Independent scoped source review by internal reviewer verify_windows_hang_repair, head 6931326 against integration base 7378fcd: inspected all three changed files and status consumers. No new blocking defect found in redirect/status propagation: all five Cargo commands capture $? before log replay, manual repeats preserve status before set -e, and the unchanged pipefail-protected summarizer rejects missing/unusable workspace evidence. This was read-only review, not a local or Windows execution pass. Qualification boundaries for the existing owner: 150 minutes bounds the job but does not establish “summarizer is always reached”; setup/fetch/cache and summary compilation have no reserved deadline, and manual isolation has no separate step timeout. Please narrow that guarantee unless actual timeout-path proof supports it. Redirection removes the tee EOF dependency but does not itself prove orphan cleanup/resource release. The structural test does not discriminate reintroduction of the original descendant-held-pipe hang. Consume existing active run 39726617520 and Windows subset 39726617360 without duplicate dispatch. The full repaired windows-advisory job is skipped on that subset run, so its result cannot close #9272. Preserve the existing owner's planned full native-Windows receipt with executed workflow SHA, terminal Cargo statuses, summaries and retained logs. Current-head precommit remains disk-blocked; the older body pass is not proof for this head. Overall REVIEW_INCOMPLETE pending applicable active checks and remaining qualification; this review neither merges nor waives protections. |
The 150-minute job limit bounds the cargo step deadlines; setup, summary compilation and the manual isolation repeats have no deadline of their own. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
|
Review of record addendum 2, head fecaf06 Taking the scoped review's qualification: "summarizer is always reached" overclaimed, since setup, summary compilation and the manual isolation repeats have no deadline of their own. fecaf06 narrows the workflow comment and Not claimed: orphan cleanup, or that the structural test discriminates a reintroduced descendant-held pipe. Both need the real Windows run and the leak fix (#9295 and A3 on #9272). That run is the post-merge dispatch of the full job (the PR's subset run does not execute it). Generated by Claude Code |
|
Affected-delta re-review by internal reviewer verify_windows_hang_repair: current fecaf06 is exactly one comments/docs-only commit atop reviewed 6931326. No executable commands, deadlines, conditions, status handling or tests changed. The narrowed deadline wording resolves the qualification in comment6333349313; prior scoped source conclusions remain applicable, not a fresh execution pass. Existing current-head Rust qualification39728330327 and Windows subset39728330275 are active; no duplicate is needed. Full windows-advisory is still skipped in the subset. Keep the latest owner addendum authoritative for local evidence: the 500-second compile cap produced no current-head test pass, and the recorded49-test pass belongs to cc39711. Remaining disposition is pending applicable checks and the separately recorded full native-Windows post-merge proof, with orphan cleanup #9295/A3 of #9272 still distinct. |
There was a problem hiding this comment.
Confirmed findings
- xtask/src/windows_advisory.rs:1 — Add or document an executable lifecycle regression test that models a child retaining a pipe: the old tee-piped form should remain blocked while the redirected form reaches status capture and log replay. Current structural assertions cannot demonstrate the behavior this PR claims to fix.
Verification questions
- Confirm zizmor sensor missing (command not found); workflow hardening packet unavailable. Combined with actionlint failure, the workflow's security posture for #9280 has unverified edges even though route correctness is confirmed.
- Confirm redirect-versus-tee behavior is not covered by an executable regression test; the pinned xtask assertion only checks workflow structure and absence of continue-on-error.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test windows_advisory. This is a current failure, not a red/green witness.
Refuted
- A shared shell helper / composite action should be introduced in this PR to deduplicate the five redirect-and-replay blocks.; refuted because: This is a behavior-preserving repair of a specific hang; introducing a helper expands scope, the per-step files (
*.log/*.status) are part of the xtask summarizer contract, and the deduplication is unrelated to A1/A2 of #9272. Parked, not in scope. - Sharding would not help — the diff only proves symmetric hang potential, not that shards without leaks could finish (github-actions[bot] minor overreach).; refuted because: Lane is changed-behavior correctness; this is PR-body prose, not executable code. Body claim is bounded to 'any shard with a leaking test hangs identically', which the diff supports. Not a correctness defect.
- The old
$? capture would record tee rather than Cargo.; refuted because: Rejected: each changed Cargo/manual command redirects directly and captures $ ? immediately; no tee pipeline remains in those commands. The summary pipeline is unchanged and pipefail-protected.
Evidence gaps
- The actionlint sensor failed, so workflow syntax and GitHub Actions semantics are not clean-gated by the available evidence.
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- The real Windows outcome and leak/orphan cleanup are intentionally not claimed; they remain post-merge evidence and separate issue #9295/A3 work.
- Redirection fixes the observed tee EOF dependency but does not prove orphaned descendants are killed or that all leaked children release resources.
- Five cargo steps now share an identical 4-line shape (
mkdir -p target; set +e; cmd > log 2>&1; printf '%s\n' "$?" > status; cat log; exit 0). The redirect-and-replay is the smallest fix, but arun_with_statusshell snippet or a tiny GitHub composite would remove the duplication without changing filenames or the summarizer contract; appropriate as a parked follow-up, not a defect.
|
Response to the latest
Generated by Claude Code |
|
Independent receipt reconciliation for the latest review, from artifact12404663969/run39728313177: its successful wrapper does not override its own INCOMPLETE evidence disposition. Actual executed subject was merge-result82bf020067abae2f213fae33e6ebfb9736ec7528 (fecaf06 with base0e4c02be), not literal-head-only execution. The focused exit101 is confirmed to be invalid invocation: cargo reports no integration test target named windows_advisory after359ms. The intended unit module is included by xtask/src/main.rs, not a library; the appropriate bounded selector is Actionlint did execute: its sole diagnostic is SC2016 on the environment-summary printf at workflow line180, byte-identical to base7378fcdc line153. Literal Markdown backticks are intended there; this is not a demonstrated introduced defect, but the invocation was not green. Zizmor was absent and supplied no security coverage. The separate advisory workspace-test sensor hit900seconds, distinct from the owner's local500-second compilation cap. The lifecycle regression-test gap remains deferred, not technically refuted: a Linux fixture cannot prove native Windows behavior but can discriminate restoring the tee-wait pattern. Full native-Windows operational proof and orphan cleanup remain separate obligations under the existing #9272/#9295 owners. No new build or CI was started for this reconciliation. |
|
Verified landing and executed proof: b612825 is on main, merged06:15:27. RequiredRust39728330327 raw logs/artifact12405214651 establish18,793 passed, including all49 windows_advisory unit tests and the named summarizer structural assertion. This closes the invalid focused-target execution gap, not the missing lifecycle regression. Provenance correction to comment6333927310: executed checkout82bf020067abae2f213fae33e6ebfb9736ec7528 has actual Git parents c6299f7 and fecaf06. The earlier review artifact's0e4c02be base reference was not that merge's actual parent. The tested and landed full Windows job and xtask module are byte-identical; later subset-only edits account for the whole-workflow difference. The owner has already dispatched39732838125 on the landing, fullWindowsjob119671584981 active. No additional dispatch is needed. Retain its actual native status files, paired-run verdicts and terminal outcome; Linux structural passes and subset success alone do not prove the hang resolved. #9272's remaining lifecycle proof and #9295/A3 orphan-cleanup scope remain separate. This check made no merge or CI-trigger action. |
Requested by Steven · project thread
Summary
Stop the nightly Windows advisory hanging after cargo exits (#9272, A1 diagnosis and A2 fix).
Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm.It touches no publishing, signing, release environment or secret.
Source-of-truth Links
Governing issue or accepted claim: #9272 (Windows nightly terminal test verdict, 0.11 readiness blocker)
Acceptance delta (one sentence): The nightly Windows advisory's cargo steps can no longer hang past cargo's exit, so a run reaches its summarizer inside the job limit (A1 and A2 of #9272; A3 and A4 remain open).
What was wrong
Run 39549631529 did not time out on test volume. In
Test --no-default-features, cargo built and ran every target in about 20 minutes and printed its finalerror: 7 targets failedat 05:50:11. The step then sat until the 90-minute cancel at 06:57:28. The step wascargo test ... 2>&1 | tee log;teeexits only when every holder of the pipe closes it, so a child leaked by a failed test kept the step alive after cargo was gone. Nightlies 10-04 to 10-17 and 10-21 were all cancelled this way; 10-18 to 10-20 failed earlier at a compile error that is already fixed on main. Healthy runs take 30 to 69 minutes total, so sharding would not help: any shard with a leaking test hangs identically.Decision (reversible, recorded)
Fix the cause instead of sharding. No test is skipped or disabled.
$?as the status, and replay the log withcat. The step waits on cargo alone.timeout-minutes(15 for checks, 30 for tests), and every later step runs underif: ${{ !cancelled() }}. A stuck step is bounded, leaves no status file, and the summarizer reports missing evidence. Nocontinue-on-error(an xtask test pins its absence).docs/CI.mdand achangelog.dfragment describe the change.Proof
cargo xtask precommit,cargo test -p xtask windows_advisoryandcargo xtask check-workflowspass locally.Windows Advisoryon main and report on ci(windows): give the nightly Windows advisory a terminal test verdict inside its job limit #9272. The 7 failing targets become A3 work once a run completes.Not claimed: that the leaked child is identified, or that Windows tests pass.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF