Skip to content

ci: record the eight WF-004 needs-review cascades as intended (#2953) - #2954

Merged
zackees merged 1 commit into
masterfrom
infra/wf-004-needs-review-exceptions
Oct 29, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/wf-004-needs-review-exceptions

Conversation

@zackees

@zackees zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member

What

ci-lint precheck on master (6e9560488) reports 8 WF-004 needs-review findings — "job X needs: a gated job, so a skipped needs: skips X too" — and 2 GEN-007 findings. This PR disposes of the WF-004 set; the GEN-007 pair stays needs-review because whether a 4-leg matrix should be path-scoped is a maintainer call.

Every finding was checked against the flagged job's own if:, its inputs, and the artifact it consumes:

Workflow Job Needed (gated) job Why the cascade is intended
sanitizers.yaml sanitize matrix #1258: a fork's schedule must not run the sanitizer marathon. In this repository matrix always runs.
ci.yml tier2-setup-consumer tier2-setup-producer Reads the producer's tier2-setup-metadata / tier2-setup-image artifacts, so it cannot run without it (#1592 probe pair).
release-rust.yaml build, appimage, gate check A certify dispatch skips check on purpose: it promotes an existing release and builds nothing (the certify job deliberately has no needs:).
appimage.yaml release test, test-nixos A reusable-workflow call (the release gate) leaves platform_tests unset and must never publish; release also requires a tag push.
scheduled.yaml report-nightly-failure build-project, analyze-project, codeql It reports only a scheduled failure (if: failure() && event_name == 'schedule').
scheduled.yaml steam-upload build-project Upstream-only (if: repository_owner == 'obsproject'); it never runs in this fork.

How

  • Five [[exceptions]] blocks in ci.toml, one per path, each saying why.
  • The one-line comment each flagged job was missing, so the next reader does not re-derive the rule (the rule's own second option: "if skipping is intended, say so in a comment").
  • No if: on a gated job is rewritten, so no run's behaviour moves. This is a ledger change plus comments.

RED / GREEN

RED (ci-lint precheck on origin/master 6e9560488):

[WF-004] NEEDS REVIEW .github/workflows/appimage.yaml   job 'release' needs 'test', 'test-nixos', …
[WF-004] NEEDS REVIEW .github/workflows/ci.yml          job 'tier2-setup-consumer' needs 'tier2-setup-producer', …
[WF-004] NEEDS REVIEW .github/workflows/release-rust.yaml  (build, appimage, gate need 'check')
[WF-004] NEEDS REVIEW .github/workflows/sanitizers.yaml job 'sanitize' needs 'matrix', …
[WF-004] NEEDS REVIEW .github/workflows/scheduled.yaml  (report-nightly-failure, steam-upload)
ci-lint precheck: 4 violation(s), 355 approved exception(s), 10 needs_review, in 26.62s

GREEN (this branch, same command):

== WF-004 (8) ==   (all eight now APPROVED EXCEPTION, nothing to review)
ci-lint precheck: 4 violation(s), 363 approved exception(s), 2 needs_review, in 29.85s

The two remaining needs-review findings are the GEN-007 pair named above. Violations are unchanged at 4 (CACHE-004 budget, GEN-004 fast job, SEC-003 pull_request_target, WF-003 continue-on-error in appimage.yaml) — each is its own unit or a maintainer decision.

Local checks

  • ./lint — ok (48.6s).
  • uv run --no-project pytest -q ci/test_ci_toml.py — 47 passed, 275 subtests.

No docs/features.md line: CI ledger only, nothing user-visible.

Fixes #2953

`ci-lint precheck` on master reports eight WF-004 needs-review findings: a
job that `needs:` a gated job is skipped with it. Each one was checked
against the job's own `if:` and inputs and the cascade is what the workflow
wants -- a fork's sanitizer schedule (#1258), the consumer half of the #1592
probe pair, a certify dispatch that builds nothing, a release-gate call that
must never publish, a nightly reporter that speaks only for a scheduled
failure, and an upstream-only Steam upload.

Approved exceptions per path in ci.toml, plus the one-line comment each of
those jobs was missing, so the next reader does not re-derive the rule.

No `if:` on a gated job is rewritten: no run's behaviour moves.

GREEN: `ci-lint precheck` -> 4 violation(s), 363 approved exception(s),
2 needs_review (was 355 exceptions, 10 needs_review).

Fixes #2953
@zackees
zackees added this pull request to the merge queue Oct 29, 2026
Merged via the queue into master with commit 3d3c86a Oct 29, 2026
34 checks passed
@zackees
zackees deleted the infra/wf-004-needs-review-exceptions branch October 29, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

infra: resolve the eight WF-004 needs-review findings as documented exceptions

1 participant