Skip to content

improve(release): make preparation atomic and bounded - #104000

Merged
vincentkoc merged 20 commits into
mainfrom
refactor/release-pipeline-v2
Jul 11, 2026
Merged

vincentkoc merged 20 commits into
mainfrom
refactor/release-pipeline-v2

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

Related: #103935
Supports: #103898

What Problem This Solves

Resolves a release-operator problem where changelog verification, version alignment, plugin metadata, and npm shrinkwrap preparation could take hours of serial or manual work and could leave stale generated metadata in linked worktrees.

Why This Change Was Made

Adds one atomic preparation controller with shadow, check, and write modes; parallelizes independent preflight and shrinkwrap work; caches bounded changelog GitHub discovery; runs metadata generators directly in linked worktrees; and expands shrinkwrap ownership to tracked private packages. This complements #103935: this PR prepares a deterministic candidate, while #103935 binds publication to approved package bytes.

User Impact

Release operators get a repeatable metadata preparation path that completed in 69.19 seconds for the tested 2026.6.11 candidate, emits a git-local manifest, and fails closed on stale version, changelog, Android, plugin, or shrinkwrap metadata. Runtime behavior is unchanged.

Evidence

  • Exact preparation at head b65f4dbf904: node --import tsx scripts/release-prepare.ts --write --version 2026.6.11 --json
    • completed the generated-metadata step in 69.19 seconds
    • processed 76 shrinkwraps
    • produced zero tracked diff
  • Focused release tests: 67 passed
  • PR wrapper test: 6 passed, including explicit merge and rebase support
  • Lint suppression policy tests: 3 passed
  • git diff --check: clean
  • Repo-native prepare-run: passed at exact head
  • Full exact-head CI run 29133026510: passed
  • Autoreview finding fixed: plugin-only prep now refreshes and checks shrinkwraps
  • Fresh branch autoreview: clean, no accepted or actionable findings

This change was prepared with AI-assisted implementation and review. No agent transcript is attached because it was not approved for public inclusion.

@vincentkoc vincentkoc self-assigned this Jul 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts extensions: vault Extension: vault size: XL maintainer Maintainer-authored PR labels Jul 11, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 11, 2026 00:21
@vincentkoc
vincentkoc requested a review from a team as a code owner July 11, 2026 00:21
@vincentkoc

vincentkoc commented Jul 11, 2026 •

Copy link
Copy Markdown
Member Author

Land-ready proof for exact head b65f4dbf90408470fc10bce90386eab05e172d66:

  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 104000 passed with hosted exact-head gates.
  • node --import tsx scripts/release-prepare.ts --write --version 2026.6.11 --json passed; generated metadata completed in 69.19 seconds, all 76 shrinkwraps were current, and the worktree remained clean.
  • Full exact-head CI run 29133026510 passed.
  • Focused release tests: 67 passed.
  • PR wrapper tests: 6 passed.
  • Lint suppression policy tests: 3 passed.
  • bash -n scripts/pr scripts/pr-lib/merge.sh passed.
  • git diff --check passed.
  • Fresh branch autoreview completed with no accepted or actionable findings.
  • The autoreview findings were fixed: plugin-only preparation now keeps shrinkwraps aligned, and correction tags keep repository versions at the base version.

Landing will use OPENCLAW_PR_MERGE_METHOD=rebase to preserve the full 20-commit series without squashing. Known proof gaps: none.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/vault/npm-shrinkwrap.json
  • extensions/vault/package.json

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: b65f4dbf90408470fc10bce90386eab05e172d66
  • Trusted actor: @vincentkoc
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head bc346aa12aa1f5a3e824f9ee174a138d2035262f, but the PR head is now b65f4dbf90408470fc10bce90386eab05e172d66. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

@vincentkoc
vincentkoc merged commit 1a9d09a into main Jul 11, 2026
89 checks passed
@vincentkoc
vincentkoc deleted the refactor/release-pipeline-v2 branch July 11, 2026 00:47
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files extensions: vault Extension: vault maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant