Repository navigation
refactor(ci): shorten release qualification and reuse prepared artifacts - #136105
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 7:01 AM ET / 11:01 UTC. ClawSweeper reviewWhat this changesThis PR separates release artifact preparation into an independently verified workflow, narrows stable npm qualification, and parallelizes hosted iOS release phases while updating release guards and tests. Merge readinessKeep open: the introduced workflow boundaries and authority checks are coherent, but exact-head CI and the requested current-main compatibility refresh remain incomplete. Priority: P1 Review scores
Verification
How this fits togetherFull Release Validation prepares package artifacts and gathers platform evidence before release publication. The new artifact workflow passes sealed producer receipts to npm, Docker, and native-release qualification consumers. flowchart LR
A[Full Release Validation] --> B[Artifact preparation]
B --> C[Package and Docker qualification]
A --> D[Native CI qualification]
C --> E[Sealed validation receipt]
D --> E
E --> F[Release publication]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +2192, Docs +73, Config +454, Other +1014. Total +3733 across 48 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge only after exact-head release/CI checks complete successfully and the current-main compatibility comparison is refreshed. Do we have a high-confidence way to reproduce the issue? Not applicable: this is release and CI orchestration rather than a reported user-facing runtime defect. Is this the best way to solve the issue? Yes conditionally: source inspection shows the artifact and native-publication authority boundaries are guarded, but exact-head execution and the post-rebase compatibility comparison must complete first. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 071e3b0e1099. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
vincentkoc
left a comment
There was a problem hiding this comment.
Exact-head maintainer review for 5f5f30838c83dc559a2bf3eb1d1279f57d6fe81d.
ClawSweeper already covers the Docker parent/producer identity mismatch. Additional blockers:
- P1 — Android native-CI authority can go stale before publication. The native run is revalidated at
.github/workflows/openclaw-release-publish.yml:1092, but attestation and artifact upload intervene before dispatch at:1150. The approval consumed by.github/workflows/android-release.yml:77carries no native-CI run tuple, so a rerun/replacement after the check can still reach privileged publication. Revalidate immediately before dispatch and bind the exact native run/attempt into the downstream approval.test/scripts/package-acceptance-workflow.test.ts:3244does not execute this final-use race. - Deterministic branch test failures. Compact 35/44/54 are stale expectations at
test/scripts/full-release-validation-continuation-workflow.test.ts:195,test/scripts/release-no-push-workflow.test.ts:553,:1027, andtest/scripts/test-projects.test.ts:854,:886. - Rebase effect. Current
main5e6117d17d92dcac2ef6da6d609eb423b089a77arepairs the unrelated declaration-cache fixture, so compact 49 and the matching Windows failure are baseline and should disappear after rebase; neither intervening commit changes the release verdict. - Speed proof missing. The PR says hosted measurements are pending. The approved FRV gate requires at least a 20% sampled release-check runner-time reduction; measure aggregate runner time as well as core critical path before landing.
Best-fix verdict: keep the independent sealed-producer architecture, repair both identity/authority boundaries, update the stale workflow tests, rebase, and provide the hosted threshold proof before merge.
5f5f308 to
835600f
Compare
9cf462f to
0fb632e
Compare
09a71ae to
c05c185
Compare
|
@clawsweeper re-review Updated head: c05c185, rebased onto e936020. This integrates the new strict CI gate: both screenshot selection projections now match their owning full-profile predicates, with npm-stable cases and the existing selected-skip rejection proof. Main's shared scratch helper absorbs the Windows test repair. Both iOS build phases and screenshot shards now start directly on the hosted macos-26 image already verified by manual CI and retries. Toolchains, evidence requirements, permissions, and matrix caps stay intact. The full workflow-guard suite passed 307 tests with two platform skips; typed lint and actionlint passed. The complete revised candidate passed managed Codex review at the configured P0 threshold. The PR body records measured admission/runtime evidence and the revised conservative registration accounting. Exact-head CI 33621451234 is running. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…cts (openclaw#136105) * perf(ci): shorten release qualification critical path * fix(ci): bind native release approval to qualified CI * test(ci): cover release retry ownership and native routing * fix(ci): use shared waiter for native release qualification * fix(ci): bound release diagnostics and isolate test scratch * fix(ci): type optional npm producer verification inputs * fix(ci): align release gates and avoid stalled iOS runners
What Problem This Solves
Full Release Validation repeats expensive preparation when its parent is retried, serializes independent npm checks, and makes regular stable npm readiness wait for native app qualification. iOS Release compilation also delays simulator tests, while the longer iPhone screenshot worker carries the Watch captures.
Why This Change Was Made
macos-26. Repeated Blacksmith admission stalls previously required a manual retry before those jobs started. The reducer still requires the complete iPhone, iPad, and Watch evidence.npm-stable-v1to canonical regular stable releases and corrections. Stable soak, blocking performance, QA, Node across OS families, Control UI, and package qualification remain required. Android gets separate exact-source native CI before the existing approval receipt and tag-owned publication flow; core publication can finish independently.The FRV run remains the publication authorization. Artifact producer IDs identify prepared bytes; they cannot authorize publication by themselves. Failure or replacement during FRV artifact collection requires fresh validation. Already-qualified immutable Docker preparation and directly dispatched npm preflight retries retain main's existing reuse contracts. Historical separate NPM Release evidence remains supported. Full profiles and extended-stable retain full coverage.
The final Docker consumer now validates the selected FRV parent separately from its recorded producer. This addresses ClawSweeper's finding and both rank-up moves; the regression carries distinct parent and producer IDs through manifest and live-provenance verification. These new records are immutable Actions artifacts, not operator runtime state or database migrations.
The Android approval now retains the exact native CI run, attempt, and tooling ref. One shared verifier checks that binding during qualification, receipt creation, immediately before dispatch, and through the existing child approval checks before provenance and each asset upload. This addresses the subsequent maintainer review's final-use race. Published stable
v2026.8.2has a strict v2 consumer, so its historical full-validation route retains v2 approvals; npm-only qualification requires the v3 consumer in the exact target tree and otherwise fails before core publication with a full-profile recovery instruction.Native qualification uses the existing release waiter, including workflow-SHA checks and early failed-job reporting, with environment approval explicitly disabled. This addresses the latest ClawSweeper finding. GitHub's child run head identifies the tooling SHA; the separate source SHA remains bound by the native validator. The dry run exposed a diagnostic amplification bug: unfinished jobs with empty conclusions were treated as failures. Failure reporting now fetches logs only for completed unsuccessful jobs; its executable regression fails on the previous filter.
Main's new strict aggregate rejects unexpected selected-job skips. The final integration retains that gate and matches both screenshot selection projections to their owning full-profile predicates, so
npm-stablecan legitimately defer screenshots without failing qualification. The existing projection test fails before the two-row repair; npm-stable manual and PR cases now exercise the final shell gate. Main's shared temporary-directory helper also absorbs the Windows scratch fix, removing that file from this PR's diff.User Impact
Maintainers can retry failed validation children without rebuilding successful release artifacts. Independent checks overlap, and native qualification no longer extends regular stable npm readiness. Documentation now distinguishes the FRV authorization ID from its artifact producer and explains recovery and native publication status.
Evidence
09a71ae9with an explicit options type preserving the optionalproofKindcontract in the npm bundle verifier. Both Windows test shards passed on09a71ae9, including the repaired scratch-directory case. After integrating current main, the complete workflow-guard suite passed 307 tests with two platform skips; typed lint, actionlint, formatting, and whitespace checks passed. Exact-head hosted CI remains the landing gate.mainadvanced before the shared protected-ref resolver; it passes with the original protected tooling ref. Structured Codex review found no actionable P0 issues..artifactsscratch root, retaining the same Windows drive and assertions while keeping transient data outside compiler inputs. No production exception handling or test assertion was weakened.0fb632e9, completed in 47m44s. All 11 Android/iOS build, test, capture, and reducer jobs passed: Release 16m39s, parallel Debug/simulator 26m28s, iPhone capture job 23m09s, and iPad/Watch capture job 40m33s. All four Apple workers overlapped for 11m39s. The final screenshot bundle was downloaded and authenticated against GitHub's SHA-256; readback verified all nine PNGs and eight xcresult directory hashes, exact source/run/attempt, and tool versions. The run correctly failed on native locale parity, the skills-library save fixture, and the test typing repaired on the final PR head, plus the aggregate gate. It proves native concurrency and complete screenshot evidence, not successful overall qualification. Its manual actor/title cannot serve as the bot-attested v3 native handoff.Named follow-ups from that dry run: built-channel smoke / fs-safe ESM module identity (compare a physical installation with the current symlink fixture before choosing a runtime or fixture repair), Nodemailer production dependency advisory GHSA-2x7j-588g-ccc2 (locked 9.0.4/9.0.5; upstream patch 9.1.0). The inspected current main retains the same smoke owners and dependency versions. This PR addresses the observed Blacksmith macOS admission delay by routing the four iOS workers directly to the verified hosted image. No repository-wide runner override or release gate was weakened. Additional named follow-ups are native locale artifact parity with the canonical source inventory, skills-library import/save mock-gateway event proof, session-dashboard active-panel reload diagnostics, and Linux non-isolated auth-alias mock initialization. The active-panel case timed out only after reload in hosted CI while 103 other cases passed; a fresh local bundle passed its single case, and the hosted failure produced no browser diagnostics. Its assertions remain unchanged. The latter failed in the preceding PR run but passed all 28 owner cases and the original 60-file, 1,102-test batch locally; no speculative auth change was made.
The latest ClawSweeper review covers
c05c18586d83and reports no code or security findings. Its current-main comparison request is complete: the PR integrates main's strict CI gate ate936020d5b0, and a fresh comparison against188fd77d91aafinds only the independent authenticated-security-checkout change and tests overlapping this PR. A clean merge-tree retains both that fix and this PR's hosted iOS routing and full-profile gate predicates. The exact-head CodeQL result has 16 annotated locations already present on main, in three owning files that are byte-identical to current main. Four diagnostic messages are truncated, so full message equality is not claimed. The existing release-source/cache-trust boundary remains a named follow-up; no alert was suppressed and no gate was weakened.Exact-head CI run 33621451234 on
c05c18586d83completed successfully on attempt 2: 171 successful checks and five intended skips. The first attempt failed only while downloading the private-key scanner's pinned hook repository; the detector had not run. A targeted security-job retry retained all 169 successful jobs and passed the scanners and aggregate gate. The hosted retry's trusted checkout also encountered a Git HTTP 429, retried, and completed. No checks were weakened or suppressed. This completes the latest review's exact-head verification request.On the final head, all four Apple workers started directly on hosted Macs within four seconds of preflight, on the first attempt. The Release and test jobs passed in 15m50s and 20m54s while running concurrently. iPhone capture passed in 32m04s; iPad/Watch passed in 38m21s, including 8m11s for Watch. The reducer passed in 50s, making native evidence available 41m16s after run creation. The final screenshot artifact was downloaded and authenticated against GitHub's SHA-256. All nine PNGs and eight xcresult directory hashes passed readback; canonical reducer replay produced an identical manifest. The manifest binds attempt 1 and tested merge
faa7a0fe1cb82, whose parents are the PR head and admitted main64807afd269. These are observed admission, overlap, and stage timings, not a matched end-to-end speedup percentage.The full revised candidate passed managed Codex review with no accepted P0 findings. The preceding run also demonstrated the hosted recovery route: all three stalled Mac jobs received runners within eight seconds, the iOS test job passed in 15m31s, and iPhone capture passed in 28m36s.
Validation dispatches are nonpublishing. An actual signed native or npm publication is outside this change's test scope; the publication authorization and handoff are covered by executable fixtures, with hosted package/native qualification measured separately.
Scope and ownership
Against
e936020d5b0, authored release tooling/workflows change by +2363/-898 (net +1465); the generated Git-owner mirror adds a further net 3 lines. Tests change by +2804/-612 (net +2192), and docs/CI guidance by +162/-89 (net +73). There are no application runtime implementation changes. The production growth establishes independent artifact lifecycle owners, raw-versus-qualified handoffs, and native publication authority that survives dispatch. It removes parent-owned preparation and serial npm qualification. Compatibility branches are limited to the observed historical publication contracts described above.Capacity: a complete npm qualification uses six Blacksmith jobs instead of three, with at most four independent npm workers active at once. Budget all six registrations in one five-minute window; the increase is three per qualification arrival. A fresh FRV with all three producers adds ten hosted coordination jobs. The split iOS Release phase adds one hosted Mac job; moving existing native jobs to that image removes one Blacksmith registration per selected main run and three per selected PR. The conservative main/PR row estimate is now
4 × 180 + 19 × 274 = 5,926, down from 5,995. Parent retries reuse existing producers. Main/PR cancellation rules and matrix caps are unchanged. This arrival envelope does not establish organization-wide headroom: release arrivals, adjacent repositories, and historical queued carryover remain separate. Pre-land snapshots also record an existing ClawSweeper claim-handoff stall and publication backlog for the post-land comparison.