CI: change-aware scope for the check job (PLAT-986) #3

Merged
stephen merged 1 commit from ci-opt/plat-986-change-scope into hearth 2026-12-02 15:24:29 +00:00
Owner

PLAT-986, change-aware CI, rs-matter (Rust batch 3 of 3). A pull request into hearth that changes only docs or project notes skips the Rust steps of Rasterstate CI / check. This fork has no required checks.

What counts as content. docs/**, CHANGELOG.md, CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md and FORK.md (.forgejo/ci-scope.patterns). Not content: the root README and the crate READMEs (a crate can include its README as its docs), all Rust, Cargo files, tests/ and the upstream .github/ workflows. Pushes to hearth, mixed changes, unknown paths and a failed or missing classification run what runs today.

Classifier and guard. scripts/ci-scope.sh and scripts/ci-content-unread.sh are the canonical copies from fleet ci/change-scope (fleet#1134, #1135; check-vendored.sh reports no drift), with the generic test. The guard flagged only comments: five license headers (onboard.rs, attest/verify.rs, cert/x509/cert.rs, transport.rs, transport/exchange.rs) saying "See FORK.md at the repository root", plus the classifier test's own list of paths. They are in .forgejo/ci-scope.mentions, each bound by checksum to the mention itself. scripts/ci-scope-rs-matter.test.sh covers this repo's rules and fails if a step after the classifier loses its gate. All run first in check.

Wiring. The setup, format, clippy and test steps carry != 'content'. The IPv6 diagnostic step stays ungated (it runs before checkout and costs seconds). The job's own github.repository_owner condition is unchanged.

Time to green.

  • Before: the runs endpoint returned one successful PR run in the last 14 days, so there is no distribution: run 12.5 min after a 14.2 min queue wait for the self-hosted, Linux pool.
  • After: not measured. This PR changes .forgejo/** and runs full by design. Expectation for a content-only PR: a minute of self-tests and classification, still behind the same queue. The first real content-only run goes into this body after merge.

Self-review: no blocking findings. One low is the documented limit of the guard (a deleted content file that code still names).

PLAT-986, change-aware CI, rs-matter (Rust batch 3 of 3). A pull request into `hearth` that changes only docs or project notes skips the Rust steps of `Rasterstate CI / check`. This fork has no required checks. **What counts as content.** `docs/**`, `CHANGELOG.md`, `CONTRIBUTING.md`, `SECURITY.md`, `CODE_OF_CONDUCT.md` and `FORK.md` (`.forgejo/ci-scope.patterns`). Not content: the root README and the crate READMEs (a crate can include its README as its docs), all Rust, Cargo files, `tests/` and the upstream `.github/` workflows. Pushes to `hearth`, mixed changes, unknown paths and a failed or missing classification run what runs today. **Classifier and guard.** `scripts/ci-scope.sh` and `scripts/ci-content-unread.sh` are the canonical copies from fleet `ci/change-scope` (fleet#1134, #1135; `check-vendored.sh` reports no drift), with the generic test. The guard flagged only comments: five license headers (`onboard.rs`, `attest/verify.rs`, `cert/x509/cert.rs`, `transport.rs`, `transport/exchange.rs`) saying "See FORK.md at the repository root", plus the classifier test's own list of paths. They are in `.forgejo/ci-scope.mentions`, each bound by checksum to the mention itself. `scripts/ci-scope-rs-matter.test.sh` covers this repo's rules and fails if a step after the classifier loses its gate. All run first in `check`. **Wiring.** The setup, format, clippy and test steps carry `!= 'content'`. The IPv6 diagnostic step stays ungated (it runs before checkout and costs seconds). The job's own `github.repository_owner` condition is unchanged. **Time to green.** - Before: the runs endpoint returned one successful PR run in the last 14 days, so there is no distribution: run 12.5 min after a 14.2 min queue wait for the `self-hosted, Linux` pool. - After: not measured. This PR changes `.forgejo/**` and runs full by design. Expectation for a content-only PR: a minute of self-tests and classification, still behind the same queue. The first real content-only run goes into this body after merge. Self-review: no blocking findings. One low is the documented limit of the guard (a deleted content file that code still names).
CI: change-aware scope for the check job (PLAT-986)
All checks were successful
Rasterstate CI / check (pull_request) Successful in 15m37s
9430da7d4c
A pull request that changes only docs/** or the root project notes (CHANGELOG, CONTRIBUTING,
SECURITY, CODE_OF_CONDUCT, FORK) skips the Rust steps of check. The root and crate READMEs are not
content. Pushes to hearth, mixed or unknown paths and a failed or missing classification run as
before. scripts/ci-scope.sh and scripts/ci-content-unread.sh are the canonical copies from fleet
ci/change-scope; the five FORK.md mentions are license-header comments.
stephen merged commit 26b9086a86 into hearth 2026-12-02 15:24:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rasterstate/rs-matter!3
No description provided.