Repository navigation
ci: record the eight WF-004 needs-review cascades as intended (#2953) - #2954
Merged
Merged
Conversation
`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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ci-lint precheckon master (6e9560488) reports 8 WF-004 needs-review findings — "job Xneeds:a gated job, so a skippedneeds: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:sanitizers.yamlsanitizematrixmatrixalways runs.ci.ymltier2-setup-consumertier2-setup-producertier2-setup-metadata/tier2-setup-imageartifacts, so it cannot run without it (#1592 probe pair).release-rust.yamlbuild,appimage,gatecheckcheckon purpose: it promotes an existing release and builds nothing (thecertifyjob deliberately has noneeds:).appimage.yamlreleasetest,test-nixosplatform_testsunset and must never publish;releasealso requires a tag push.scheduled.yamlreport-nightly-failurebuild-project,analyze-project,codeqlif: failure() && event_name == 'schedule').scheduled.yamlsteam-uploadbuild-projectif: repository_owner == 'obsproject'); it never runs in this fork.How
[[exceptions]]blocks inci.toml, one per path, each saying why.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 precheckonorigin/master6e9560488):GREEN (this branch, same command):
The two remaining needs-review findings are the GEN-007 pair named above. Violations are unchanged at 4 (CACHE-004 budget, GEN-004
fastjob, SEC-003pull_request_target, WF-003continue-on-errorinappimage.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.mdline: CI ledger only, nothing user-visible.Fixes #2953