Repository navigation
ci: generalise composite action and use it from test matrix - #2486
Merged
Merged
Conversation
The composite action installed cargo-affected and llvm-tools that the regular test matrix doesn't need. Lift the always-shared subset (cargo-insta, cargo-nextest, rust-cache, OS-conditional shells, nushell) into `test-setup`, and have the affected-* jobs add cargo-affected and llvm-tools inline. Test matrix replaces ~50 lines of inline setup with one `uses:`. Pinned tool versions now serve all four callers from a single place. Drop the Windows informational echo step (was a no-op comment). Co-Authored-By: Claude <[email protected]>
worktrunk-bot
approved these changes
Apr 30, 2026
`cargo affected run` only queries the DB and runs nextest with an `-E` filter — coverage extraction (and the llvm-cov / llvm-profdata it needs) only happens during `collect`. Co-Authored-By: Claude <[email protected]>
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.
Summary
Follow-up to #2483. The composite action installed
cargo-affectedandllvm-tools, which the regulartest (linux/macos/windows)matrix doesn't need. Lift only the always-shared subset (cargo-insta, cargo-nextest, rust-cache, OS-conditional shells, nushell) intotest-setup, and have the affected-* jobs addcargo-affected+llvm-toolsinline.The test matrix now uses the action too: ~50 lines of inline setup collapse to one
uses:line. Pinned tool versions (cargo-insta, cargo-nextest, nushell) serve all four callers from one place.OS branching that was already inline in test-matrix moves into the action — same
runner.osconditionals, just relocated.Drops the Windows-only informational
echo "Using Git Bash for Windows tests"step (was a no-op).Test plan
pre-commit runpasses on changed filestest (linux/macos/windows)still install the same toolchainaffected tests (linux, advisory)still installs cargo-affected + llvm-toolscollect affected coverage(gated to push-to-main) still works🤖 Generated with Claude Code