Skip to content

CI: path-filtered required checks (schema-parity, verify-non-root) brick unrelated PRs #1237

@vybe

Description

@vybe

Problem

schema-parity and verify-non-root are path-filtered workflows (run only on DB-schema / Docker-surface changes) that were added to dev's required status checks. On any PR that doesn't touch those paths the required context never reports, so GitHub holds the merge at "Expected — waiting for status" indefinitely.

Impact: every non-schema / non-docker PR was unmergeable. The approved queue (#1078, #1168, #1213, #1166, #1195, #1202) had to be unblocked by temporarily dropping both checks from required branch protection. schema-parity.yml even carried a maintainer note predicting this exact failure.

Fix

Convert both workflows to always-run + self-skip: the job runs on every PR and a pure git diff detector gates the heavy steps. No relevant change → heavy steps skipped → job passes trivially (required check satisfied). Relevant change → full check runs and can fail. No third-party action, no token scope beyond contents: read.

Acceptance

  • both workflows self-skip on unrelated PRs and run fully on relevant ones
  • after merge, re-add schema-parity + verify-non-root to dev required checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions