Repository navigation
perf(release): shorten preflight and publication - #135367
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 3:29 PM ET / 19:29 UTC. ClawSweeper reviewWhat this changesThe PR reuses prepared release package outputs, starts and approves core npm publication after plugin npm succeeds while ClawHub work continues, increases selected CI runner requests, and routes two CLI state-directory suites through their isolated process project. Merge readinessNo introduced correctness or security defect was found. This member-authored, maintainer-labeled release-automation change still needs release-owner acceptance of its deliberate partial-publication semantics and completion of exact-head CI before merge. Priority: P2 Review scores
Verification
How this fits togetherThe release publisher turns a validated release tag and preflight package into plugin, npm, ClawHub, Windows, and Android publication work, then records the final release evidence. CI runner selection and process-test routing determine how validation work is scheduled before a release can proceed. flowchart LR
A[Release tag and preflight] --> B[Plugin npm publication]
B --> C[Core npm start and approval]
A --> D[ClawHub authorization]
C --> E[Collect child outcomes]
D --> E
E --> F[Draft release evidence]
G[CI checks] --> H[Runner and process-test routing]
Decision needed
Why: This is an intentional release-semantics tradeoff, not a mechanical defect: tests cover the resulting recovery state, but only the release owner can accept the partial-publication boundary. Before merge
Agent review detailsSecurityNone. PR surfaceTests +494, Docs +46, Config +23, Other +39. Total +602 across 17 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after the release owner explicitly accepts the earlier immutable core npm publication boundary and exact-head CI is green; retain the existing SHA checks, environment-scoped approval, draft-on-failure behavior, and modeled failure coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a release-automation change rather than a reported product defect; the relevant evidence is the modeled workflow success and failure coverage plus the supplied package measurement. Is this the best way to solve the issue? Unclear: the implementation preserves child-SHA verification, environment-scoped approval, and required-result collection, but only a release owner can determine whether earlier irreversible npm publication is the right policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aaa7dd39e643. LabelsLabel justifications:
EvidenceWhat 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 (3 earlier review cycles) |
* perf(release): reuse prepared builds and overlap publication * test(release): capture prepack hook output before pnpm reporting * ci: request larger runners for release and type checks * test(ci): isolate state-directory gateway process suites
What Problem This Solves
Release preflight rebuilt the package after it had already prepared the exact release outputs. Core npm publication also waited behind ClawHub authorization and bootstrap work, even after its plugin npm dependencies were published. The requested Blacksmith sizes also delivered fewer resources than their labels: the 16-vCPU release preflight received four CPUs and 15.42 GiB, which selected the existing serial lint policy.
Why This Change Was Made
Reuse the prepared build through the existing release-pack flag, retaining the complete packaging lifecycle. Start core npm and pass its exact environment approval as soon as plugin npm succeeds, then let ClawHub authorization and bootstrap proceed alongside it. A successful approval no longer makes the parent wait for core runner allocation.
The parent still collects every required child result and keeps the GitHub release as a draft after a required failure. If core npm already succeeded, its registry evidence is preserved for recovery. One ClawHub runtime-state projection now drives both verifier arguments and truthful failure notes. Ordinary source packing still performs a clean build.
Request the 32-vCPU class for npm preflight, CI test types, five core type stripes, and runtime-topology checks. The live probe measured eight CPUs and 30.95 GiB for this label, clearing the eight-CPU/24-GiB parallel-check threshold. These are four runner selections covering up to eight existing job rows; no jobs or registrations are added. Backend/trust routing, hosted retries, explicit hosted preflight, worker budgets, permissions, and publication behavior are preserved. Comments and CI docs record the dated allocation evidence and require reassessment when the provider allocation changes.
The two source-launching CLI state-directory guard suites now use the existing isolated process-test owner. They were missing from its inventory and ran inside the shared CLI graph. This preserves their production deadline and assertions while giving full, focused, and CI runs the same execution policy.
User Impact
Release operators spend less time repacking prepared outputs and can make core npm available while ClawHub completes. This does not promise that the entire release finishes in seconds: validation, runner queues, required ClawHub completion, and Windows promotion can still determine total duration.
Evidence
check:changed, formatting, and docs listing passed. Parsed workflow comparison found exactly four changed label scalars with all steps, permissions, timeouts, environments, matrix sizes, and concurrency limits preserved. Final scoped Codex Autoreview found no accepted P0 findings.bebc1bd9bae7d31a18735dfb8f6b37b7054a4bf0ada9f71ca1ed21f00ebaf59b. Packaging restored the original source files. This measures the packing stage, not whole-release duration.0965053fe6b9341776df147a6934b7485c60b5caand tooling8fc5024659a9915406aed0d5d0ad2f368c8557e4. Plugin npm packed and verified 88/88 packages in 7m52s. ClawHub packed 88/88 but only 55 downstream validations passed; 33 failed installing its CLI. The pair ran concurrently in 8m55s, not an all-green end-to-end result. Codex was excluded because the frozen dependency pin failed the current freshness gate; the initial 89-package attempts correctly failed.check:changed, Actionlint, and Zizmor passed. The test correction also passedcheck:changedunder pinned pnpm 12.1.0. Codex Autoreview found no accepted P0 findings in either the implementation or the test correction. The fresh frozen-workflow core preflight succeeded in 1h 00m 21s total, with 53m 39s on the runner and 6m 41s before runner start. Source checks took 14m53s, test types 4m15s, architecture 2m09s, initial build 6m20s, and prepared packing 7m00s including a second build. Publication jobs were skipped. This is a baseline, not an end-to-end result for the patch.Follow-up work identified by the dry run: reuse a verified ClawHub CLI runtime above the package matrix instead of installing it per package. One failed job could not download the pinned Carapace GitHub tarball; the exact underlying errors for the other 32 have not been inspected. The six-machine probe now confirms smaller guest allocations independently of OpenClaw, and the runner promotions compensate for that observed capacity. The underlying provider mapping remains unresolved. A full release preflight has not yet been timed with the combined changes. The CI SDK-diff report also installs dependencies before skipping non-dispatch work; moving that decision before setup is a separate follow-up. The existing plugin-boundary compile budget is an explicit 16-worker override and remains unchanged; its throughput and memory use should be measured separately from runner labels.
Production/tooling delta: +62 lines; tests and test support: +494; documentation and skills: +46. The runner-capacity change itself removes six net tooling lines and adds five net test lines. The added orchestration separates starting/approving core from collecting it after later failures, while removing the old serial core/bootstrap path.
CI follow-up: the initial protocol declaration error (TS7056) came from the unchanged base and was fixed upstream by merged #135360. A fresh CI run was triggered after that merge and after the test correction was pushed. The initial four packaging assertion failures were reproduced under pinned pnpm 12.1.0 with
CI=trueand repaired by capturing the real hook results before pnpm reporting; all 26 tests in that file now pass. The exact failure-reason, package-content, build-selection and source-restoration checks remain intact.Landing validation: both new process-routing cases failed before the owner-list repair. Afterward, all four real Gateway/CLI cases passed, and 11 focused routing, exclusion, and CI-planner checks passed. Those planner checks preserve exactly-once coverage, five process jobs, existing worker limits, and admission budgets. The final
check:changedtypecheck/lint/guard plan, formatting, and diff check also passed. Fresh whole-PR Codex Autoreview found no accepted P0 findings.The normal PR CI run also exposed an auth-login test type error introduced on its base. Main already contains the canonical fix in #135407; the final native CI run passed on a fresh merge-ref tree containing that fix. The successful earlier manual head run did not test that integrated tree and is not being used to disregard the native failure.
Release-owner decision: accept staged core npm publication. Core npm may finish before ClawHub authorization or its immutable receipt succeeds. If required ClawHub work later fails, the npm package remains published while the GitHub release stays draft and the failure plus registry evidence are retained for recovery. This is the intended partial-publication model. The final ClawSweeper review on the exact head found no introduced correctness or security defect; its Rank-up move is covered by this owner decision and the successful exact-head CI run.
A combined exact-head nonpublishing release run remains deferred because the parent publisher has no dry-run mode and dispatches publishing children. The tests execute its extracted shell phases with external effects modeled; the frozen runs and packing benchmark are not integrated exact-head publication evidence. The same-day capacity probe supports the temporary runner selection, with the documented reassessment trigger retained.
Final native CI for commit
28eeeba9d4390e3eade22a08e324eced51dd915b: run 33548665572 passed, including both formerly failing checks. The required openclaw/ci-gate is green.Landed as 6a883dd6660. Post-merge cleanup is complete; review and merge evidence were retained.