Skip to content

ci(windows): manual sharded Windows advisory workflow - #9655

Merged
EffortlessSteven merged 9 commits into
mainfrom
claude/windows-shards-9272
Oct 22, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
claude/windows-shards-9272

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds windows-advisory-shards.yml (manual workflow_dispatch only): Windows workspace tests as four cargo nextest --partition count:N/4 jobs plus a doctest job, each with log/status artifacts and failure summaries. This is a follow-up to the raised caps in #9585.

The earlier experiment39764872026 executed c39c25a with an earlier workflow revision. Four shards completed in roughly23–25 minutes, reporting26/21/15/19 failures by shard (81 total); doctests2 passed/1 ignored. That is one observed sharded sample, not a universal duration guarantee, paired stability proof or qualification of the current source. The current ANSI-summary repair was independently replayed against retained logs and colored negative controls; its checked-in regression also passed current required qualification39793021582.

Source-of-truth Links

Proposal: none separately linked; follow-up to #9585.
Spec: existing Windows advisory evidence contracts; no nightly replacement claimed.
ADR: none; no separate architecture decision.
Plan item: #9272.
Governing issue or accepted claim: #9272 (Windows advisory full test verdict for 0.11).
Acceptance delta (one sentence): Provide a manual sharded Windows workspace verdict with retained native statuses and visible per-shard failure attribution.

Candidate Relationships

Candidate branch: GitHub published head is authoritative, a3942da.
Stack parent or prerequisite PR: #9701, landed7ed8a4af and composed in this candidate.
Proposed replacement: none.
Acceptance retained from a replaced candidate: none.
Accepted winner and losing candidate disposition: not applicable; this manual workflow does not replace the existing nightly lane.

Not in this PR

Existing single-job windows-advisory.yml and its summarizer are unchanged. Nightly migration and lowering old caps remain follow-up work. Preserve the separate paired03d4a758 evidence in #9272; neither sample proves all Windows tests pass.


Generated by Claude Code

@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!

@coderabbitai

coderabbitai Bot commented Oct 22, 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 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 106 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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 0412597b-ff72-46b9-a50a-1c93bed095c6
📥 Commits

Reviewing files that changed from the base of the PR and between 7ed8a4a and a3942da.

📒 Files selected for processing: 7
  • .github/workflows/windows-advisory-shards.yml
  • changelog.d/9272-windows-advisory-shards.md
  • changelog.d/9272-windows-shard-summary-test.md
  • docs/CI.md
  • policy/process_allowlist.txt
  • policy/workflow_allowlist.txt
  • xtask/tests/windows_shard_summary.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF

@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 shards timeout-minutes: 60 and per-step timeout-minutes: 50; per PR proof run shards completed in 23-25 min, so budget is adequate but tight. No cache save (save-if: false) and shared cache key includes runner.os means each fresh windows-latest image pays full dep rebuild; first run after a dependency bump could approach the 50-min step cap.
  • Confirm no in-repo test was added or changed by this PR; red/green proof lives entirely in the manual workflow. Re-runnable, per-shard test evidence is not checked into the repo, so future regressions of the workflow (e.g. wrong partition index, missing --no-fail-fast) will only be caught by a manual dispatch. Not a blocker for an advisory, manual-only CI addition.

Refuted

  • cargo nextest run --partition count:N/4 is not a valid nextest flag and will silently no-op, hiding the workspace failure signal.; refuted because: nextest supports --partition with spec forms count:/ and index:/; the workflow uses the documented form. The PR proof run already produced a complete Windows verdict (81 failing tests), so the invocation clearly executed and produced real output.
  • Allowlist row understates scope by saying 'no dependency-change, credential or release authority' while the workflow runs cargo nextest against the whole workspace and uploads logs that could leak test output.; refuted because: cargo nextest --workspace runs build/test code already in the repo; there is no third-party dependency installation beyond nextest itself (installed via pinned taiki-e/install-action). Uploaded artifacts are test logs only, retention 7d, already the same model as windows-advisory.yml which carries a similar but more detailed allowlist row. The 'no dependency-change' phrase matches the policy vocabulary used elsewhere.

Parked follow-ups

  • The two fetch steps (owner_return_pin_fallible_literal and owner_return_pin_json_real_literal) and the rust-toolchain 1.95.0 pin are duplicated verbatim from windows-advisory.yml. If either upstream fixture path or toolchain is bumped, both files must be updated in lockstep. Acceptable given the documented 'one cargo per step' boundary, but worth a follow-up to add a CI lint or composite action once a third user appears.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Independent review at53823016b016bd0ffb8b50be936dde4e7a4b2069 found a failure-reporting defect in the new workflow: line67 anchors grep on FAIL/LEAK without stripping ANSI, while retained nextest logs prefix those rows with ANSI escapes. Reviewer /root/review_windows_shard_workflow downloaded and SHA-verified all five experiment archives and replayed the exact producer filter. Every shard yields only its Summary line, losing all named FAIL/LEAK rows. For shard1, raw filter matches1 line versus53 after ANSI normalization (26 failures printed twice plus summary). Shard2's leaky-pass subject is hidden too.

Existing owner: make captured nextest output ANSI-free or normalize before extracting failures, add a colored-log regression fixture, and replay retained logs locally. This defect does not require a new Windows dispatch to demonstrate. Preserve raw logs and nonzero test status; do not solve by dropping failure visibility.

Experiment39764872026 is genuine but single-sample: statuses100 for each shard, doctest0;18470 distinct executable-owned subjects with no cross-shard duplicates. Failure counts by shard are26/21/15/19, not26/21/19/15. Doctests2pass/1ignored. This is not paired stability proof or implemented nightly replacement.

