CI: a failed change classifier runs the full suite, then fails (PLAT-986) #4

Merged
stephen merged 1 commit from ci-opt/plat-986-scope-fail-closed into hearth 2026-12-02 18:40:58 +00:00
Owner

PLAT-986 follow-up to #3. Before this PR, a failed change classifier left check red but skipped the Rust steps, so the full suite never ran. It now falls back to the full suite and still fails, the same fix as regent#399 and fj.

What changes in .forgejo/workflows/rasterstate-ci.yml.

  • Classifier step: Classify the change has continue-on-error: true.
  • Gated steps: each of the 4 runs unless the classifier succeeded and said content.
  • Final step: Fail when classification failed turns the job red when the classifier failed or gave no valid scope.

Testing.

  • scripts/ci-scope-rs-matter.test.sh checks these conditions in the workflow text. Four deliberate breakages were all caught.
  • I checked the runner semantics with forgejo-runner exec on a synthetic workflow using the same expressions:
    • A failed classifier, and one that exits 0 without a scope: every step runs, then the job fails.
    • Content-only: the steps skip and the job is green.
  • Known and unchanged: after a classifier failure, a failing Rust step still stops the later ones, exactly as on any full run.

Time to green. No change to any successful path.

Self-review: two rounds, no blocking findings.

PLAT-986 follow-up to #3. Before this PR, a failed change classifier left `check` red but skipped the Rust steps, so the full suite never ran. It now falls back to the full suite and still fails, the same fix as regent#399 and fj. **What changes in `.forgejo/workflows/rasterstate-ci.yml`.** - **Classifier step:** `Classify the change` has `continue-on-error: true`. - **Gated steps:** each of the 4 runs unless the classifier succeeded and said `content`. - **Final step:** `Fail when classification failed` turns the job red when the classifier failed or gave no valid scope. **Testing.** - `scripts/ci-scope-rs-matter.test.sh` checks these conditions in the workflow text. Four deliberate breakages were all caught. - I checked the runner semantics with `forgejo-runner exec` on a synthetic workflow using the same expressions: - A failed classifier, and one that exits 0 without a scope: every step runs, then the job fails. - Content-only: the steps skip and the job is green. - Known and unchanged: after a classifier failure, a failing Rust step still stops the later ones, exactly as on any full run. **Time to green.** No change to any successful path. Self-review: two rounds, no blocking findings.
CI: a failed change classifier runs every check step, then fails the job (PLAT-986)
All checks were successful
Rasterstate CI / check (pull_request) Successful in 11m29s
a3a4d25c55
The classifier step continues on error; each gated step runs unless the
classifier succeeded and said content; a final step fails the job when the
classification failed or gave no valid scope. The repo self-test checks
these conditions. Same fix as regent#399.
stephen merged commit 471d5a2299 into hearth 2026-12-02 18:40:58 +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!4
No description provided.