Skip to content

ci(windows): stop the nightly hanging after cargo exits (#9272) - #9280

Merged
EffortlessSteven merged 5 commits into
mainfrom
claude/project-thread-gyt3zf
Oct 22, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
claude/project-thread-gyt3zf

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

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.

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

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 final error: 7 targets failed at 05:50:11. The step then sat until the 90-minute cancel at 06:57:28. The step was cargo test ... 2>&1 | tee log; tee exits 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.

  • All five cargo steps now write the log with a file redirect, record $? as the status, and replay the log with cat. The step waits on cargo alone.
  • Each has its own timeout-minutes (15 for checks, 30 for tests), and every later step runs under if: ${{ !cancelled() }}. A stuck step is bounded, leaves no status file, and the summarizer reports missing evidence. No continue-on-error (an xtask test pins its absence).
  • docs/CI.md and a changelog.d fragment describe the change.

Proof

Not claimed: that the leaked child is identified, or that Windows tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF

… 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
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven self-assigned this Oct 21, 2026
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 98 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 26741b47-e0a1-4a26-ada8-a35e513f2c9b
📥 Commits

Reviewing files that changed from the base of the PR and between 7378fcd and fecaf06.

📒 Files selected for processing: 3
  • .github/workflows/windows-advisory.yml
  • changelog.d/9272-windows-advisory-no-tee-hang.md
  • docs/CI.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…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

Copy link
Copy Markdown
Member Author

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:

  • Blocking (contract reviewer): continue-on-error contradicts the_summarizer_verdict_reaches_the_job_log_and_its_refusal_is_not_suppressed in xtask/src/windows_advisory.rs, which pins its absence. Resolved in cc39711: removed it; each cargo step keeps its timeout-minutes and every later step runs under if: ${{ !cancelled() }}. A timed-out step fails the job (no status file, so the summarizer reports missing evidence) while later steps still run. The pinned test, cargo test -p xtask windows_advisory (49 passed) and cargo xtask check-workflows pass on this head; cargo xtask precommit passed on the prior head and this delta touches only the workflow, CI.md and the fragment.
  • Low (contract reviewer): stale PIPESTATUS[0] comment. Fixed.
  • Shell reviewer: no blocking findings. $? is cargo's, set +e precedes it, status is written before cat, a missing status or log is reported by load_run as StatusMissing or LogMissing. Noted tradeoff: a step killed by its timeout shows no replayed log in the job output; the partial log is in the uploaded artifact.
  • Noted: step timeouts sum to 120 minutes against the 90-minute job limit; each step normally ends far below its cap, and the job limit still bounds the worst case.

Not established: the real Windows run. I will dispatch Windows Advisory on main after merge and report the result on #9272. Hosted reviewers (Gemini, CodeRabbit) hit quota limits, so they supplied no review.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 21, 2026 21:39
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Admit PR Candidate failed on cc39711 with claim_identity_missing: the body lacked the template's "Governing issue or accepted claim" and "Acceptance delta" lines. This is the PR's own gap, not the code. I filled both in from the template (governing issue #9272) and re-applied merge-ready to restart admission. No code change, so the review of record above still holds for this head.


Generated by Claude Code

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

Comment thread .github/workflows/windows-advisory.yml Resolved
Comment thread .github/workflows/windows-advisory.yml Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member Author

Review of record, head 6931326

Angles: single-reviewer pass (workflow correctness); no independent subagent reviewers were available in this lane.

  • Merged main (clean). Both Devin threads valid and fixed: job deadline 150 min above the 120-minute sum of step deadlines; manual isolation repeats redirect instead of piping to tee. Replied and resolved.
  • Verified: YAML parses, .status file names unchanged for windows-advisory-isolated-summary, no continue-on-error added, no test skipped.
  • Local proof gap: cargo xtask precommit not run (shared host out of disk); hosted exact-head proof is the evidence. The real proof remains a Windows nightly dispatch after merge (ci(windows): give the nightly Windows advisory a terminal test verdict inside its job limit #9272).

🤖 Generated with Claude Code


Generated by Claude Code

Copy link
Copy Markdown
Member Author

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.

  • Job timeout-minutes 90 to 150, above the 15+30+15+30+30 step deadlines, so the summarizer is reachable when every cargo step times out. Correct: this was a real gap in my 90-minute-limit reading ("not a problem in practice") and the finding is valid. A leaked pipe can no longer hold the job, so the larger ceiling only applies to genuinely stuck steps.
  • Manual nested-alias repeats converted from | tee/PIPESTATUS to redirect, $?, cat. The .status files the isolated summarizer reads are still written under set +e; the set -e restoration comes before printf, which cannot fail on a normal workspace. No finding.
  • The pinned xtask test only inspects the summarizer lines and the absence of continue-on-error; neither changed.

No blocking findings. github-actions[bot] review (comment-only) asked for a lifecycle regression test and for the real Windows receipt; the receipt is the post-merge dispatch already planned, and a leaked-child regression test is not possible without a Windows runner (tracked as the A3 work on #9272). Its "sharding would not help" objection is fair: the evidence shows hang, not volume, and I have not run a sharded variant.

Pushed after merge-ready, so I am re-applying the label to restart admission on this head.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

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

Copy link
Copy Markdown
Member Author

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 docs/CI.md to "the cargo steps alone cannot exhaust the 150-minute job limit". The delta is comments and prose only; continue-on-error is still absent (grep count 0), YAML parses, and check-workflows and check-doc-artifacts pass. The cargo test -p xtask windows_advisory rerun hit my local 500s cap while compiling, so the pinned test result for this head rests on the unchanged assertion plus the previous head's pass (49 passed), not a fresh run.

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). merge-ready re-applied to restart admission on this head.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 a run_with_status shell 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.

Copy link
Copy Markdown
Member Author

Response to the latest github-actions[bot] review on fecaf06:

  • "Focused HEAD proof failed (exit 101): cargo test --package xtask --test windows_advisory" is not a product failure. xtask/tests/ has only windows_advisory_identity.rs; there is no windows_advisory integration target, so cargo exits 101 with "no test target". The pinned test lives in the lib (windows_advisory::tests::the_summarizer_verdict_reaches_the_job_log_and_its_refusal_is_not_suppressed) and passed (49 passed) at cc39711; the later commits changed no executable workflow text.
  • Lifecycle regression test for a pipe-holding descendant: not adding one here. A Linux test that spawns bash with a lingering child would test bash's pipe semantics, not this workflow, and the real Windows behavior can only be shown by the full native run. The descendant-held-pipe proof belongs with the leak fix (fix(process): run verify-execute child under the shared owner (#3803) #9295, A3 on ci(windows): give the nightly Windows advisory a terminal test verdict inside its job limit #9272); the proof for this PR is the post-merge full windows-advisory dispatch.
  • zizmor/actionlint sensor failures: the diff adds no new uses:, secrets, permissions or expression inputs (only timeout-minutes, if: ${{ !cancelled() }} and run-line text), and cargo xtask check-workflows passes.
  • Helper/composite deduplication parked, as the review itself says.

Generated by Claude Code

Copy link
Copy Markdown
Member Author

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 cargo test --locked -p xtask --bin xtask windows_advisory. First consume the already-running required Rust tests in39728330327 and reuse applicable actual xtask receipts before considering another run.

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.

@EffortlessSteven
EffortlessSteven merged commit b612825 into main Oct 22, 2026
38 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-gyt3zf branch October 22, 2026 06:15

Copy link
Copy Markdown
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants