Skip to content

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

Closed

Description

@zackees

What

ci-lint precheck on master (6e9560488) reports 4 violation(s), 355 approved exception(s), 10 needs_review. Eight of the ten needs-review findings are WF-004 — "job X needs Y, which is gated on the event, so it is SKIPPED on other events, and a skipped needs: skips this job too".

All eight were checked against the jobs' own if: conditions and their inputs; in every case the skip cascade is what the workflow wants, and the fix is the rule's own second option: record it as a documented exception instead of leaving a static finding that reads as a latent bug. Two needs-review findings (GEN-007, the missing paths: filters on appimage.yaml push and ci.yml pull_request) are not in this unit: whether a matrix this broad should be path-scoped is a maintainer's call, so they stay needs-review.

Findings and dispositions

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

Acceptance

  • ci-lint precheck reports no WF-004 needs-review finding: needs_review drops from 10 to 2, approved exception(s) rises from 355 to 363.
  • Each flagged job carries a one-line comment in the workflow saying the skipped needs: is intended, so the next reader does not have to re-derive it.
  • Nothing else changes: no if: on a gated job is rewritten, so no run's behaviour moves.

RED / GREEN

  • RED: ci-lint precheck on origin/master — the eight WF-004 lines quoted above.
  • GREEN: the same command on the branch — WF-004 section empty, the counts as listed in Acceptance.

Filed from a worker tick on slot obs-studio3; one PR, infra/wf-004-needs-review-exceptions.

Activity

  1. added
    infra
    on Oct 29, 2026
  2. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Claiming: investigation

    Disposition of every open WF-004 finding on master (6e9560488): eight needs-review hits, all in jobs whose skipped needs: is what the workflow wants, plus the one-line comment each of those jobs is missing. The two GEN-007 findings (missing paths: on appimage.yaml push and ci.yml pull_request) stay needs-review — whether a 4-leg matrix should be path-scoped is a maintainer call.

  3. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    /ready

    Ready: the dispositions are derived from each job's own if: and inputs (the body tabulates them), acceptance is the precheck delta (needs_review 10 -> 2, approved exceptions 355 -> 363), and nothing depends on hardware or a decision.

  4. added
    needs-investigation
    on Oct 29, 2026
  5. added
    ready
    and removed
    needs-investigation
    on Oct 29, 2026
  6. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Claiming: WF-004 documented-exception sweep

    1. RED: ci-lint precheck on 6e9560488 lists eight WF-004 needs-review findings (quoted in the body).
    2. GREEN: five [[exceptions]] blocks in ci.toml, one per path, each carrying the reason; plus the one-line comment the flagged job was missing in each workflow. needs_review 10 -> 2, approved exceptions 355 -> 363, violations unchanged at 4.
    3. No if: on a gated job is rewritten, so no run's behaviour moves. PR infra/wf-004-needs-review-exceptions now.
  7. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Fixed by #2954 (merged as 3d3c86a4e).

    • Five [[exceptions]] blocks in ci.toml (one per path: sanitizers.yaml, ci.yml, release-rust.yaml, appimage.yaml, scheduled.yaml), each carrying the reason it is in the issue body.
    • The one-line comment each flagged job was missing, so the cascade is visible where you read the job and not only in ci.toml.
    • No if: on a gated job was rewritten, so no run's behaviour moved.

    Verified on master (61c814e48): ci-lint precheck -> 363 approved exception(s), 2 needs_review, WF-004 section empty (it was 355 / 10 with eight WF-004 needs-review findings at 6e9560488). Violations moved 4 -> 6 in the same window from unrelated landings (#2955, #2943), not from this change.

    What's left in the needs-review queue: the GEN-007 pair (appimage.yaml push and ci.yml pull_request have no paths: filter in front of a 4-leg matrix). Whether a matrix that broad should be path-scoped is a maintainer call, so it stays needs-review and wants its own issue. Local gate for this change: lint ok, rust-test ok, cross ok, tier2-linux ok (620/620 cmocka both configs); macos-native / windows-native not applicable on this host.

  8. added a commit that references this issue on Oct 30, 2026
    3d3c86a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions