Repository navigation
Done
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/ciGitHub Actions workflows and pre-commit hookssource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/mediumValue Medium
Description
Problem
The CI of this repository has a gate job "K8s" with its own Bash logic.
The code (lines at commit 39f92fb):
.github/workflows/ci.yml:158-179: a Bashcasepasses when each needed job succeeded or was skipped, and fails on each other result.tests/test-ci-check-names.sh(66 lines) tests the gate with 7 cases for each caller.- dan-petty/infra has the same gate in
.github/workflows/ci.yml:204-225(commite11cff6).
Breakage:
- fix(ci): the required check K8s never reports infra#179 and its fix PR fix(ci): report the required check K8s on every pull request infra#180.
- The same check-name problem drives the required-check bugs of onboard: fix(repos): onboard requires a skipped check name devops-cli#7318, fix(repos): onboard ignores the repo's own required checks devops-cli#7423 and fix(repos): onboard requires checks of a merged template pull request devops-cli#7476.
Change
Replace the gate with alls-green.
- Tool: alls-green (https://github.com/re-actors/alls-green), BSD-3-Clause, v1.3.0 (2026-08-22).
- One gate job
needseach check job, withif: always(). It passesjobs: ${{ toJSON(needs) }}to the action.allowed-skipsnames the jobs that a path filter can skip. - Pin the action by commit SHA, as the other actions are.
- Each repository then has a fixed required-check list: the gate and "PR title". The ruleset no longer names each check job.
- Do the same in dan-petty/infra
.github/workflows/ci.yml:204-225, in the same plan or in an item of that repository.
Delete:
- The Bash
casestep of the gate job. - The cases of
tests/test-ci-check-names.shthat test thecaselogic. actionlint checks the form of the workflow.
Risk: the name of the required check changes one time. Only a person edits a ruleset. The PR body names the ruleset change for that person.
Existing tool considered
- re-actors/alls-green (BSD-3-Clause, v1.3.0). It covers the gate: it fails when a needed job failed or was cancelled, and it allows named skips. It does not change the ruleset.
Done when
- No gate job in this repository has a Bash
caseonneeds.*.result. - The gate job uses alls-green with
jobs: ${{ toJSON(needs) }}andallowed-skips. - A CI run in which a needed job fails makes the gate fail. A run in which a filtered job is skipped makes the gate pass.
- The infra gate is replaced too, or an item in dan-petty/infra tracks it.
Source
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/ciGitHub Actions workflows and pre-commit hookssource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 28, 2026
Both refactor CI workflows in this repository, but #7 changes PR-title scope sourcing while the candidate changes the gate result check.dan-petty commentedon Nov 30, 2026
Note from #21. When this item changes README.md, also correct one sentence of the section
lint.yml. The sentence says that a self-hosted runner needs bash, git, xargs and HTTPS access to GitHub. jdx/mise-action v5.4.0 also needs tar, and curl or wget, to download and unpack mise.Correct text: "A self-hosted runner needs bash, git, tar, xargs, curl or wget, and HTTPS access to GitHub."
Do not open a pull request for this sentence only.
refactor(ci): gate CI with one alls-green job (#280)