Skip to content

improve(release): shorten verification preparation - #135960

Merged
steipete merged 2 commits into
mainfrom
codex/release-preparation-speed
Sep 2, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/release-preparation-speed

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

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 source 0965053fe6b9341776df147a6934b7485c60b5ca. Both the baseline and merged candidate passed:

Hosted plugin measurement Before After
Verifier tooling checkout 8s 4s
Verifier source-manifest read 23s 1s
Whole verifier job 55s 28s
Planning job 2m6s 2m9s
Packaging job 1m6s 1m49s
Whole selected-plugin preflight 4m17s 4m37s

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 commit 739a3355c7b1ab902d15eb343412a0d868474d46. Both verified the same source-manifest hash shown below and tarball SHA-256 312220563a2b6227525ab5f777b26e15c53be8e1a5f7463a00970e3ae5bb5ee7 through the npm-readback route. Both used preflight_only=true and trusted_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:

Operation Before After
Verifier tooling checkout 40.570s 4.005s
Verifier source-manifest read 26.840s 2.991s
Verifier combined 67.410s 6.996s
Publisher source-manifest read 27.345s 2.056s

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 at 0965053fe6b9341776df147a6934b7485c60b5ca, and the manifest was extensions/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:

Hosted Docker measurement Before After
amd64 Buildx cleanup 21s 1s
arm64 Buildx cleanup 16s 1s
Whole preparation 10m29s 10m11s

Both runs use source 3b60e6bff745946f25841642de2af8507b25b552, tag v2026.8.1, the same plugin selection, BuildKit/Buildx versions, OCI output, and cache policy. Candidate tooling is 5520fdca68d98f6dae5c7711fc1c2f26800618b6; normal provenance timestamps differ. This is one comparison, including scheduling/network variation; parallel architecture savings are not additive. The sealed manifest SHA-256 is 691dfeb976e0abf58719a9eab0464de9407e271ad48fd940aa28e96b002cd319.

Removing the parallel runtime-assets job reduces duplicate runner work; no fixed wall-time saving is claimed for that deletion.

Validation completed locally:

  • 428 focused release, publication-gate, Docker artifact, and Git-owner tests passed. Coverage includes failed alpha gates, all supported non-alpha release families, missing/failed Docker preparation and manifest digests, and restoration of historical required-gate success/failure.
  • A pre-change policy probe reproduced redundant non-alpha gate selection.
  • pnpm check:workflows, formatting, and git diff --check passed.
  • Independent Codex autoreview: no accepted actionable findings.
  • CI exposed two brittle workflow-text assertions (a comment treated as a Git command and a global deadline count). The canonical guard now checks each network operation; duplicate Git assertions were removed. Both failures reproduced first; all 255 runnable tests across those two files passed, with two platform skips. One local PATH omission was corrected and its affected case passed on rerun.

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.

@steipete steipete self-assigned this Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review September 2, 2026 05:19
@steipete
steipete requested a review from a team as a code owner September 2, 2026 05:19
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 1:43 AM ET / 05:43 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 4 items remain

Keep 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
Reviewed head: 128ad730313b02b58fb46a1565e544c48749df89
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent owner-boundary coverage and no concrete defect found; exact-head hosted checks remain the material merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored internal automation PR is exempt from the external-contributor proof gate. Its captured body nevertheless reports a nonpublishing native Docker-preparation run, and the later exact head changes only workflow-guard tests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored internal automation PR is exempt from the external-contributor proof gate. Its captured body nevertheless reports a nonpublishing native Docker-preparation run, and the later exact head changes only workflow-guard tests.
Evidence reviewed 6 items Non-alpha gate replacement: The introduced alpha-only predicate retains the standalone runtime-assets job for alpha targets, while the same workflow invokes mandatory Docker preparation for non-alpha targets and rejects missing preparation evidence in its summary gate.
Runtime-assets ownership: The production Docker image copies its runtime contents from the runtime-assets stage, so the non-alpha preparation build necessarily evaluates that stage before image smoke, upload, and sealing.
Release-gate coverage: The added table-driven policy test covers alpha, stable, beta, correction, reuse, and focused rerun cases; the package-acceptance test separately rejects non-alpha Docker preparation failures or missing manifest digests.
Findings None None.
Security None None.

