Part of #432 (does not close it: the 2- vs 4-lane comparison is still to do).
Longest first.scripts/run_molecule_scenarios.sh keeps a duration list per scenario directory, from the last full run, and starts scenarios longest first. An unlisted scenario starts first, and ties keep the selection order. The log groups still print in selection order.
Lane count. A lanesworkflow_dispatch input reaches the run container through env: and -e MOLECULE_LANES, never interpolated in run:. An empty value falls back to the script's default of 4. The script already refuses anything but a positive integer.
Timing..config/molecule/config.yml enables the ansible.posix.profile_tasks (summary only, top 20 tasks) and ansible.posix.timer callbacks. They are here for #432's measurement and for the follow-ups under #419 (#455–#460), which each have to state a measured saving; the job log had no per-task timing before.
The Molecule lanes rule in .gitea/workflows/AGENTS.md now covers the start order and the input.
Verified
python3 -m unittest discover -s tests/scripts: 298 tests pass. New tests cover the start order (derived from the list itself), that every listed path is a real scenario, that an empty lane count is accepted, and that the input reaches the scenario runner.
pre-commit run --all-files passes, and ansible-test sanity passed on push.
CI run 6363 is green: all 19 scenarios pass. The four longest scenarios finish first, so they started first. Each playbook run prints the task recap and its run time.
The full Molecule job took 35 min 0 s, against 35 min 49 s on the last full run of main. The gain is smaller than the ideal packing predicted, because the four longest scenarios now run at the same time and each got slower: ufw 907 → 1273 s, traefik 886 → 1027 s, gitea_runner 762 → 830 s. That is one run; the lane comparison in #432 should show whether this holds.
Not verified
Whether Gitea fills inputs.lanes for a dispatch. If it doesn't, the run silently uses 4 lanes. A dispatch with lanes=2 will show it.
#432's third criterion: a full run each with 2 and 4 lanes, and the chosen default.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Part of #432 (does not close it: the 2- vs 4-lane comparison is still to do).
- **Longest first.** `scripts/run_molecule_scenarios.sh` keeps a duration list per scenario directory, from the last full run, and starts scenarios longest first. An unlisted scenario starts first, and ties keep the selection order. The log groups still print in selection order.
- **Lane count.** A `lanes` `workflow_dispatch` input reaches the run container through `env:` and `-e MOLECULE_LANES`, never interpolated in `run:`. An empty value falls back to the script's default of 4. The script already refuses anything but a positive integer.
- **Timing.** `.config/molecule/config.yml` enables the `ansible.posix.profile_tasks` (summary only, top 20 tasks) and `ansible.posix.timer` callbacks. They are here for #432's measurement and for the follow-ups under #419 (#455–#460), which each have to state a measured saving; the job log had no per-task timing before.
- The Molecule lanes rule in `.gitea/workflows/AGENTS.md` now covers the start order and the input.
## Verified
- `python3 -m unittest discover -s tests/scripts`: 298 tests pass. New tests cover the start order (derived from the list itself), that every listed path is a real scenario, that an empty lane count is accepted, and that the input reaches the scenario runner.
- `pre-commit run --all-files` passes, and `ansible-test sanity` passed on push.
- CI run 6363 is green: all 19 scenarios pass. The four longest scenarios finish first, so they started first. Each playbook run prints the task recap and its run time.
- The full Molecule job took 35 min 0 s, against 35 min 49 s on the last full run of `main`. The gain is smaller than the ideal packing predicted, because the four longest scenarios now run at the same time and each got slower: `ufw` 907 → 1273 s, `traefik` 886 → 1027 s, `gitea_runner` 762 → 830 s. That is one run; the lane comparison in #432 should show whether this holds.
## Not verified
- Whether Gitea fills `inputs.lanes` for a dispatch. If it doesn't, the run silently uses 4 lanes. A dispatch with `lanes=2` will show it.
- #432's third criterion: a full run each with 2 and 4 lanes, and the chosen default.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
Claude
added this to the CI velocity (emergency) milestone 2026-11-28 08:49:27 +00:00
Part of #432. A long scenario started late sets the end of a full run, so
run_molecule_scenarios.sh now starts scenarios by the durations of the last
full run, longest first, with an unlisted scenario first; the log groups keep
the selection order. A workflow_dispatch input `lanes` reaches the script as
MOLECULE_LANES, so full runs with different lane counts can be compared; an
empty value keeps the default of 4.
The shared molecule config enables ansible.posix.profile_tasks (summary only)
and ansible.posix.timer, so each scenario's log shows where its time goes.
Assisted-by: Claude Code
Part of #432. The start-order test now reads its scenarios and their seconds
from the run script's list, so a refreshed list does not break it; the
empty-lanes test only asserts the value is accepted, and the script's header
and duration-list comments are rewrapped and say the list is keyed by
scenario directory.
Assisted-by: Claude Code
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
Part of #432 (does not close it: the 2- vs 4-lane comparison is still to do).
scripts/run_molecule_scenarios.shkeeps a duration list per scenario directory, from the last full run, and starts scenarios longest first. An unlisted scenario starts first, and ties keep the selection order. The log groups still print in selection order.lanesworkflow_dispatchinput reaches the run container throughenv:and-e MOLECULE_LANES, never interpolated inrun:. An empty value falls back to the script's default of 4. The script already refuses anything but a positive integer..config/molecule/config.ymlenables theansible.posix.profile_tasks(summary only, top 20 tasks) andansible.posix.timercallbacks. They are here for #432's measurement and for the follow-ups under #419 (#455–#460), which each have to state a measured saving; the job log had no per-task timing before..gitea/workflows/AGENTS.mdnow covers the start order and the input.Verified
python3 -m unittest discover -s tests/scripts: 298 tests pass. New tests cover the start order (derived from the list itself), that every listed path is a real scenario, that an empty lane count is accepted, and that the input reaches the scenario runner.pre-commit run --all-filespasses, andansible-test sanitypassed on push.main. The gain is smaller than the ideal packing predicted, because the four longest scenarios now run at the same time and each got slower:ufw907 → 1273 s,traefik886 → 1027 s,gitea_runner762 → 830 s. That is one run; the lane comparison in #432 should show whether this holds.Not verified
inputs.lanesfor a dispatch. If it doesn't, the run silently uses 4 lanes. A dispatch withlanes=2will show it.NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code