Skip to content

Skip CI when a change can't affect the cargo build - #285

Merged
foodandtravel merged 1 commit into
developmentfrom
ci/skip-non-rust-changes
Oct 29, 2026
Merged

foodandtravel merged 1 commit into
developmentfrom
ci/skip-non-rust-changes

Conversation

@foodandtravel

Copy link
Copy Markdown
Contributor

#284 only renames workflows and fixes a shell step, but it still ran all nine CI jobs: fmt, clippy on four targets and tests on four targets. Four of those are on macOS runners, which GitHub bills at 10x the Linux rate, and the Windows ones at 2x.

CI now has a paths filter, shared between push and pull_request through a YAML anchor. It starts from ** and drops the parts of the repo that can't change what cargo builds: Markdown, docs/, examples/, the npm/PyPI/NuGet wrappers, packaging/, .agents/ and the other workflows. Two paths come back in. packaging/windows/ stays because the Windows test job runs check-static-crt.ps1 from there, and ci.yml stays so a change to CI still runs CI. A PR that mixes ignored and Rust files still runs everything.

No branch has required status checks right now, so a skipped CI can't leave a PR stuck waiting. If CI becomes a required check later, this needs a small always-run gate job, since GitHub treats a workflow skipped by a path filter as pending.

This PR changes ci.yml itself, so CI runs on it. #284 would skip under the new filter. The assurance "Build image" job would still run there, since #284 touches release-assurance-image.yml and that workflow has its own path filter.

A PR that only touched workflow names (#284) ran all nine CI jobs, four
of them on macOS runners. CI now filters on paths: docs, Markdown,
examples, the npm/PyPI/NuGet wrappers, packaging/ and the other
workflows no longer trigger it. packaging/windows/ stays in because the
Windows test job runs check-static-crt.ps1 from there, and ci.yml stays
in so changes to CI itself still run it.

No branch has required status checks, so a skipped CI can't block a
merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@foodandtravel foodandtravel self-assigned this Oct 29, 2026
@sigit-code-review

Copy link
Copy Markdown

siGit Code Review couldn't finish this review: the model service was unavailable. Mention @sigit-code-review to try again.


Automated review by siGit Code Review · commit f74dfa3 · see the review dashboard

@foodandtravel
foodandtravel merged commit 1b7242f into development Oct 29, 2026
9 checks passed
@foodandtravel
foodandtravel deleted the ci/skip-non-rust-changes branch October 29, 2026 21:40
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.

3 participants