molecule.yml is split into three jobs, so a pull request that selects no scenario no longer occupies a Molecule runner slot:
select: runs on kamino-docker in the molecule-controller pin. It runs main's copy of the selector and outputs the list, or none when nothing is selected.
scenarios: runs on kamino-molecule only when the list is neither none nor empty. It does everything the old job did: the daemon check, checkout, sweep, docker run, cleanup, and the 90-minute timeout equal to the sweep age.
result (Molecule / Result): runs with if: always(). It fails unless select succeeded and scenarios either succeeded, or was skipped because select output exactly none. A lost or empty output therefore fails it rather than passing green.
Other changes:
All three jobs keep the fork and repository guard.
Scheduled and dispatched runs still select every scenario.
The controller pin moves to 0.1.1, the image with git that #488 added. It now appears in three places, because actionlint forbids env in container.image, and a test keeps the copies equal.
.gitea/workflows/AGENTS.md and docs/contributing/maintaining.md describe the jobs and the new required check.
Maintainer step
After this pull request's trial run passes, swap the branch-protection required check on main from Molecule / molecule (pull_request) to Molecule / Result (pull_request). Do it before or at the merge. Once this merges, the old check is never reported again, so every pull request would wait on it.
Verified
332 unit tests pass (python3 -m unittest discover -s tests/scripts). The tests cover:
the three jobs, each job's runner label, and if: always() on result;
the sweep age against the scenarios job's timeout;
a literal fork guard on every job;
the controller pin copies being equal;
the result logic, run under POSIX sh;
select's output block with an empty and with a two-line selection.
pre-commit run --all-files passes, including actionlint and zizmor.
scripts/check_image_versions.py pins passes.
The 0.1.1 tag serves digest 94af071e….
The trial run passed on e403987: select → scenarios (every scenario) → Result all succeeded. It proves on Gitea that select's job output reaches scenarios, that select's clone needs no safe.directory, and that the check is named Molecule / Result (pull_request).
A clean-context review found no blocking issues. Its non-blocking findings are fixed (the none marker, the sh test, the literal guard test) or listed below.
Not verified
The trial changed molecule.yml, so it selected every scenario: the non-empty path is proven, the empty-selection path is not. Still to prove on Gitea:
The empty-selection path: that Gitea and act_runner pass the multi-line job output, evaluate needs.select.outputs.scenarios in a job if:, and set needs.*.result to skipped / success / failure. A docs-only pull request after the merge exercises this path.
Whether a skipped scenarios job still waits for a free kamino-molecule runner. That depends on whether the runner, not the server, evaluates the job if:. If it does, a pull request that selects nothing waits behind a busy Molecule runner, although it never runs on it.
Renovate on a future controller bump. Renovate was not run locally. Statically, the regex manager moves CONTROLLER_IMAGE, the github-actions manager moves the two container.image copies, and the "own CI images" group puts all of them in one pull request.
New timeouts: 10 minutes for select and 5 for result.
Files I added carry SPDX headers, or are covered by REUSE.toml (REUSE-clean); no third-party NOTICE is needed.
Assisted-by: Claude Code
## What and why
Closes #433
`molecule.yml` is split into three jobs, so a pull request that selects no scenario no longer occupies a Molecule runner slot:
- **select**: runs on `kamino-docker` in the molecule-controller pin. It runs main's copy of the selector and outputs the list, or `none` when nothing is selected.
- **scenarios**: runs on `kamino-molecule` only when the list is neither `none` nor empty. It does everything the old job did: the daemon check, checkout, sweep, `docker run`, cleanup, and the 90-minute timeout equal to the sweep age.
- **result** (`Molecule / Result`): runs with `if: always()`. It fails unless select succeeded and scenarios either succeeded, or was skipped because select output exactly `none`. A lost or empty output therefore fails it rather than passing green.
Other changes:
- All three jobs keep the fork and repository guard.
- Scheduled and dispatched runs still select every scenario.
- The controller pin moves to `0.1.1`, the image with git that #488 added. It now appears in three places, because actionlint forbids `env` in `container.image`, and a test keeps the copies equal.
- `.gitea/workflows/AGENTS.md` and `docs/contributing/maintaining.md` describe the jobs and the new required check.
## Maintainer step
**After this pull request's trial run passes, swap the branch-protection required check on `main` from `Molecule / molecule (pull_request)` to `Molecule / Result (pull_request)`.** Do it before or at the merge. Once this merges, the old check is never reported again, so every pull request would wait on it.
## Verified
- 332 unit tests pass (`python3 -m unittest discover -s tests/scripts`). The tests cover:
- the three jobs, each job's runner label, and `if: always()` on result;
- the sweep age against the scenarios job's timeout;
- a literal fork guard on every job;
- the controller pin copies being equal;
- the result logic, run under POSIX `sh`;
- select's output block with an empty and with a two-line selection.
- `pre-commit run --all-files` passes, including actionlint and zizmor.
- `scripts/check_image_versions.py pins` passes.
- The 0.1.1 tag serves digest `94af071e…`.
- The trial run passed on `e403987`: select → scenarios (every scenario) → Result all succeeded. It proves on Gitea that select's job output reaches scenarios, that select's clone needs no `safe.directory`, and that the check is named `Molecule / Result (pull_request)`.
- A clean-context review found no blocking issues. Its non-blocking findings are fixed (the `none` marker, the sh test, the literal guard test) or listed below.
## Not verified
The trial changed `molecule.yml`, so it selected every scenario: the non-empty path is proven, the empty-selection path is not. Still to prove on Gitea:
- **The empty-selection path:** that Gitea and act_runner pass the multi-line job output, evaluate `needs.select.outputs.scenarios` in a job `if:`, and set `needs.*.result` to `skipped` / `success` / `failure`. A docs-only pull request after the merge exercises this path.
- **Whether a skipped scenarios job still waits for a free `kamino-molecule` runner.** That depends on whether the runner, not the server, evaluates the job `if:`. If it does, a pull request that selects nothing waits behind a busy Molecule runner, although it never runs on it.
- **Renovate on a future controller bump.** Renovate was not run locally. Statically, the regex manager moves `CONTROLLER_IMAGE`, the github-actions manager moves the two `container.image` copies, and the "own CI images" group puts all of them in one pull request.
- New timeouts: 10 minutes for select and 5 for result.
- [x] Files I added carry SPDX headers, or are covered by `REUSE.toml` (REUSE-clean); no third-party NOTICE is needed.
Assisted-by: Claude Code
Claude
added this to the CI velocity (emergency) milestone 2026-12-01 23:47:10 +00:00
A pull request that selects no scenario still took the single Molecule
runner slot to pull the controller image, select nothing and exit.
The workflow now has three jobs. select runs the selector from main's
copy in a job container on kamino-docker, in the molecule-controller pin,
and outputs the selected list. scenarios runs it on kamino-molecule and
is skipped when the list is empty. result runs always() and is the one
job to require: it fails unless select passed and scenarios passed or
was skipped for an empty list, because Gitea counts a skipped job as
passing. Scheduled and dispatched runs still select every scenario.
container.image cannot read env, so the controller pin is written in all
three jobs; a test holds the copies equal. The pin moves to 0.1.1, which
has git for the select job's checkout. Branch protection must then
require "Molecule / Result (pull_request)".
Closes#433
Assisted-by: Claude Code
An empty select output meant "nothing selected", so an output lost on
the way from select to result also passed the required check. select now
writes `none` for an empty selection; scenarios runs for neither `none`
nor an empty output, and result passes a skipped scenarios only for
`none`.
The result-logic test runs under sh, as act runs a job container's step
without a shell, and a new test parses what select writes to
GITHUB_OUTPUT. The fork-guard test compares each job with the literal
guard.
Assisted-by: Claude Code
CODEOWNERS rules
requested review from Defame1297 2026-12-01 23:47:10 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #433
molecule.ymlis split into three jobs, so a pull request that selects no scenario no longer occupies a Molecule runner slot:kamino-dockerin the molecule-controller pin. It runs main's copy of the selector and outputs the list, ornonewhen nothing is selected.kamino-moleculeonly when the list is neithernonenor empty. It does everything the old job did: the daemon check, checkout, sweep,docker run, cleanup, and the 90-minute timeout equal to the sweep age.Molecule / Result): runs withif: always(). It fails unless select succeeded and scenarios either succeeded, or was skipped because select output exactlynone. A lost or empty output therefore fails it rather than passing green.Other changes:
0.1.1, the image with git that #488 added. It now appears in three places, because actionlint forbidsenvincontainer.image, and a test keeps the copies equal..gitea/workflows/AGENTS.mdanddocs/contributing/maintaining.mddescribe the jobs and the new required check.Maintainer step
After this pull request's trial run passes, swap the branch-protection required check on
mainfromMolecule / molecule (pull_request)toMolecule / Result (pull_request). Do it before or at the merge. Once this merges, the old check is never reported again, so every pull request would wait on it.Verified
python3 -m unittest discover -s tests/scripts). The tests cover:if: always()on result;sh;pre-commit run --all-filespasses, including actionlint and zizmor.scripts/check_image_versions.py pinspasses.94af071e….e403987: select → scenarios (every scenario) → Result all succeeded. It proves on Gitea that select's job output reaches scenarios, that select's clone needs nosafe.directory, and that the check is namedMolecule / Result (pull_request).nonemarker, the sh test, the literal guard test) or listed below.Not verified
The trial changed
molecule.yml, so it selected every scenario: the non-empty path is proven, the empty-selection path is not. Still to prove on Gitea:The empty-selection path: that Gitea and act_runner pass the multi-line job output, evaluate
needs.select.outputs.scenariosin a jobif:, and setneeds.*.resulttoskipped/success/failure. A docs-only pull request after the merge exercises this path.Whether a skipped scenarios job still waits for a free
kamino-moleculerunner. That depends on whether the runner, not the server, evaluates the jobif:. If it does, a pull request that selects nothing waits behind a busy Molecule runner, although it never runs on it.Renovate on a future controller bump. Renovate was not run locally. Statically, the regex manager moves
CONTROLLER_IMAGE, the github-actions manager moves the twocontainer.imagecopies, and the "own CI images" group puts all of them in one pull request.New timeouts: 10 minutes for select and 5 for result.
Files I added carry SPDX headers, or are covered by
REUSE.toml(REUSE-clean); no third-party NOTICE is needed.Assisted-by: Claude Code