Skip to content

ci(release): bump the Rust fuzz workspace's lockfile with the crates - #410

Merged
JasonXuDeveloper merged 1 commit into
JasonXuDeveloper:mainfrom
0z5a:fix_397
Nov 18, 2026
Merged

JasonXuDeveloper merged 1 commit into
JasonXuDeveloper:mainfrom
0z5a:fix_397

Conversation

@0z5a

@0z5a 0z5a commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Closes #397

I started from #397 and checked it against the code. runtimes/rust/fuzz is its own workspace, and its Cargo.lock pins the path dependency nino-serialization at 4.0.0-rc.7, the version it had when the fuzz workspace was added. .github/scripts/bump_version.py sets the version in runtimes/rust/Cargo.lock but not in this file, so it stayed at rc.7 through the rc.8, rc.9 and rc.10 releases.

This change:

  • bump_version.py also sets the nino-serialization version in runtimes/rust/fuzz/Cargo.lock, with the same sub() call as the main lockfile, so a release fails if the entry is missing. The path is printed with the others, so release.yml adds it to the release commit.
  • runtimes/rust/fuzz/Cargo.lock is brought up to rc.10. That is the one line cargo itself changes there (cargo metadata in the fuzz workspace without --locked).

How I found it

I compared the nino-serialization entries in the two lockfiles with runtimes/rust/Cargo.toml, then read bump_version.py and the "Commit and tag" step of release.yml to see which files a release writes.

Where this can show up in practice

Anyone who runs the Rust fuzzers from a checkout of main (cargo +nightly fuzz run, as runtimes/rust/README.md and fuzz/Cargo.toml describe) gets a modified Cargo.lock in their working tree, and a build with --locked in that workspace fails. This is my estimate beyond the report in #397.

Testing

  • On main, cargo metadata --locked in runtimes/rust/fuzz fails with cannot update the lock file ... because --locked was passed. With this change it passes, and cargo check --locked --bins there builds without touching the lockfile (Rust 1.96.0, macOS arm64).
  • On a copy of the tree, python3 .github/scripts/bump_version.py 4.0.0-rc.11 4.0.0-rc.11 exits 0, lists runtimes/rust/fuzz/Cargo.lock among the written files, and afterwards cargo metadata --locked passes in both runtimes/rust and runtimes/rust/fuzz.
  • Not run: cargo +nightly fuzz run, and the release workflow itself.

runtimes/rust/fuzz is its own workspace with its own Cargo.lock, which pins its path dependency on
nino-serialization. bump_version.py only set the version in runtimes/rust/Cargo.lock, so the fuzz lockfile
stayed at rc.7, where it was added, through the rc.8, rc.9 and rc.10
releases, and every fuzz build rewrote the tracked file. bump_version.py now sets
the version there too, and the lockfile is brought up to rc.10 (the one line cargo changes).

Closes JasonXuDeveloper#397
@JasonXuDeveloper

Copy link
Copy Markdown
Owner

Thanks for tracking this down and for the clear write-up! I checked it locally: running bump_version.py 4.0.0-rc.11 4.0.0-rc.11 on this branch writes runtimes/rust/fuzz/Cargo.lock, and cargo metadata --locked then passes in the fuzz workspace. Merging once CI is green.

@JasonXuDeveloper
JasonXuDeveloper merged commit b24ccc5 into JasonXuDeveloper:main Nov 18, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep the Rust fuzz lockfile in sync with releases

2 participants