diff --git a/docs/adr/0002-self-built-ci-and-molecule-images.md b/docs/adr/0002-self-built-ci-and-molecule-images.md index f208c4a..3e58423 100644 --- a/docs/adr/0002-self-built-ci-and-molecule-images.md +++ b/docs/adr/0002-self-built-ci-and-molecule-images.md @@ -12,6 +12,7 @@ and pin updates. The choice is hard to undo once every workflow pins an image. - **We build our own images:** a `ci` image, and one Dockerfile per molecule image (one per Ubuntu release, and later the Debian 13 one). + Molecule's controller image is added by [ADR 0003](0003-molecule-controller-image.md). - **The molecule images bake in everything except what a role installs itself.** The test fixtures a scenario's `prepare.yml` needs are baked in. Packages a role installs are still downloaded, because that install path is what the test exercises. A converge is not kept off diff --git a/docs/adr/0003-molecule-controller-image.md b/docs/adr/0003-molecule-controller-image.md index 47c451b..dc39877 100644 --- a/docs/adr/0003-molecule-controller-image.md +++ b/docs/adr/0003-molecule-controller-image.md @@ -8,8 +8,8 @@ Status: accepted tool, and Lint, Build and Molecule all pin it. A change to a tool only Lint uses (apm-cli, antsibull-changelog, a pre-commit hook environment) publishes a new `ci` version, and its pin pull request moves `CI_IMAGE` in `molecule.yml`. The scenario selector cannot tell what changed -inside an image, so it runs every scenario. About half of the `ci` pin pull requests were -Lint-only. Images are built only on push to `main`, so a bump and its pin never share a pull +inside an image, so it runs every scenario. 9 of 18 `ci` pin pull requests over two weeks +were Lint-only. Images are built only on push to `main`, so a bump and its pin never share a pull request. ## Decision @@ -39,7 +39,8 @@ bump of ansible-core or molecule there runs every scenario before it merges. Tod `requirements-dev.txt` and `requirements-dev.lock` are on IGNORED, so such a bump selects no scenario unless it edits `meta/runtime.yml`; this decision does not change that list. -The implementation updates: `image.yml` (matrix), `molecule.yml`, +The implementation updates: `image.yml` (matrix, and its push `paths` unless the new files live +under `images/`), `molecule.yml`, `scripts/run_molecule_in_ci_image.sh` (its pin comparison reads the `ci` image's checksums), `scripts/check_image_versions.py`, `scripts/check_bot_pr_diff.py` and `scripts/lock-requirements.sh` (they know only `requirements-dev.lock`), their tests, the