Skip to content

fix(ci): use nightly toolchain for branch coverage - #3382

Merged
oferchen merged 1 commit into
masterfrom
fix/coverage-nightly-toolchain
Apr 25, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/coverage-nightly-toolchain

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Coverage workflow uses cargo llvm-cov --branch which compiles with unstable -Z coverage-options=branch, requiring nightly.
  • The workflow installs nightly via rust-toolchain action, but rust-toolchain.toml pins 1.88.0 stable, which overrides the install when cargo-llvm-cov spawns rustc.
  • Setting RUSTUP_TOOLCHAIN=nightly at the env level forces nightly for cargo-llvm-cov invocations, fixing the failing Coverage workflow.

Why this is breaking

PRs #3377, #3378, #3381 (and others) all see Coverage / llvm-cov fail with:

error: the option `Z` is only accepted on the nightly compiler
help: consider switching to a nightly toolchain: `rustup default nightly`

Test plan

  • Coverage workflow on this PR completes successfully and reports line + branch coverage.
  • Existing fmt+clippy/nextest checks remain green.

The cargo-llvm-cov --branch flag uses unstable -Z coverage-options=branch
which only compiles on nightly. The workflow installs nightly via
rust-toolchain action, but rust-toolchain.toml pins 1.88.0 stable, which
overrides the install. Setting RUSTUP_TOOLCHAIN=nightly at the env level
forces nightly for cargo-llvm-cov invocations.
@github-actions github-actions Bot added the bug Something isn't working label Apr 25, 2026
@oferchen
oferchen merged commit 3e04e86 into master Apr 25, 2026
12 of 13 checks passed
@oferchen
oferchen deleted the fix/coverage-nightly-toolchain branch April 25, 2026 18:43
oferchen added a commit that referenced this pull request May 1, 2026
…ow (#3382)

The cargo-llvm-cov --branch flag uses unstable -Z coverage-options=branch
which only compiles on nightly. The workflow installs nightly via
rust-toolchain action, but rust-toolchain.toml pins 1.88.0 stable, which
overrides the install. Setting RUSTUP_TOOLCHAIN=nightly at the env level
forces nightly for cargo-llvm-cov invocations.
oferchen added a commit that referenced this pull request May 5, 2026
…ow (#3382)

The cargo-llvm-cov --branch flag uses unstable -Z coverage-options=branch
which only compiles on nightly. The workflow installs nightly via
rust-toolchain action, but rust-toolchain.toml pins 1.88.0 stable, which
overrides the install. Setting RUSTUP_TOOLCHAIN=nightly at the env level
forces nightly for cargo-llvm-cov invocations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant