Skip to content

fix(ci): pre-install pinned Rust toolchain in publish workflow - #430

Merged
haseebrabbani merged 1 commit into
mainfrom
fix-publish-rustup-race
Aug 24, 2026
Merged

fix(ci): pre-install pinned Rust toolchain in publish workflow#430
haseebrabbani merged 1 commit into
mainfrom
fix-publish-rustup-race

Conversation

@haseebrabbani

Copy link
Copy Markdown
Collaborator

The package build/test scripts spawn cargo run from parallel vitest workers. On a fresh runner the pinned toolchain (1.96.1) is not installed yet, so each concurrent cargo invocation triggers its own rustup install; rustup is not concurrency-safe and the installs corrupt each other ("detected conflict: 'bin/cargo'"), failing the publish deterministically.

Install the rust-toolchain.toml pin serially before the build loop.

Seen as errors here:

The package build/test scripts spawn `cargo run` from parallel vitest
workers. On a fresh runner the pinned toolchain (1.96.1) is not installed
yet, so each concurrent cargo invocation triggers its own rustup install;
rustup is not concurrency-safe and the installs corrupt each other
("detected conflict: 'bin/cargo'"), failing the publish deterministically.

Install the rust-toolchain.toml pin serially before the build loop.
@haseebrabbani
haseebrabbani requested a review from zeljkoX as a code owner August 24, 2026 17:44
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ada8b75b-ef9d-475c-ae4f-ee18fd5319c7


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@haseebrabbani
haseebrabbani merged commit 1d78e0e into main Aug 24, 2026
26 checks passed
@haseebrabbani
haseebrabbani deleted the fix-publish-rustup-race branch August 24, 2026 17:50
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants