CI: change-aware scope for check, coverage and live-e2e (PLAT-986) #344
Loading…
Reference in a new issue
No description provided.
Delete branch "ci-opt/plat-986-change-scope"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PLAT-986, change-aware CI, fj (first of the Rust batch with regent and rs-matter). A pull request that changes only docs or project notes no longer runs the Rust steps; the required
ci / checkkeeps its name and still reports.What counts as content.
docs/**,CHANGELOG.md,CONTRIBUTING.md,SECURITY.md,CLAUDE.md(.forgejo/ci-scope.patterns). The rootREADME.mdis not content: the content-unread guard found that tests insrc/cli/mod.rsread it (the global-flags paragraph and the install snippets must match the code). Everything else, mixed changes, unknown paths, pushes, tags and a failed or missing classification run what runs today.Classifier and guard.
scripts/ci-scope.shandscripts/ci-content-unread.share the canonical copies from fleetci/change-scope(fleet#1134, #1135;check-vendored.shreports no drift), with the generic classifier test. The guard fails when any non-content file names a content file;.forgejo/ci-scope.mentionsrecords the 50 reviewed mentions, each bound by checksum to the mention itself, with a reason: document links and template text, user-facing hint text insrc/client/capability.rsandproxy.rs, fixture strings, the tag-timerelease.yml(it copies README and CHANGELOG, and is not a pull request check),Cargo.toml'sreadmekey (read bycargo packageat release), the localscripts/preflight.shpathspec exclusions, and the classifier's own files.scripts/ci-scope-fj.test.shcovers this repo's rules and fails if a step after the classifier loses its gate. All three run first incheck.Wiring in
ci.yml. The nine Rust steps after the classifier (setup, cache, fmt, clippy, test, audit install and run, release build, smoke) carry!= 'content', so an empty or failed classification runs them.coverageandlive-e2e(bothneeds: check, neither required) skip on the same output at job level.Time to green.
ci.ymlover the last 14 days (n=19): run p50 26.9 min, p90 50.0; queue wait p50 0.0, p90 13.9; run plus queue p50 27.9, p90 59.6. A docs-only PR paid all of it, includingcoverageandlive-e2e..forgejo/**and runs full by design. Expectation for a content-only PR: container start, checkout, the three self-tests and the classifier, about a minute or two, and no coverage or live-e2e. The first real content-only run goes into this body after merge.Self-review: no findings.
Automated Codex review (read-only) of head
62459e09ae.No actionable findings.
BLOCKING: 0
Reviewed head
62459e09aeat 2026-12-02T11:55:17Z by codex exec (read-only sandbox).