Skip to content

fix(repos): onboard requires a skipped check name #7318

Done

Description

@dan-petty

Problem

devops repos onboard makes each check of the template pull request that passed a required check of the ruleset (_with_required_checks in settings_rows.py, from ctx.reported_checks). A skipped check counts as passed. A skipped job that calls a reusable workflow reports <job>, and the same job reports <job> / <called job> when it runs. Onboard can therefore require a name that no pull request gets when the job runs.

Evidence

On 2026-11-26 the ruleset of dan-petty/infra got the required check K8s from a pull request that skipped that job. dan-petty/infra#178 then could not merge. dan-petty/infra#180 fixes the workflow of infra.

Done when

  • Onboard does not require a check that was only skipped, or it names each such check as a step for a person. A test fails on the base.
  • Each repository that onboard already changed is checked for a required name that a skipped job gave.

Alternatives check of 2026-11-26: none.
Tool: none found.
Reason: Searches for tools that derive GitHub ruleset required checks, or that resolve skipped reusable-workflow job names, returned only unrelated documentation and container pages; no open, maintained tool covers this fix, which lives in the command's own check-name logic.

Lacks:

  • Required checks built only from non-skipped check runs
  • Correct name for a skipped reusable-workflow job
  • Audit of repositories already given a skipped check name

Proposed design

Problem statement

