fix(ci): set explicit toolchain for mutation-test job#999
Merged
Conversation
The dtolnay/rust-toolchain action derives its default toolchain from the pinned ref name (@stable), but this repo pins every action to a bare commit SHA for supply-chain safety. With no ref to parse, the toolchain input resolved to empty and the Install Rust toolchain step failed with "'toolchain' is a required input", aborting the scheduled mutation-testing run before cargo-mutants could execute. Add the explicit "toolchain: stable" input, matching every other rust-toolchain invocation in the workspace.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The scheduled Mutation testing workflow fails at the
Install Rust toolchainstep:Failing run: https://github.com/dekobon/big-code-analysis/actions/runs/28511806150
Root cause
dtolnay/rust-toolchaininfers its default toolchain from the ref name it is pinned to (@stable,@1.94, …). This repo pins every action to a bare commit SHA for supply-chain safety, so there is no ref for the action to parse — thetoolchaininput resolves to empty and the step aborts beforecargo-mutantscan run. (The follow-onupload-artifact"No files were found in target/mutants/" warning was just a downstream symptom.)mutation-test.ymlwas the only workflow missing the explicit input; all otherrust-toolchaininvocations acrossci.yml,release.yml,pages.yml, etc. already passtoolchain: stable(or a pinned version) for exactly this reason.Fix
Add the explicit
toolchain: stableinput, matching the sibling workflows. Validated withmake actionlint(clean).This workflow is
schedule/workflow_dispatchonly, so it is not exercised by PR CI — confirm via a manualworkflow_dispatchrun after merge.