ci(molecule): give the measured lane times as the reason for the default

Part of #432

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-28 23:26:10 +00:00
1 parent 40d5c49e33
commit dbcbf3b02d
1 file changed
+2 -2
+2 -2
View File
@@ -8,7 +8,7 @@
# scripts/run_molecule_scenarios.sh <work-dir> < scenario-dirs
set -euo pipefail
# 2: the runner is full at two; a full run took as long with 4 lanes, each scenario twice as slow.
# 2: a full run took 34 min at 2 lanes and 35 at 4, so more lanes only slow each scenario.
lanes="${MOLECULE_LANES:-2}"
if ! [[ "$lanes" =~ ^[1-9][0-9]*$ ]]; then
echo "MOLECULE_LANES must be a positive integer, not '$lanes'" >&2
@@ -79,7 +79,7 @@ while IFS= read -r dir; do
done
mkdir -p "$work"
# Seconds each scenario took in the last full run, so the longest start first and none started
# Seconds each scenario took in the last full run at the default lanes, so the longest start first and none started
# late sets the end of the run. Keyed by scenario directory, not label: refresh from a full run's
# `finished <label>: exit 0 after S s` lines, each label mapped back to its directory. A scenario
# missing here is assumed long and starts first.