ci(molecule): run two scenarios at a time by default #471

Merged
Defame1297 merged 5 commits from ci/432-two-lanes into main 2026-11-29 11:19:54 +00:00
Owner

What and why

Closes #432

The default number of Molecule lanes goes from 4 to 2, chosen by measurement. Both runs are full workflow_dispatch runs on main with the same code (after #461):

Run Lanes Result Molecule job system_baseline ufw traefik
6363 4 success 35 min 0 s 1122 s 1273 s 1027 s
6422 2 success 34 min 0 s 568 s 525 s 484 s

With 4 lanes every scenario ran about twice as slowly, so 4 lanes finish no sooner than 2. Two lanes leave the runner room for pull request jobs that arrive during a full run, and keep each scenario further from its timeout.

  • scripts/run_molecule_scenarios.sh: the default is 2, and the comment gives the measurement.
  • The duration list holds run 6422's times, so the order matches the lane count it runs at, and it adds nfs_client.
  • The Molecule lanes rule in .gitea/workflows/AGENTS.md says 2.

Verified

  • python3 -m unittest discover -s tests/scripts passes; the existing test checks that every listed path is a real scenario.
  • pre-commit run --all-files passes, and ansible-test sanity passed on push.
  • A dispatch with lanes=2 (run 6422) showed the input reaches the script.

Not verified

  • One run at each lane count. The scenario-trimming PRs (#466–#470) change the durations again, so the list will need a refresh after they merge.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why Closes #432 The default number of Molecule lanes goes from 4 to 2, chosen by measurement. Both runs are full `workflow_dispatch` runs on `main` with the same code (after #461): | Run | Lanes | Result | Molecule job | `system_baseline` | `ufw` | `traefik` | |---|---|---|---|---|---|---| | 6363 | 4 | success | 35 min 0 s | 1122 s | 1273 s | 1027 s | | 6422 | 2 | success | 34 min 0 s | 568 s | 525 s | 484 s | With 4 lanes every scenario ran about twice as slowly, so 4 lanes finish no sooner than 2. Two lanes leave the runner room for pull request jobs that arrive during a full run, and keep each scenario further from its timeout. - `scripts/run_molecule_scenarios.sh`: the default is 2, and the comment gives the measurement. - The duration list holds run 6422's times, so the order matches the lane count it runs at, and it adds `nfs_client`. - The Molecule lanes rule in `.gitea/workflows/AGENTS.md` says 2. ## Verified - `python3 -m unittest discover -s tests/scripts` passes; the existing test checks that every listed path is a real scenario. - `pre-commit run --all-files` passes, and `ansible-test sanity` passed on push. - A dispatch with `lanes=2` (run 6422) showed the input reaches the script. ## Not verified - One run at each lane count. The scenario-trimming PRs (#466–#470) change the durations again, so the list will need a refresh after they merge. --- - [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 23:31:42 +00:00
Claude added 3 commits 2026-11-28 23:31:43 +00:00
A full run on main took 34 minutes with 2 lanes and 35 with 4: with 4 every scenario ran
about twice as slowly, so the runner is full at two, and two leave it room for pull request
jobs. The duration list now holds the 2-lane run's times and adds nfs_client.

Closes #432

Assisted-by: Claude Code
Part of #432

Assisted-by: Claude Code
ci(molecule): wrap the duration list comment
Build / build (pull_request) Successful in 1m3s
Lint / lint (pull_request) Successful in 2m57s
Molecule / molecule (pull_request) Successful in 41m21s
2b2e2c4021
Part of #432

Assisted-by: Claude Code
CODEOWNERS rules requested review from Defame1297 2026-11-28 23:31:43 +00:00
Defame1297 added 1 commit 2026-11-29 08:07:18 +00:00
Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 2m44s
Molecule / molecule (pull_request) Successful in 29m36s
2b221b69a5
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-29 08:07:26 +00:00
Defame1297 approved these changes 2026-11-29 08:07:32 +00:00
Defame1297 added 1 commit 2026-11-29 10:48:33 +00:00
Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 35s
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 30m31s
040dd9fbf2
Defame1297 merged commit e8f739904a into main 2026-11-29 11:19:54 +00:00
Defame1297 deleted branch ci/432-two-lanes 2026-11-29 11:19:58 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#471