ci(molecule): run two scenarios at a time by default #471
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user