docs(adr): date each measurement and give the recorded Dockerfile reason
Assisted-by: Claude Code
This commit is contained in:
1 parent
288cea47a9
commit
2b1301d838
2 files changed
+14
-15
No files matched your search
+7
-6
@@ -113,11 +113,12 @@ reduction. A later decision that accepts a risk adds an entry here.
|
||||
### Pin bumps first behaviour-tested after they merge
|
||||
|
||||
- **Risk:** Lint, Build and Molecule install a pull request's pins when they differ from the
|
||||
image, so an image-input pull request is tested on its own pins. But a pin bump that selects
|
||||
no Molecule scenario (every Python pin except an ansible-core minor bump, which edits
|
||||
`meta/runtime.yml`) is first behaviour-tested by the `ci` pin pull request, after it has
|
||||
merged.
|
||||
- **Why accepted:** the `ci` pin pull request runs every scenario before the new image is used,
|
||||
image, so a pull request that changes an image input is tested on its own pins. But most pin
|
||||
bumps select no Molecule scenario: every Python pin except an ansible-core minor bump, which
|
||||
edits `meta/runtime.yml`. Such a bump is first behaviour-tested after it has merged, by the
|
||||
pull request that moves the workflows to the new `ci` image.
|
||||
- **Why accepted:** that pull request runs every scenario before the new image is used,
|
||||
and running every scenario on every Python pin bump would cost about 10 minutes each.
|
||||
- **Trigger:** a `ci` pin pull request fails Molecule because of a bumped pin.
|
||||
- **Trigger:** the pull request that moves the workflows to a new `ci` image fails Molecule
|
||||
because of a bumped pin.
|
||||
- **Planned reduction:** none for now.
|
||||
@@ -4,10 +4,9 @@ Status: accepted
|
||||
|
||||
## Context
|
||||
|
||||
Every CI job runs on one shared runner. Installing the toolchain in each job is simple but slow:
|
||||
Lint took about 82s and Build about 50s that way. Building our own images is faster but adds
|
||||
machinery: Dockerfiles, an image build, version tags and pin updates. The choice is hard to undo
|
||||
once every workflow pins an image.
|
||||
Every CI job runs on one shared runner. Installing the toolchain in each job is simple but slow.
|
||||
Building our own images is faster but adds machinery: Dockerfiles, an image build, version tags
|
||||
and pin updates. The choice is hard to undo once every workflow pins an image.
|
||||
|
||||
## Decision
|
||||
|
||||
@@ -28,9 +27,8 @@ once every workflow pins an image.
|
||||
|
||||
We chose speed over simplicity, and the measured saving shows the trade:
|
||||
|
||||
- Lint takes about 33s with the image instead of about 82s, and Build about 13s instead of about
|
||||
50s (measured 3 to 17 November 2026; an earlier measurement gave 15–25s for Lint and 10–25s for
|
||||
Build).
|
||||
- With everything installed per run, Lint took about 82s and Build about 50s (24–25 October
|
||||
2026). With the image, Lint takes about 33s and Build about 13s (3 to 17 November 2026).
|
||||
- The cost: a `ci` image build takes about 4 minutes on the shared runner, and each new version
|
||||
also costs a pin pull request's CI. `ci` went from 0.1.0 to 0.2.23 in three weeks, with 9
|
||||
versions on 14–15 November.
|
||||
@@ -47,5 +45,5 @@ no Molecule run after a merge, and pin bumps that are first behaviour-tested aft
|
||||
## Not done
|
||||
|
||||
- **One molecule Dockerfile with a release build argument:** it would need a matrix argument, a
|
||||
Renovate regex manager for two digests and a pins check that reads build arguments. It would
|
||||
save one file that review keeps in step anyway.
|
||||
Renovate regex manager for two digests and a pins check that reads build arguments, and the
|
||||
Debian 13 image differs by more than a release tag anyway. Review keeps the files in step.
|
||||
Reference in new issue
Block a user