ci(molecule): rename the run script after the molecule-controller image
scripts/run_molecule_in_ci_image.sh runs inside the molecule-controller image, not the ci image, so its name pointed readers at the wrong image. Its test file and class follow, and every reference is updated. ADR 0003 keeps the old name: it records what that change touched. main's selector sees the old and the new path (it diffs with --no-renames) and neither is on IGNORED, so this pull request runs every scenario through the renamed script of its own checkout. Assisted-by: Claude Code
This commit is contained in:
1 parent
08c589e910
commit
3414880d05
7 files changed
+10
-10
No files matched your search
@@ -109,7 +109,7 @@ issue.
|
||||
(release versions, `build_ignore`) do not change what a scenario runs, and the Build check
|
||||
proves the collection builds; they had caused about a third of full pull request runs and their
|
||||
minutes (#338). *Held:* control: `scripts/check_scenarios_load_checkout.py`, which
|
||||
`run_molecule_in_ci_image.sh` runs on the selected scenarios before they start, fails the run
|
||||
`run_molecule_in_controller.sh` runs on the selected scenarios before they start, fails the run
|
||||
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else,
|
||||
or when `prerun` is not off once the base config is merged as molecule's CLI merges it (a
|
||||
scenario turns it on, or the base config is moved or turns it on).
|
||||
@@ -148,7 +148,7 @@ issue.
|
||||
`requirements-molecule.lock` selects every scenario; `requirements-dev.*` pins only Lint's tools
|
||||
and selects none. *Why:* a pull request that bumps ansible-core or molecule must run its
|
||||
scenarios on them before it automerges. *Held:* control: the pin comparison in
|
||||
`run_molecule_in_ci_image.sh`, and the selector's tests for which pin files select what.
|
||||
`run_molecule_in_controller.sh`, and the selector's tests for which pin files select what.
|
||||
- **Every scenario sets `scenario.test_sequence` to molecule's default minus both `destroy`
|
||||
steps, with a role scenario's `check` right before and right after `converge`, names each
|
||||
platform `${KAMINO_RUN_ID:-local}-<name>` and labels it
|
||||
|
||||
@@ -220,7 +220,7 @@ jobs:
|
||||
-v "$ac_root:$ac_root" -v "$ac_root/passwd:/etc/passwd:ro" -w "$PWD" \
|
||||
-e "AC_ROOT=$ac_root" -e "HOME=$ac_root/home" -e "USER=$(id -un)" \
|
||||
-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604 -e KAMINO_RUN_ID -e MOLECULE_LANES \
|
||||
"$CONTROLLER_IMAGE" scripts/run_molecule_in_ci_image.sh <<< "$SELECTED"
|
||||
"$CONTROLLER_IMAGE" scripts/run_molecule_in_controller.sh <<< "$SELECTED"
|
||||
|
||||
# A cancelled run can leave its containers running when the docker client is killed.
|
||||
- name: Remove this run's containers
|
||||
|
||||
Reference in new issue
Block a user