How this fits together

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

Decision needed

Question Recommendation
After exact-head CI completes, should this protected release-workflow optimization proceed using the captured production run despite the reviewer being unable to re-inspect the pinned upstream action and Git partial-clone contracts? Complete exact-head validation: Wait for the current head's CI to finish green, then accept the existing unchanged-production-workflow evidence as the pre-merge proof.

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

  • Resolve merge risk (P1) - A non-alpha run will no longer execute its standalone runtime-assets job; source shows mandatory two-architecture preparation covers the stage, but the reviewer could not independently inspect the pinned Buildx action and Git partial-clone contracts because DNS was unavailable.
  • Resolve merge risk (P1) - Exact-head CI is still in progress, so the revised workflow guards have not yet completed their hosted validation.
  • Complete next step (P2) - No mechanical repair is indicated; exact-head CI and release-owner acceptance of the automation risk remain before merge.
Agent review details

Security

None.

PR surface

Tests +68, Docs +10, Config +15, Other +1. Total +94 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 183 115 +68
Docs 2 16 6 +10
Config 3 16 1 +15
Generated 0 0 0 0
Other 1 2 1 +1
Total 12 217 123 +94

Review metrics

Metric Value Why it matters
Implementation delta release automation +18/-2; tests +183/-115; docs +16/-6 The positive production change is limited to action configuration, an alpha gate predicate, and partial-fetch bounds; most churn is focused gate coverage.

Merge-risk options

Maintainer options:

  1. Finish exact-head CI (recommended)
    Merge only after the current workflow and guard suite complete successfully on the exact head SHA.
  2. Pause for contract confirmation
    Keep the PR open until a release owner can directly confirm the external action and Git partial-clone semantics used by the optimization.

Technical review

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: This is a bounded internal release-preparation optimization with no asserted installed-product behavior change.
  • merge-risk: 🚨 automation: The PR changes which Docker verification job is required and alters Git transport behavior inside release workflows.
  • 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: This member-authored internal automation PR is exempt from the external-contributor proof gate. Its captured body nevertheless reports a nonpublishing native Docker-preparation run, and the later exact head changes only workflow-guard tests.

Evidence

What I checked:

  • Non-alpha gate replacement: The introduced alpha-only predicate retains the standalone runtime-assets job for alpha targets, while the same workflow invokes mandatory Docker preparation for non-alpha targets and rejects missing preparation evidence in its summary gate. (.github/workflows/full-release-validation.yml:756, 128ad730313b)
  • Runtime-assets ownership: The production Docker image copies its runtime contents from the runtime-assets stage, so the non-alpha preparation build necessarily evaluates that stage before image smoke, upload, and sealing. (Dockerfile:266, 5170c246b98f)
  • Release-gate coverage: The added table-driven policy test covers alpha, stable, beta, correction, reuse, and focused rerun cases; the package-acceptance test separately rejects non-alpha Docker preparation failures or missing manifest digests. (test/scripts/full-release-validation-state.test.ts:682, 128ad730313b)
  • Exact-head production surface: The later head commit changes only the two workflow-guard test files, so the captured nonpublishing Docker-preparation evidence remains for the unchanged production workflow surface. (test/scripts/ci-workflow-guards.test.ts:6938, 128ad730313b)
  • Git-owner boundary: Both new partial-fetch paths continue through the repository's isolated Git owner, whose git_output helper delegates to bounded run_git calls; the introduced paths provide an explicit 120-second timeout for fetch and manifest read. (.github/actions/git-owner/owner.py:222, 128ad730313b)
  • Upstream inspection limitation: The branch directly configures docker/setup-buildx-action and relies on Git partial-clone hydration. Direct action-source and Git-documentation reads were attempted but DNS could not resolve git-scm.com or api.github.com, so their external contract was not independently rechecked.

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let exact-head CI complete green before merge.

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-02T05:27:22.160Z sha 5520fdc :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 2, 2026
@steipete
steipete merged commit 739a335 into main Sep 2, 2026
207 checks passed
@steipete
steipete deleted the codex/release-preparation-speed branch September 2, 2026 05:55
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
* perf(release): remove redundant verification work

* test(release): verify Git deadlines per operation
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 maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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