Skip to content

fix(ci): set explicit toolchain for mutation-test job#999

Merged
dekobon merged 1 commit into
mainfrom
fix/mutation-test-toolchain-input
Jul 1, 2026
Merged

fix(ci): set explicit toolchain for mutation-test job#999
dekobon merged 1 commit into
mainfrom
fix/mutation-test-toolchain-input

Conversation

@dekobon

@dekobon dekobon commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Problem

The scheduled Mutation testing workflow fails at the Install Rust toolchain step:

'toolchain' is a required input
##[error]Process completed with exit code 1.

Failing run: https://github.com/dekobon/big-code-analysis/actions/runs/28511806150

Root cause

dtolnay/rust-toolchain infers 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 — the toolchain input resolves to empty and the step aborts before cargo-mutants can run. (The follow-on upload-artifact "No files were found in target/mutants/" warning was just a downstream symptom.)

mutation-test.yml was the only workflow missing the explicit input; all other rust-toolchain invocations across ci.yml, release.yml, pages.yml, etc. already pass toolchain: stable (or a pinned version) for exactly this reason.

Fix

Add the explicit toolchain: stable input, matching the sibling workflows. Validated with make actionlint (clean).

This workflow is schedule / workflow_dispatch only, so it is not exercised by PR CI — confirm via a manual workflow_dispatch run after merge.

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.
@dekobon dekobon merged commit c0adb04 into main Jul 1, 2026
34 checks passed
@dekobon dekobon deleted the fix/mutation-test-toolchain-input branch July 1, 2026 17:37
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.

1 participant