ci(molecule): start the longest scenarios first and pass the lane count in
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
This commit is contained in:
1 parent
a2ab13a6e1
commit
ef840c8952
6 files changed
+123
-8
No files matched your search
@@ -110,9 +110,14 @@ issue.
|
||||
concurrency group of its own.** Runs may overlap on the runner's Docker daemon: every container
|
||||
is named and labelled by its run (`KAMINO_RUN_ID`). The job first removes labelled containers
|
||||
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), so no two
|
||||
scenarios may share a platform name. *Why:* a cancelled run is killed before it can remove its
|
||||
instances, and a younger container may belong to a run still going. *Held:* review; control:
|
||||
run overlap (`scripts/run_molecule_scenarios.sh`, `MOLECULE_LANES` at a time, 4 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; 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`.
|
||||
|
||||
Reference in new issue
Block a user