Repository navigation
fix(ci): avoid Windows allocation for unneeded proof contracts - #1886
vincentkoc wants to merge 4 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR selects proof-pool regressions during Ubuntu classification so unrelated PRs can skip allocating the Windows proof job. Example: A pull request changes only README.md.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: main still allocates the Windows proof job unconditionally, and the proposed optimization preserves fail-closed selection without an actionable source defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGitHub Actions classification consumes event and changed-path inputs, selects validation jobs, and passes their results to CI Gate before release publication. flowchart TD
A[Event and changed paths] --> B[Ubuntu classification]
B --> C[Canonical proof selector]
C --> D[Effective selection output]
D --> E[Conditional Windows proof job]
D --> F[CI Gate]
E --> F
F --> G[Release publication gate]
Technical reviewBest possible solution: Reuse the canonical selector before Windows admission and preserve strict selected-success and unselected-skip checks in CI Gate. Do we have a high-confidence way to reproduce the issue? Current-main workflow source directly shows unconditional Windows allocation before proof selection; no local reproduction was run. Is this the best way to solve the issue? The change uses the existing selector and gate owners, removes post-allocation selection, and keeps explanatory plans aligned without introducing a parallel trigger inventory. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ed1444b0de69. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 7:11 AM ET / 11:11 UTC. |
PR cleanup reviewReviewed head: The change remains distinct from current main: proof selection still occurs after allocating the Windows job there. The new effective output and CI Gate pairing preserve fail-closed behavior, and the added cases cover selector failure, invalid outputs, non-PR events and proof-boundary rename/deletion. This looks like a good small landing candidate after reconciliation with the newer Gateway fixture lane, focused PowerShell contracts and exact-head required CI. I have not run those tests here or measured the hosted timing saving. This is still a conflicted draft; the successful selected-path checks do not clear the default full-build or hosted unselected-job evidence gaps. Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass. |
|
Refreshing #1886 (fix(ci): avoid Windows allocation for unneeded proof contracts) by merging current main into the existing contributor branch. I will preserve the draft and body, retain the fail-closed proof selection and newer separate Gateway fixture lane, resolve only the necessary conflicts, and report exact-head validation and any unavailable Windows proof. This is a branch refresh, not merge approval. |
Resolve the changelog by retaining the proof-pool entry and current main entries. Preserve the newer Gateway fixture lane alongside fail-closed preallocation proof selection. Co-authored-by: bkudiess <[email protected]>
Main refresh completeUpdated #1886 (fix(ci): avoid Windows allocation for unneeded proof contracts) on its existing contributor branch with a non-force merge commit.
Conflict choices: Source review: independent GPT-6 Astra P0-P3 review covered all 10 changed files with no actionable findings, including 250 static admission combinations and LF/CRLF extraction. The shared Astra autoreview invocation also exited 0 and reported no findings, but persistent JSON/status artifacts were not requested, so its full artifact closeout is unverified. These are source assessments, not runtime proof. Validation: Hosted validation: exact-head Build and Test run 43296217206 is in progress. Previous-head checks do not validate this merge candidate. Full native closeout, hosted unselected Windows-job omission, and timing/billing savings remain unverified. Returning the refreshed draft for required CI and maintainer review; no merge, ready transition, body edit, or re-review request was performed. |
|
This pull request has been automatically marked as stale due to inactivity. |
What Problem This Solves
Fixes: PRs without proof-boundary changes still allocate a Windows runner before deciding whether proof-pool regressions are needed.
User Impact
Contributors keep required proof validation while unaffected PRs can avoid one Windows job allocation. Product behavior is unchanged. Runner-minute and billing savings have not been measured.
Why This Change Was Made
The existing canonical selector now runs in Ubuntu classification, which publishes one fail-closed fact before Windows admission. CI Gate requires selected proof to succeed and unselected proof to be skipped. Explain/Human plans use the same selector with the original inputs; default impact JSON and the trigger inventory stay unchanged. The independent Windows PowerShell 5.1 / PowerShell 7 malformed-contract matrix and release dependencies remain intact.
The orchestration/scripts change is +26 net lines (runtime: 0), justified by explicit selector inputs and canonical planner reuse; tests are +141 net lines.
Current main integration
The signed candidate integrates main
8d31176d. Both Ubuntu classification steps now check the exact base and head of pull requests and merge groups. The independent Windows job runs its full contract matrix when selected. Out of 25 workflow jobs, 22 match main exactly. The original selector step, its merge-group inputs, the aggregate job dependencies and the release jobs are preserved.The complete change-classifier and CI Gate suites passed in PowerShell 7.7.0. Six additional event/path combinations exercised the actual selector. The initial integration failed the workflow contract's queue-base assertion. After the test was moved to its new owner, both Ubuntu step assertions passed. On macOS the whole workflow and documentation suites subsequently reached Windows-specific path checks in unchanged helpers. A full-range independent source review found no P0–P3 issues.
Hosted Windows validation passed on
cdf376ffwith 19 successful jobs and seven skipped release-only jobs. The Mock Gateway scenarios, shared and tray test jobs, hosted workflow and documentation checks, packaging jobs and CI Gate passed. The selected Windows proof job rejected 80 invalid contracts using three validation modes. The default All/Debug build and a hosted pull request that omits the unselected Windows job remain unverified. The receipts below describe their named earlier revisions.Evidence
Full candidate owner and shared P0–P3 reviews were clean at
369047ee1b6400ea1218994ce9bdc047d51af703. Independent owner review and mandatory shared P0–P3 review also found no defects in the test-only CRLF repair at current headd68e0ef884f1704ff60481fb6189330e10df46a8(tree3822f9aee9e5b68bf794c86df0dae19820054fe8). Production is unchanged by that repair. These are source assessments, not runtime proof.Initial hosted fast-validation passed classifier and CI Gate suites, then exposed a CRLF-only regex defect in the new workflow-contract test. The repair explicitly validates extraction and runs the actual admission truth table for both LF and CRLF; current-head hosted execution passed.
The separate native closeout attempt is blocked. Initial offline Git preparation exceeded the native hard limit before allocation. The supported fresh-PR attempt then failed during lease acquisition on a TLS transport error; the native tool verified durable cancellation of that exact create request. Neither attempt ran the payload; no active lease or successful shutdown is inferred from the canceled request. No transport, authentication, backend, or limit override was applied.
Existing hosted Windows CI supplies substantial current-source native proof below. The remaining unexecuted closeout command is the default, unpackaged full-repository
./build.ps1invocation; its parameterized Release Dev-package invocation did pass. No replacement allocation or duplicate test run was started.Change Type
Scope
winnodeRequired proof pools
none: this changes CI admission and explanatory planning; no capacity-dependent product, hardware, UI, containment, WSL, or Gateway proof pool is selected.Validation
git diff --check: passed. Full original candidate and focused CRLF repair both passed independent owner review and mandatory shared P0–P3 review without findings.d68e0ef884f1704ff60481fb6189330e10df46a8; tested merge commit6dd417c1c6415c66a6f9a16a12a00e0b4a7ab96ehas the identical source tree3822f9aee9e5b68bf794c86df0dae19820054fe8.test-ci-change-classifier.ps1,test-ci-gate-results.ps1, andtest-ci-workflow-contract.ps1passed, including the original CRLF failing surface.validate-docs.ps1passed 66 Markdown files, both normal/fallbackvalidate-proof-pools.ps1paths (7 pools), andtest-validate-docs-proof-pool-flow.ps1.test-proof-pool-validator.ps1rejected 80 invalid contracts across all 3 validation modes.TestResultContract.ps1. Results are intest-results-core/test-results-trayartifacts on that run; log/result-contract evidence was inspected, not an independent download of the TRX bytes..\build.ps1 -Project WinUI -Configuration Release -Msix Devsucceeded for Shared and WinUI. Other hosted test jobs build the Debug project graphs, but neither is described as the default All/Debug build invocation../build.ps1full-repository closeout. Ordinary CI subsequently passed oncdf376ffas recorded above. Hosted ordinary skips do not establish the skipped behavior or custom proof. The failed separate transport attempt supplies no build/test result.Real Behavior Proof
d68e0ef884f1704ff60481fb6189330e10df46a8/ CI merge6dd417c1c6415c66a6f9a16a12a00e0b4a7ab96e, identical tree3822f9aee9e5b68bf794c86df0dae19820054fe8.Security Impact
Yes, explain the risk and mitigation: only a successful explicit false suppresses Windows proof. Selector failures retain proof; missing or malformed effective facts fail CI Gate. Release proof dependencies remain strict.Compatibility and Migration
Ordinary PR/main validation does not directly enter publication. Scheduled alpha automation can later include merged main; no release, Store, or deployment dispatch is part of this PR.
Review Conversations