ci(molecule): say what a scenario time limit leaves running
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Successful in 31m13s

A reader of the time limit needs to know its limits: on expiry only
molecule is signalled, so its ansible-playbook and workers run until the
run container ends, and the run-label cleanup step removes anything they
recreate. The default's reasoning holds at the default 2 lanes, and the
variable is for local runs and tests only.

The timeout test now runs on one lane, so beta running proves the stalled
lane was freed. The workflows rule gives the limit its reason and names
the two tests that hold it.

Refs #474

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-29 11:56:57 +00:00
1 parent 41820fd9a7
commit 258cbaf516
3 files changed
+22 -14

No files matched your search

+12 -9
View File
@@ -112,15 +112,18 @@ issue.
older than its timeout, which a cancelled run left, and finally its own. The scenarios of one
run overlap (`scripts/run_molecule_scenarios.sh`, `MOLECULE_LANES` at a time, 2 unless a manual
dispatch sets its `lanes` input), so no two scenarios may share a platform name. They start
longest first by the script's list of last full-run times, an unlisted one first; one still
running after 30 min fails on its own; the logs stay in selection order. *Why:* a cancelled run is killed before it can remove its instances, a
younger container may belong to a run still going, and a long scenario started late sets the
end of the run. *Held:* review; control: the start order by
`test_the_longest_scenarios_start_first` and the input by `LanesInputTest`, both in
`tests/scripts/test_run_molecule_scenarios.py`; control:
the names and labels by the test the `test_sequence` rule below names, and the sweep's age bound
equal to the job timeout by `test_the_sweep_spares_containers_younger_than_the_job_timeout` in
`tests/scripts/test_run_molecule_scenarios.py`.
longest first by the script's list of last full-run times, an unlisted one first; the logs stay
in selection order. A scenario still running at the script's per-scenario limit is stopped and
fails. *Why:* a cancelled run is killed before it can remove its instances, a younger container
may belong to a run still going, a long scenario started late sets the end of the run, and a
hang that fails alone inside the job timeout still lets every scenario's log print. *Held:*
review; control: the start order by `test_the_longest_scenarios_start_first` and the input by
`LanesInputTest`, both in `tests/scripts/test_run_molecule_scenarios.py`; control: the names and
labels by the test the `test_sequence` rule below names, and the sweep's age bound equal to the
job timeout by `test_the_sweep_spares_containers_younger_than_the_job_timeout` in
`tests/scripts/test_run_molecule_scenarios.py`; control: the limit by
`test_a_scenario_past_its_time_limit_fails_alone` and
`test_the_default_time_limit_is_inside_the_job_timeout`, in the same file.
- **Molecule tests the pull request's pins, as Lint and Build do.** It runs molecule in the pinned
`ci` image and, when a pin file differs from `/opt/ci-pins.sha256`, installs the pull request's
tools and the collections of `requirements.yml` and `extensions/molecule/requirements.yml` first.