docs(adr): record self-built CI and molecule images, versioned by CI, pinned by version and digest #167
Notifications
Due Date
No due date set.
Depends on
#143 docs(adr): record the threat model as ADR 0001
Mortis/Kamino
Reference: Mortis/Kamino#167
Reference in new issue
Block a user
Spec: CI image pipeline: keep, simplify or replace, resolution section 8; Molecule and Renovate on the shared runner: isolation, capacity and cost; What Molecule proves before a merge, and who acts on the nightly run. ADR rules: Public design contract replacing the ADR 0004 references.
What
One ADR in
docs/adr/. Take the next free number when the pull request is opened, and renumber on rebase if another ADR merged first (the threat-model ADR and docs(adr): record releases by generated pull request and the release bot as the only automated tag credential are also open).ciimage and one Dockerfile per molecule image (one per Ubuntu release, and later the Debian 13 one);prepare.ymlneeds are baked in, and packages a role installs are still downloaded, because that install path is what the test exercises. A converge is not kept off the network;<version>@sha256:<digest>;main; the runner capacity is raised separately.ciwent 0.1.0 to 0.2.23 in three weeks, 9 versions on Nov 14–15, each costing an image build on the shared runner plus a pin pull request's CI), or say they were not measured.maingets the tree its pull request tested; the nightly run catches drift outside the tree (mirrors, images) and a selection mistake. The nightly is also the only run of scenarios a pull request's diff did not select.meta/runtime.yml) is first behaviour-tested by thecipin pull request, after it has merged.Status
acceptedon the maintainer's approval of the pull request, one screen at most, no infrastructure detail.Review of the map (2026-11-15): corrections to this issue.
prepare.ymlinstalls are baked in. Packages the role itself installs stay runtime downloads: that install path is what the test exercises." A converge still downloads the role's packages. Change the "Why" line to: "test fixtures are baked into the molecule images; packages a role installs are still downloaded, because that install path is what the test exercises".ciwent "0.1.0 → 0.2.23 in three weeks (9 versions on Nov 14–15)", and each version costs an image build on the shared runner plus the pin pull request's CI. No build time is recorded, so "it still pays" cannot be checked. Change: state the build time and the build frequency next to the per-run saving, or say they were not measured.Waiting on another decision: whether the molecule images keep their preinstalled role packages, and the runner capacity behind the speed numbers, wait on Molecule and Renovate on the shared runner: isolation, capacity and cost. The ADR wording in the first item should follow that decision if it changes the rule.
Corrections from Molecule and Renovate on the shared runner: isolation, capacity and cost:
main. Runs are isolated per run (per-run container names and labels), and the runner capacity is raised separately.maingets the tree its pull request tested; the nightly run catches drift outside the tree (mirrors, images)."Review of the map (2026-11-17).
Scope change from What Molecule proves before a merge, and who acts on the nightly run (2026-11-20)
Residual-risk line, narrowed. Lint, Build and Molecule each install the pull request's pins when they differ from the image, so an image-input pull request is tested on its own pins. What remains: a pin bump that selects no Molecule scenario (every Python pin except a core minor bump, which edits
meta/runtime.yml) is first behaviour-tested by thecipin pull request, after it has merged.Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, #87 (comment)). The body is the spec; the earlier comments are history.
main, the cost side of the saving, next-free ADR number) and states acceptance as the maintainer's approval of the pull request.SECURITY.mdregister.