Repository navigation
fix(release): sync Rust product versions via the meta-updater - #12988
Conversation
The Rust CLI and pnpr embed the versions their release builds report and verify (`PNPM_VERSION` in pnpm/crates/config/src/defaults.rs, the crate version in pnpr/crates/pnpr/Cargo.toml, and its Cargo.lock entry). These were mirrored from the npm wrappers by `syncRustVersions` in bump.ts — a step separate from the meta-updater, so running `pnpm version -r` without the full bump flow bumped the wrappers (pacquet 12.0.0-alpha.10, pnpr 0.1.0-alpha.2) while the Rust sources stayed at the previous versions. The release workflow's "Verify the committed version" step then failed, and nothing caught the drift before the tag. Move the sync into the meta-updater as a set of Rust-source file handlers, so it is written by `pnpm update-manifests` and, crucially, validated by `meta-updater --test` in pre-push and CI — a missed sync now fails locally instead of at release time. bump.ts drops the redundant `syncRustVersions` and runs `pnpm update-manifests` after `pnpm version -r`; the root `bump` script no longer needs its own trailing `update-manifests`. Regenerating brings the Rust sources up to the already-bumped wrapper versions (alpha.10 / alpha.2), unblocking the release. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
zkochan has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe release flow now synchronizes npm wrapper versions into Rust sources, formats the updated Rust-related files, and moves manifest updating into the bump helper. Rust package and pnpm versions are advanced, while obsolete synchronization tests are removed. ChangesRelease version synchronization
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ReleaseScript
participant NpmManifests
participant MetaUpdater
participant RustSources
ReleaseScript->>NpmManifests: bump wrapper versions
ReleaseScript->>MetaUpdater: run manifest synchronization
MetaUpdater->>NpmManifests: read pnpm and pnpr versions
MetaUpdater->>RustSources: update Rust version literals
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed: lockfile failed supply-chain policy check. Run Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix release drift by syncing Rust product versions via meta-updater
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. Unsafe replace replacement string
|
PR Code Suggestions ✨Warning
Explore these optional code suggestions:
|
||||||||||||||
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12988 +/- ##
=======================================
Coverage 85.51% 85.51%
=======================================
Files 496 496
Lines 79399 79399
=======================================
+ Hits 67899 67900 +1
+ Misses 11500 11499 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
The v12 release jobs failed at Package pnpm (Rust) → Verify the committed version (failed run): the npm wrappers had been bumped (
pacquet→12.0.0-alpha.10,pnpr→0.1.0-alpha.2) but the Rust sources that embed and verify those versions were still at the previous ones.Root cause:
pnpm version -rbumps only the npm wrapper manifests. The Rust sources (PNPM_VERSIONinpnpm/crates/config/src/defaults.rs, the crate version inpnpr/crates/pnpr/Cargo.toml, and itsCargo.lockentry) were mirrored by a separatesyncRustVersionsstep inbump.ts. Runningpnpm version -rwithout the full bump flow bumped the wrappers but skipped that step, and nothing caught the drift until the release workflow's verify step failed.This moves the sync into the meta-updater, so it is:
pnpm update-manifests(via new Rust-source file handlers keyed on the three files), andmeta-updater --test, which runs in pre-push and CI — a missed sync now fails locally instead of at release time.bump.tsdrops the now-redundantsyncRustVersionsand runspnpm update-manifestsafterpnpm version -r; the rootbumpscript no longer needs its own trailingupdate-manifests.Regenerating brings the Rust sources up to the already-bumped wrapper versions (
alpha.10/alpha.2), which unblocks the release. I verifiedmeta-updater --testpasses when in sync and fails with a clear diff whenPNPM_VERSIONis deliberately mismatched.Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage.
Written by an agent (Claude Code, claude-opus-4-8).
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit
New Features
Bug Fixes
Chores
12.0.0-alpha.10.0.1.0-alpha.2.