Repository navigation
Description
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
K8swith conclusionskippedand no otherK8srun. - THEN The check names that
_read_checksreturns hold noK8s.
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
Testswith conclusionsuccess. - THEN The check names that
_read_checksreturns holdTests.
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 conclusionskipped. - THEN The check names that
_read_checksreturns 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 Independencewith conclusionsuccessandChanged-Test Independence (run 1 of 3)with conclusionsuccess. - THEN The check names that
_read_checksreturns holdChanged-Test Independenceand noChanged-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_checksreturns holdK8sfrom 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_checksinsrc/devops_cli/github/onboard/template_pr.pyreads the check runs and sets the reported checks._with_required_checksatsrc/devops_cli/github/onboard/settings_rows.py:640adds each reported name to the desired ruleset.ruleset_rowcalls it atsrc/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
successbecome 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
successand 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.
- Chosen: Drop
- How does the change cover repositories that onboard already changed?: It does not.
_with_required_checkskeeps 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, whichdeferred_issuesnames. (best practice) [sources: src/devops_cli/github/onboard/settings_rows.py:640]- Rejected: Audit each changed repository in this pull request. The pull request cannot read the live rulesets of other repositories. chore(repos): audit rulesets for required checks from skipped jobs #7327 covers the audit.
- Rejected: Re-run onboard to remove the bad check.
_with_required_checkskeeps each live required check, so a re-run does not remove it. - Chosen: Defer the audit to chore(repos): audit rulesets for required checks from skipped jobs #7327. chore(repos): audit rulesets for required checks from skipped jobs #7327 already covers the audit, and this pull request delivers the code fix.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 26, 2026
The bug caused a real merge failure (dan-petty/infra#178) and will recur for any repository with a skipped job.Both work on the devops repos onboard command, but #4664 adds a project-dependency row while the candidate fixes the required-check name logic.devops-cli-service commentedon Nov 26, 2026
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:
Sources:
dan-petty commentedon Nov 26, 2026
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)andChanged-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 jobsTests & CoverageandChanged-Test Independencecover 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.
devops-cli-service commentedon Nov 26, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.
13 remaining items
fix(repos): onboard requires a skipped check name (#7318)
docs(spec): archive the change (#7318)
devops-cli-service commentedon Nov 27, 2026
The draft pull request #7470 holds the final title and body. In mode
onofroadmap.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.
devops-cli-service commentedon Nov 27, 2026
Released in v0.229.4: https://github.com/dan-petty/devops-cli/releases/tag/v0.229.4
fix(repos): onboard requires checks of a merged template pull request (…
devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 02:40 UTC