Repository navigation
fix(release): keep Windows Node CI shards advisory for release validation - #161256
Conversation
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 29, 2026, 11:48 AM ET / 15:48 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch makes failed Windows Node unit-test shards advisory during Full Release Validation, records them in release evidence, and gives the Windows process census the deadline of its owning operation. Merge readiness✅ Ready for maintainer review Keep open. Current main still blocks releases on failed Windows Node shards, so this PR remains distinct. The repository admin’s comment accepts the release-policy tradeoff raised in the earlier review, and this review found no blocking patch defect. Priority: P2 Review scores
Verification
How this fits togetherFull Release Validation collects CI and release-check results before deciding whether a release can be published. Its decision and evidence manifest feed the publication gates. flowchart LR
A[Release request] --> B[Normal CI child]
B --> C[Windows Node shards]
B --> D[CI gate]
C --> E[Release decision]
D --> E
E --> F[Evidence manifest]
F --> G[Publication gates]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +457, Docs +40, Config -1, Other +137. Total +633 across 19 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep release admission owned by one policy, derive every advisory from authenticated child evidence, and retain strict gates for all other selected work. Do we have a high-confidence way to reproduce the issue? Not applicable as an existing-behavior bug: current main intentionally blocks failed Windows shards, and the cited release run reached that gate. The census timeout has a source-level path and regression test, but I did not execute it. Is this the best way to solve the issue? Yes. With the policy choice accepted, the existing release-policy owner and authenticated evidence consumers provide a narrow path, while the ordinary CI receipt remains strict. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bcc6b571c448. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Maintainer decision: Peter has explicitly accepted the scoped Windows Node advisory policy and instructed landing this PR. The release-policy tradeoff raised in review is accepted; packaging, install, upgrade, Gateway, identity, and provenance gates retain the behavior described in the PR. CI run 36590586174 on
All five Windows Node jobs ( Current-head follow-up: run 36592102938 on The successful fail-fast monitor names the same root in the failed CI gate. All 61 cancelled jobs have terminal step evidence without hidden failed steps. This includes Windows Node shards 1, 2, 3, 4, and 5, all cancelled; native Windows proof remains incomplete. The native pre-existing-failure exception is being evaluated with these exact-head facts. No CI job was rerun and no full current-head CI success is claimed. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…tion (openclaw#161256) * test(ci): bound the Windows process census by its owning operation deadline * fix(release): make Windows Node CI shards advisory for release validation * fix(ci): keep the workflow below its size limit
What Problem This Solves
Fixes: Full Release Validation blocks a release when a Windows Node unit-test CI shard flakes, even though every packaging, install, upgrade, and Gateway lane passed (FRV run 36574050952 stopped at Release Decision only because
checks-windows-node-test-2hit a Windows process census timeout).User Impact
Release operators: a red Windows Node unit-test shard in the FRV normal CI child no longer fails Release Decision or the publish gates. It still runs, stays red in the CI run, and is listed as an advisory in the decision, the GitHub step summary, and the release evidence manifest. Ordinary PR, push, scheduled, and main CI keep Windows blocking.
Why This Change Was Made
scripts/full-release-validation-policy.mjsnow owns one named advisory class,windows-node-ci: jobs matchingchecks-windows-node-*in thenormalCichild that concludedfailureortimed_out. It is policy, not an input: there is no waiver or operator knob, and waiver inputs (laneWaiver,stableSoakWaiver, non-emptyknownFlakyJobsJson) stay rejected as in #157864.ci-gateexcuses a failedchecks-windowsaggregate only for FRV dispatches (dispatch_idprefixfull-release-validation-). Selected-but-skipped, cancelled, and malformed Windows results still fail the gate. FRV dispatches can no longer emit the ordinary "Confirm validated workflow revision" receipt, so an advisory-green gate cannot certify full CI.normalCirun only if every failed job is in the class andopenclaw/ci-gatesucceeded, because the gate is what proves selected-vs-skipped coverage. A failure outside the class, a cancelled run, or a failed or missing gate still blocks.advisoryJobsis derived from child evidence. The decision/state validator,release-ci-summary, the evidence validator, and the publish gates recompute it and reject any forged, omitted, or out-of-class entry. Manifests with emptyadvisoryJobsfrom runs that already shipped still validate, and the manifest version is unchanged.update-first-hop-compat*, pack/npm qualification, package integrity, Linux Gateway cross-OS lanes, and the Windows packaged install/upgrade checks in Release Checks.The flake fix is separate. The Windows process census in
test/scripts/fixtures/ci-windows-process-census.mjsis a test witness, and it had a fixed 1 s watchdog per query. On the failing runner that watchdog fired while a sibling test file (vitest-worker-artifacts) was saturating the CPU. The job log showsCensus query ETIMEDOUT, thenCensus broker query ETIMEDOUT. The watchdog killed the sampler even though the owning checkout operation still had most of its deadline left. Census reads now use the owning operation's existing deadline (actor lease, supervisor 45 s, or cleanup) instead of an unrelated constant. Late-reply rejection, native birth identity, lease checks, stage-specific diagnostics, and close joins are unchanged.Evidence
node scripts/run-vitest.mjs test/scripts/full-release-validation-state.test.ts test/scripts/release-publish-gates.test.ts test/scripts/validate-full-release-validation-evidence.test.ts test/scripts/release-ci-summary.test.ts test/scripts/ci-platform-checkout.test.ts: 5 files, 695 tests passed.test/scripts/ci-workflow-planning.test.ts(executable ci-gate bash regressions: FRV-only scope, mixed failures across every CI dependency, skipped/cancelled/malformed Windows results, receipt exclusion) passed with 507 tests.delayedcase (reply arrives after 1 s but before the owning deadline) fails on the old code and passes now. Thelatecase uses a controlled clock instead ofAtomics.wait.ci-platform-checkout.test.ts --maxWorkers=1took 107.8 s before and 117.9 s after; the after run overlapped other local checks, and the newdelayedcase uses a fake clock.pnpm tsgo:scripts,pnpm tsgo:test:root,pnpm check:workflows, oxfmt, andgit diff --checkare clean. Native Windows execution of the census fix will be proven by this PR's Windows CI shards.