Current required Ripr Rust Small Result is not yet observed on this head. Earlier39783479811 failed action-pin policy on7d8b18dd; current source pins repair that, but inherited E0425 remains separately owned by #9699/#9701. Retain that custody and existing qualification, no duplicate run is requested by this review.

Copy link
Copy Markdown
Member Author

Fixed in 3e5534f: the Summarize failures step strips ANSI escapes (sed -E 's/\x1b\[[0-9;]*m//g') before the FAIL/LEAK/Summary filter. The raw log and the real nextest status are untouched, and the raw log is still uploaded. xtask/tests/windows_shard_summary.rs runs the checked-in step against a colored log. It fails on the old filter (only the Summary row survives) and passes now. Per-shard failure counts are 26/21/15/19, not 26/21/19/15; my PR body had the last two swapped. Run 39764872026 is one sample, not stability proof, and this PR does not replace the nightly lane. I'll merge main and re-request the required check once #9701 lands.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF

Copy link
Copy Markdown
Member Author

Independent affected-delta validation at current a3942da: reviewer /root/verify_shard_reporting_repair independently verified all five retained experiment archive SHA256s and replayed the checked-in summary step under bash -e -o pipefail. It now emits named FAIL counts26/21/15/19 and shard2 LEAK, whereas the old step emits zero named failures. Colored FAIL/SIGABRT/SIGSEGV/TIMEOUT/LEAK controls survive, PASS stays excluded, and raw logs/status100 files remain byte-identical. The former ANSI-reporting finding is resolved by this observed local replay, not by a new Windows experiment.

The prior required39788406913 failed process-allowlist policy on a5c8e77; current a3942da adds the two bounded entries. Remote merge b74dea1 has parents7ed8a4af and current head, establishing composition of #9701. Current-head required qualification was not observed: the existing merge-ready label persisted across the repair push, while routed-rust starts PR work on the labeled event. Existing owner can verify no current required run has appeared, then make one normal qualification request for the repaired head. Do not retry old a5 unchanged or start another Windows experiment. Preserve manual-only/nightly and single-sample proof boundaries; no dispatch/label/source operation was performed by this review.

@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 xtask test parses the Summarize failures step by line-offset heuristics (skip_while 'run: |' then take_while indented); fragile if the YAML step body de-indents or the run: marker changes form, but currently matches the checked-in workflow verbatim.
  • Confirm the workflow uses bash plus GNU-style sed/grep behavior on windows-latest, but the checked-in Rust test invokes only bash and does not execute the Windows runner or validate shell portability.

Refuted

  • The workflow summary step could mask a failed nextest run.; refuted because: The cargo command records and exits with its captured status; the later non-gating summary and upload use if: !cancelled() but do not replace that status.
  • The workflow's shard and doctest jobs lack executable proof of full Windows behavior in this change.; refuted because: That limitation remains valid but is not a red/green defect in this targeted repair; the PR explicitly documents the workflow as manual advisory evidence, and seeded-thread evidence records a real Windows run.
  • The xtask test duplicates the summary step body and will rot independently of the workflow.; refuted because: summarize_step() reads the workflow YAML and extracts the indented run: \| body each invocation, substituting ${{ matrix.shard }} with '1'. The test never holds a hardcoded copy. Indentation changes surface as Err('Summarize failures step not found').

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Independent reviewer /root/verify_shard_reporting_repair: REVIEW_READY for a3942da against7ed8a4af6df05a45dea9a19da36c65ca8b457af6, retaining prior full review and affected delta inspection. ANSI defect resolved by exact retained-log replay and colored FAIL/LEAK/opposite controls; raw logs/statuses preserved. Required39793021582 Result119895175441 succeeded14:51:08. Actual controller/checkoutb74dea11237a2973b21d125ea1782eeba11ced1b; artifact12435105303 SHA2563b14e36af2caf48456b3e3a0dba4dd3fbb3df4ed4b2ec35b786229b2f83cd9e6 verified,19139executed tests passed plus5 separately skipped. New colored_nextest_rows_still_reach_the_summary passed; doctests2pass1ignored and all contracts/corpora/PR evidence/Schema sweep passed. All producer steps and aggregate are complete; underlying workflow API retained stale in_progress, not claimed workflow-wide terminal. No unresolved threads, changes requested, holds or material findings observed. Manual-only, no new native Windows experiment or nightly replacement claimed. Normal protections and final expected-head check remain mandatory.

@EffortlessSteven
EffortlessSteven merged commit 5b397da into main Oct 22, 2026
45 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/windows-shards-9272 branch October 22, 2026 14:55

Copy link
Copy Markdown
Member Author

Review of record, head a3942da (main 7ed8a4a merged in).

Angles:

  • Correctness: shards use nextest --partition count:N/4 with a file redirect, a status file replayed as the real exit code, and artifacts uploaded under !cancelled(). The summary step now strips ANSI before filtering.
  • Tests: windows_shard_summary.rs runs the checked-in summary step against a colored log. It fails on the old filter and passes on the fix. cargo xtask precommit is clean locally. Required run 39793021582 produced a succeeded Result on this head.
  • Policy: third-party actions are SHA-pinned, and the workflow and process allowlist rows are present.
  • Independent review: an independent review on the same head gave REVIEW_READY with no unresolved findings.

The workflow is manual-only. It does not replace the nightly lane, and run 39764872026 remains a single-sample proof. Merging with the expected-head check.


Generated by Claude Code

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