Skip to content

fix(release): keep Windows Node CI shards advisory for release validation - #161256

Merged
steipete merged 3 commits into
mainfrom
fix/windows-node-ci-advisory
Sep 29, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/windows-node-ci-advisory

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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-2 hit 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.mjs now owns one named advisory class, windows-node-ci: jobs matching checks-windows-node-* in the normalCi child that concluded failure or timed_out. It is policy, not an input: there is no waiver or operator knob, and waiver inputs (laneWaiver, stableSoakWaiver, non-empty knownFlakyJobsJson) stay rejected as in #157864.

  • ci-gate excuses a failed checks-windows aggregate only for FRV dispatches (dispatch_id prefix full-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.
  • The release decision accepts a failed normalCi run only if every failed job is in the class and openclaw/ci-gate succeeded, 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.
  • advisoryJobs is 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 empty advisoryJobs from runs that already shipped still validate, and the manifest version is unchanged.
  • Everything else stays blocking in every mode: macOS Node and all other normal CI jobs, install smoke, survivor lanes, update-first-hop-compat*, pack/npm qualification, package integrity, Linux Gateway cross-OS lanes, and the Windows packaged install/upgrade checks in Release Checks.
  • RELEASING.md and the release skills now describe this policy.

The flake fix is separate. The Windows process census in test/scripts/fixtures/ci-windows-process-census.mjs is 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 shows Census query ETIMEDOUT, then Census 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.
  • New regressions: advisory accepted only with a successful ci-gate; macOS Node failure, a non-class failure next to an advisory, a cancelled run, forged or omitted advisory entries, and wrong-child attribution all block; the Release Checks Windows install/upgrade jobs are not matched. For the census, a new delayed case (reply arrives after 1 s but before the owning deadline) fails on the old code and passes now. The late case uses a controlled clock instead of Atomics.wait.
  • Cost: the new policy tests run in milliseconds each with no real timers. ci-platform-checkout.test.ts --maxWorkers=1 took 107.8 s before and 117.9 s after; the after run overlapped other local checks, and the new delayed case uses a fake clock.
  • pnpm tsgo:scripts, pnpm tsgo:test:root, pnpm check:workflows, oxfmt, and git diff --check are clean. Native Windows execution of the census fix will be proven by this PR's Windows CI shards.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L labels Sep 29, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 29, 2026, 11:48 AM ET / 15:48 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 149259093b5948ed5914449f738417eddce994d4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent policy boundaries and focused regressions; native Windows coverage on the reviewed head remains unobserved.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor proof gate does not apply to the verified repository-admin author. Source and submitted tests trace the CI gate through release decision, manifest, and publication checks; the reviewed head’s native Windows jobs were cancelled, so they provide no passing platform observation. Existing manifests without advisory jobs remain compatible.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor proof gate does not apply to the verified repository-admin author. Source and submitted tests trace the CI gate through release decision, manifest, and publication checks; the reviewed head’s native Windows jobs were cancelled, so they provide no passing platform observation. Existing manifests without advisory jobs remain compatible.
Evidence reviewed 11 items Current main remains strict: The checked local main requires a successful child conclusion and zero failed jobs; it has no Windows Node advisory class.
Introduced advisory boundary: The class matches completed failed or timed-out Windows Node jobs only in the normal CI child.
Release decision guard: A failed child passes only when every failed job belongs to that class and exactly one successful CI gate is present; other failures remain blockers.
Findings None None.
Security None None.

How this fits together

Full 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +457, Docs +40, Config -1, Other +137. Total +633 across 19 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 8 558 101 +457
Docs 4 56 16 +40
Config 1 17 18 -1
Generated 0 0 0 0
Other 6 166 29 +137
Total 19 797 164 +633

Review metrics

Metric Value Why it matters
Advisory policy surface 1 named class, 0 new operator controls The exception is fixed in policy rather than supplied as a release-time waiver.
Code and test growth release scripts +137 net lines; tests and fixtures +457 net lines The production growth implements one shared advisory policy across its evidence consumers, with boundary regressions.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a consequential but bounded release-operator workflow change without evidence of an immediate end-user outage.
  • merge-risk: 🚨 automation: Release automation may publish with a failed Windows Node shard under the scoped tradeoff explicitly accepted in the PR discussion.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor proof gate does not apply to the verified repository-admin author. Source and submitted tests trace the CI gate through release decision, manifest, and publication checks; the reviewed head’s native Windows jobs were cancelled, so they provide no passing platform observation. Existing manifests without advisory jobs remain compatible.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-29T15:37:15.487Z sha d0cdbe0 :: blocked before merge. :: none

@steipete

steipete commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor Author

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 d0cdbe06df5aef059e65dad27e4b5bae7828e103 stopped with two root test failures:

  • checks-node-compact-small-19-3: this PR grew .github/workflows/ci.yml to 480,562 bytes, above the existing 480,000-byte guard. Fixed in 149259093b5948ed5914449f738417eddce994d4 by shortening comments only. The file is now 479,960 bytes; every non-comment line is identical. The workflow-size regression passes (2.89 s wall), pnpm check:workflows passes, and independent scoped review found no actionable issues.
  • checks-node-compact-small-18-3: test/scripts/lint-suppressions.test.ts reports an extra typescript/unbound-method suppression in src/infra/state-migrations.mcp-oauth-faults.test-support.ts. This reproduces locally (7.81 s wall). The test, scanner, parser, offending source, suppression-bearing file inventory, and every suppression-bearing file are identical to base 313f6211d406aeda2b8b1108883713e1e5f97d5e; the source came from ef1f5681753e. This failure is inherited, not caused by the PR. No allowlist or test expectation was changed.

All five Windows Node jobs (checks-windows-node-test-1 through checks-windows-node-test-5) concluded cancelled, each during Run test (node). This is incomplete native Windows coverage, not passing proof. The fail-fast monitor completed successfully. No failed job was rerun; the additional push contains the workflow-size correction.

Current-head follow-up: run 36592102938 on 149259093b5948ed5914449f738417eddce994d4 is terminal cancelled. Its sole non-aggregate failed job is checks-node-compact-small-18-3, with the same inherited suppression inventory assertion. The workflow-size check no longer fails. The actual checkout was merge 91c82a9d1fecedc272421c71649723231cc63fc5, whose first parent is main baseline fd380609d8fba19fef546b259495792ee9ae7431. The test and 916 checked source inputs, including all 910 suppression-bearing files, are identical between that baseline and tested merge.

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.

@steipete
steipete merged commit a214e76 into main Sep 29, 2026
108 of 172 checks passed
@steipete
steipete deleted the fix/windows-node-ci-advisory branch September 29, 2026 15:55
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

steipete added a commit that referenced this pull request Sep 30, 2026
…tion (#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

(cherry picked from commit a214e76)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant