Repository navigation
ci: skip rust jobs on doc-only PRs and accept skips in alls-green - #479
Conversation
Doc-only PRs (e.g. #477) had `CI success` failing because re-actors/alls-green treats `skipped` as failure unless explicitly listed in `allowed-skips`. The `test` job was already gated by the `changes` paths-filter but the aggregator wasn't told to accept the skip; the workflow comment claimed otherwise, which was misleading. Apply the same gate to the other Rust-only jobs (fmt, clippy, deny, doc, msrv) so doc-only PRs no longer burn CI minutes on no-op runs, add `allowed-skips` for the gated set, and correct the comment. `changes` and `markdownlint` always run, so they're intentionally omitted from `allowed-skips` — a skip from either still fails the gate. Closes #478 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Coverage reportTotal: 85.88% (was 85.88%, ● 0.00%) — 9152/10657 lines No Rust files changed in this PR. History
|
There was a problem hiding this comment.
Pull request overview
Updates the main CI workflow to skip Rust-heavy jobs on doc-only pull requests (based on the existing changes paths filter) and configures the CI success meta-check to accept those legitimate skips.
Changes:
- Gate
fmt,clippy,deny,doc, andmsrvbehindneeds: changes+ a rust-changeifcondition (matching the existingtestpattern). - Configure
re-actors/alls-greenwithallowed-skipsso theCI successaggregator doesn’t fail when gated jobs are skipped. - Fix/update the
testjob comment to reflect thatallowed-skipsis what makes skips acceptable.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replace `github.event_name == 'push'` with `github.event_name != 'pull_request'` on every Rust-job gate (fmt, clippy, deny, doc, msrv, test). The workflow also triggers on `workflow_dispatch`, where `dorny/paths-filter` can't reliably compute a diff and reports `rust: false`; the prior `push`-only escape hatch silently skipped Rust jobs on manual runs, making "Run workflow" green without actually validating Rust. The new gate forces full Rust validation on any non-PR event. Also brings the pre-existing `test` gate (introduced in #476) onto the same condition for consistency — its workflow_dispatch hole was inherited rather than introduced by this PR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The `rust` filter is the gate for every Rust-only job (fmt, clippy, deny, doc, msrv, test) and `allowed-skips` accepts those skips on the ci-success aggregator. With `rustfmt.toml`, `deny.toml`, and `.cargo/config.toml` outside the filter, a PR editing only one of those files would skip the very job that consumes it (most acutely: a `deny.toml` advisory-ignore change merging without `cargo deny` running). Add them all so the gate matches the toolchain's actual input set. `.cargo/**` is intentionally a glob so future per-target overrides under that dir are caught automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Multi-agent review pass on this branch surfaced one real silent-failure path that I've fixed in 15137cf, and a few suggestions I'm declining with reasoning. Acted on
Declined
|
Summary
needs: changes+if: needs.changes.outputs.rust == 'true' || github.event_name == 'push'tofmt,clippy,deny,doc,msrvso they skip on doc-only PRs (matching the existing pattern ontest).allowed-skips: fmt, clippy, test, deny, doc, msrvonre-actors/alls-greenso theCI successaggregator accepts the legitimate skips instead of failing the meta-check.testthat claimed alls-green treats skipped jobs as success by default.changesandmarkdownlintare intentionally not inallowed-skips— they always run, so a skip from either should fail the gate.Closes #478.
Test plan
.github/workflows/ci.ymlchanges);ci.ymlis in therustpaths-filter, so all Rust jobs should run on this PR andCI successshould be green.adr/**.md) and confirm:fmt,clippy,deny,doc,msrv,testare allSkipped;markdownlint,changes,coverage tooling tests,Semantic PR titlerun and pass;CI successis green and mergeable without admin override..rs) and confirm all Rust jobs run.🤖 Generated with Claude Code