The fix drops a skipped check run and an unexpanded ${{ name from the required checks. The audit of repositories that onboard already changed is #7327. Onboard builds the required checks of a ruleset from the check runs of the template pull request. It counts a skipped check run as passed. A skipped reusable-workflow job reports <job>, and a skipped matrix job reports an unexpanded name with ${{. Onboard then requires a name that no pull request reports, and the merge blocks.

Acceptance criteria

Requirement: Skip a skipped check

The onboard check reader SHALL add a reported check name only when its check run has conclusion success.

Scenario: Skipped reusable-workflow job

  • WHEN The template pull request check runs hold K8s with conclusion skipped and no other K8s run.
  • THEN The check names that _read_checks returns hold no K8s.

Requirement: Keep a passing check

The onboard check reader SHALL keep each reported check run that has conclusion success.

Scenario: Passing check

  • WHEN The template pull request check runs hold Tests with conclusion success.
  • THEN The check names that _read_checks returns hold Tests.

Requirement: Drop an unexpanded matrix name

The onboard check reader MUST drop each reported check name that holds ${{.

Scenario: Skipped matrix job

  • WHEN The template pull request check runs hold Push by digest (${{ matrix.platform }}) with conclusion skipped.
  • THEN The check names that _read_checks returns hold no name that holds ${{.

Requirement: Prefer the aggregate matrix job

The onboard check reader MUST drop a reported check name of the form <base> (<suffix>) when <base> is also a reported check name.

Scenario: Passing matrix legs

  • WHEN The template pull request check runs hold Changed-Test Independence with conclusion success and Changed-Test Independence (run 1 of 3) with conclusion success.
  • THEN The check names that _read_checks returns hold Changed-Test Independence and no Changed-Test Independence (run 1 of 3).

Requirement: Regression test

The change MUST add a unit test that fails on the base commit and passes with the change.

Scenario: Base commit

  • WHEN The new unit test runs on the base commit without the change.
  • THEN The test fails because the check names that _read_checks returns hold K8s from a skipped check.

Existing Tool Considered

The alternatives check of 2026-11-26 in the issue body records verdict none and no tool. Its Lacks: list names the gaps. No open, maintained tool covers this fix. The change extends the check-name logic in src/devops_cli/github/onboard/template_pr.py and src/devops_cli/github/onboard/settings_rows.py. The written cost is about 2,000 tokens and 2 hours to build, keep and fix the code.

Key questions

  • Where does onboard read the check runs and build the required checks?: _read_checks in src/devops_cli/github/onboard/template_pr.py reads the check runs and sets the reported checks. _with_required_checks at src/devops_cli/github/onboard/settings_rows.py:640 adds each reported name to the desired ruleset. ruleset_row calls it at src/devops_cli/github/onboard/settings_rows.py:700. [sources: src/devops_cli/github/onboard/template_pr.py, src/devops_cli/github/onboard/settings_rows.py:640, src/devops_cli/github/onboard/settings_rows.py:700]
  • Which check runs become required checks, and what happens to a skipped check?: Only check runs with conclusion success become required checks. Onboard drops a name that holds ${{. Onboard adds no person step for a skipped check, because a person step leaves the bad required check in the ruleset. (best practice) [sources: src/devops_cli/github/onboard/template_pr.py, src/devops_cli/github/onboard/settings_rows.py:640]
    • Rejected: Keep each check run that is not failed. It counts a skipped check as passed, which is the defect.
    • Chosen: Require only success and drop ${{ names. It removes the skipped reusable-workflow name and the unexpanded matrix name. The issue reply gives this fix.
    • Rejected: Name each skipped check as a person step. The step leaves the bad required check in the ruleset.
  • How does onboard treat a matrix leg name?: Onboard drops a name that holds ${{. Onboard also drops a leg name of the form <base> (<suffix>) when <base> is a reported check name. The aggregate job is required and the leg is not. (best practice) [sources: .github/workflows/ci.yml:144, .github/workflows/ci.yml:238, src/devops_cli/github/onboard/template_pr.py]
    • Chosen: Drop ${{ names and prefer the base name. The literal name never reports. The aggregate job reports on a release pull request, where no shard runs.
    • Rejected: Require each successful leg. A path-filtered matrix job skips the leg on a later pull request, and the required leg name blocks it.
    • Rejected: Use a regular expression on the leg suffix. Matrix values vary, so the pattern misses names.
  • How does the change cover repositories that onboard already changed?: It does not. _with_required_checks keeps each live required check, so a re-run of onboard does not remove a bad name. The one-time audit of each changed repository is chore(repos): audit rulesets for required checks from skipped jobs #7327, which deferred_issues names. (best practice) [sources: src/devops_cli/github/onboard/settings_rows.py:640]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Moved to new items

#7327

Activity

  1. added
    type/bug
    source/agent
    status/new
    effort/medium
    on Nov 26, 2026
  2. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor
    • Priority: The bug caused a real merge failure (dan-petty/infra#178) and will recur for any repository with a skipped job.
    • Related: feat(roadmap): onboard a repository that lacks a project dependency #4664, which asks for a different change. Both work on the devops repos onboard command, but #4664 adds a project-dependency row while the candidate fixes the required-check name logic.
  3. added
    value/high
    scope/repos
    priority/p1-high
    on Nov 26, 2026
  4. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Searches run:

    • GitHub Actions skipped job reusable workflow reported check name differs, results: 5
    • tool derive required status checks from pull request check runs GitHub ruleset, results: 5
    • safe-settings required status checks branch protection declarative, results: 5
    • GitHub Actions job name matrix reusable workflow "skipped" check name mismatch bug, results: 5
    • github safe-settings repository settings app required checks, results: 5
    • PyGithub check runs conclusion skipped list check runs for ref, results: 5
    • "safe-settings" github app, results: 5
    • actionlint reusable workflow job name validation, results: 5
    • github rulesets required_status_checks reusable workflow check run name, results: 5
    • github branch protection required checks automation tool open source, results: 5

    Sources:

  5. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    A second form of this defect blocks releases of devops-cli. Row 10 required the names of the matrix legs, for example Tests & Coverage (shard 1 of 5) and Changed-Test Independence (run 1 of 3). The release pull request skips these jobs, and a skipped matrix job reports its name unexpanded, so the eight required names never report. #7322 cannot merge. The aggregate jobs Tests & Coverage and Changed-Test Independence cover the legs.

    The check also has to refuse a matrix leg name, not only a skipped reusable workflow call. #7326 tracks the lowered thresholds of the same ruleset change.

  6. added
    status/ready
    and removed
    status/new
    on Nov 26, 2026
  7. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

  8. added
    owner/service
    and removed
    owner/service
    on Nov 27, 2026
  9. 13 remaining items

  10. added
    owner/service
    status/in-progress
    and removed
    owner/service
    status/ready
    on Nov 27, 2026
  11. added
    status/in-review
    and removed
    status/in-progress
    on Nov 27, 2026
  12. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    The draft pull request #7470 holds the final title and body. In mode on of roadmap.fix_checks.mode, the watch row marks it ready when its checks pass, and a fix-checks Job repairs a failed check whose name gives the class test, lint or types. In each other case the watch row stops the item: another failed check, a cancelled check, a conflict, a fix-checks Job that ended with no repair, or another mode.

    Spend: 82 model requests, 9561174 input tokens, 43411 output tokens.

  13. removed
    owner/service
    on Nov 27, 2026
  14. removed
    status/in-review
    on Nov 27, 2026
  15. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-28 02:40 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/repossource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions