Repository navigation
improve(release): shorten verification preparation - #135960
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 1:43 AM ET / 05:43 UTC. ClawSweeper reviewWhat this changesThe PR removes redundant non-alpha Docker preflight work, uses partial Git fetches for plugin manifest verification, and defers hosted Buildx cleanup to shorten release preparation. Merge readinessKeep open for maintainer review. No introduced correctness defect was found, but this member-authored, protected release-automation PR still has exact-head checks in progress and an upstream-action contract gap caused by reviewer DNS failure. Priority: P3 Review scores
Verification
How this fits togetherFull Release Validation prepares sealed npm and Docker artifacts before release publication. The changed workflows select required evidence gates, build Docker images, and verify plugin package manifests before the release decision consumes those results. flowchart LR
A[Release target] --> B[Full release validation]
B --> C[Docker preparation]
B --> D[Plugin manifest verification]
C --> E[Sealed Docker evidence]
D --> F[Qualified package evidence]
E --> G[Release decision]
F --> G[Release decision]
Decision needed
Why: The change modifies release qualification behavior, and the missing external contract inspection is a maintainer-owned automation-risk decision rather than a contributor repair request. Before merge
Agent review detailsSecurityNone. PR surfaceTests +68, Docs +10, Config +15, Other +1. Total +94 across 12 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the alpha-only standalone gate and non-alpha sealed Docker-preparation path, then land only after exact-head CI is green and the release owner accepts the remaining upstream-contract verification gap. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR optimizes internal release automation rather than fixing a reported user-facing bug. The relevant production workflow path is source-traceable and has captured nonpublishing run evidence. Is this the best way to solve the issue? Yes, with the stated validation gate. Keeping alpha's standalone preflight while using non-alpha's already mandatory sealed Docker preparation avoids duplicated work without removing the final preparation requirement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5170c246b98f. LabelsLabel changes:
Label 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 (1 earlier review cycle)
|
|
Merged via squash.
|
* perf(release): remove redundant verification work * test(release): verify Git deadlines per operation
Related: #135877
What Problem This Solves
Full Release Validation repeats a Docker runtime-assets build that its required release-image preparation already performs. Plugin npm verification also transfers whole source snapshots to read a single manifest, and completed Docker jobs wait for a large local builder volume to be removed before sealing can start.
Why This Change Was Made
Use the existing preparation owners to eliminate repeated work. Non-alpha releases rely on their required, sealed Docker preparation, which exercises runtime-assets on both native architectures with the same source SHA and plugin selection. Alpha retains the standalone blocking preflight, and restored execution plans retain their original sealed gate facts.
Plugin verification checks out only trusted scripts and workflow policy. Both verifier and publisher fetch the exact source commit without unrelated blobs, then hydrate the independently verified manifest through the existing approved Git owner. The publisher keeps its full tooling checkout. Both potentially networked manifest reads have the existing 120-second operation bound.
Official GitHub-hosted Docker jobs leave local builder teardown to VM disposal using the pinned setup-buildx action's existing cleanup input. Image smoke checks, OCI digests, SBOM/provenance, uploads, sealing, source hashes, and publication gates remain required.
User Impact
Release maintainers perform less redundant preparation and spend less time transferring source data. This changes internal release tooling; installed OpenClaw behavior is unchanged. It removes one standalone Docker build per fresh non-alpha full validation.
Evidence
A paired hosted Plugin NPM preflight used
@openclaw/[email protected]from source0965053fe6b9341776df147a6934b7485c60b5ca. Both the baseline and merged candidate passed:The verifier saved 27 seconds (49%), but the whole preflight was 20 seconds slower in this pair. The unchanged packaging job's source checkout increased from 31 to 41 seconds and its already-sparse tooling checkout from 3 to 33 seconds, accounting for 40 of its 43 extra seconds. Raw logs place the increase in Git fetch waits: 27.24 to 38.07 seconds for source, and 0.90 to 29.74 seconds for tooling. No retry or error was logged; the logs do not distinguish server from network delay. These measurements identify the verifier improvement and the remaining checkout cost; they do not establish a full-release wall-time speedup.
Baseline tooling was
f1169f65b70f140d892f56f858d7d06c05cc6738; candidate tooling was merged commit739a3355c7b1ab902d15eb343412a0d868474d46. Both verified the same source-manifest hash shown below and tarball SHA-256312220563a2b6227525ab5f777b26e15c53be8e1a5f7463a00970e3ae5bb5ee7through thenpm-readbackroute. Both usedpreflight_only=trueandtrusted_publisher_preflight=false; approval, OIDC exchange, publication, and post-publication jobs were skipped.A real local Git benchmark used separate fresh checkouts, identical immutable tooling/source refs, the actual extracted workflow steps, and the pinned approved Git owner:
All reads returned identical 780-byte manifests with SHA-256
3359a601a22ddeacb6e246c63806c7b62bf152f224725763ef735b719966a3da. Trace2 confirmed on-demand fetching of the initially absent manifest blob. The publisher probe confirmed conversion of a full checkout to a promisor remote. A missing-blob failure returned exit 128 after 7.994s and wrote no source evidence. Sparse tooling imports and workflow-policy reads passed.These are local Git transport measurements, excluding Actions startup; they are not an end-to-end release duration claim. Tooling was frozen at
228ccdf6fd08a1e3e5c6612bd2ff9bd22c8c4eea, source at0965053fe6b9341776df147a6934b7485c60b5ca, and the manifest wasextensions/meta/package.json.The nonpublishing candidate Docker preparation passed all four native default/browser image builds, OCI validation, smoke, SBOM/provenance, uploads, and sealing. Against the previous run:
Both runs use source
3b60e6bff745946f25841642de2af8507b25b552, tagv2026.8.1, the same plugin selection, BuildKit/Buildx versions, OCI output, and cache policy. Candidate tooling is5520fdca68d98f6dae5c7711fc1c2f26800618b6; normal provenance timestamps differ. This is one comparison, including scheduling/network variation; parallel architecture savings are not additive. The sealed manifest SHA-256 is691dfeb976e0abf58719a9eab0464de9407e271ad48fd940aa28e96b002cd319.Removing the parallel runtime-assets job reduces duplicate runner work; no fixed wall-time saving is claimed for that deletion.
Validation completed locally:
pnpm check:workflows, formatting, andgit diff --checkpassed.The Docker workflow is unchanged by the later test-only commit
128ad730313b02b58fb46a1565e544c48749df89; the final-head CI run passed after the guard repair. The plugin workflow accepts trusted main/release tooling identities, so the hosted candidate ran successfully from the exact merged main commit after landing, with publication explicitly disabled. Its workflow bytes match the reviewed PR head.ClawSweeper follow-up: final-head CI is green, completing the remaining rank-up move. Native Docker proof and the sealed manifest are linked above. The lead directly inspected the pinned setup-buildx cleanup implementation and Git's partial-clone contract, resolving the reviewer's DNS-limited inspection gap. Git documents on-demand fetching of omitted objects; the real source-read probes above verify this behavior through the pinned Git owner, including failure without source evidence.
Production delta: +16 lines (existing workflow options, invariant comments, alpha predicate); tests: +68; docs: +10. No new helper or configuration surface.