#4 PR 9: the image pins are tests (runtime agreement, digest-pinned pair, revision label) #26

Closed
mercurius wants to merge 0 commits from mercurius/4-pr9-image-pins into main
Member

Refs #4

Row group B's last three rows (twin mcl_bookclub_service_tests.erl :260, :274, :290).

  • a: the Containerfile builder and ci.yml assert OTP 28.4.3 (+ ML-DSA) and Elixir 1.18.4; a test compares them with .tool-versions and the VM.
  • b: the builder and runtime are a digest-pinned pair from one build day. The builder==CI half is deferred to #1.
  • c: ARG REVISION + an image.revision label; the release passes REVISION=${{ github.sha }}.

Red first: on main (a) and (c) fail. Six mutants, each killing exactly its own test.

Refs #4 Row group B's last three rows (twin mcl_bookclub_service_tests.erl :260, :274, :290). - a: the Containerfile builder and ci.yml assert OTP 28.4.3 (+ ML-DSA) and Elixir 1.18.4; a test compares them with .tool-versions and the VM. - b: the builder and runtime are a digest-pinned pair from one build day. The builder==CI half is deferred to #1. - c: ARG REVISION + an image.revision label; the release passes REVISION=${{ github.sha }}. Red first: on main (a) and (c) fail. Six mutants, each killing exactly its own test.
#4 PR 9: the image's pins are tests: runtime agreement, the digest-pinned pair, and the revision label
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
ci / guard-1 (pull_request) Successful in 3s
ci / guard (pull_request) Successful in 0s
wall tree / wall-tree-1 (pull_request) Successful in 4s
wall tree / wall-tree (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m2s
ci / Release (forge, v* tag) (pull_request) Has been skipped
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
ci / guard-1 (push) Successful in 7s
wall tree / wall-tree-1 (push) Successful in 7s
ci / guard (push) Successful in 0s
wall tree / wall-tree (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 9m31s
ci / Release (forge, v* tag) (push) Has been skipped
8c86a55e5a
Row group B's last three rows, the Erlang twin's mcl_bookclub_service_tests.erl
:260, :274 and :290 (Mars's ruling on #4: finish #4 as written).

- a. The runtime agrees. The Containerfile's builder stage and ci.yml's
  toolchain step each assert OTP 28.4.3 to the patch (with ML-DSA) and
  Elixir 1.18.4. The new image_pins_test.exs compares those with
  .tool-versions and the VM running the test.
- b. The builder and runtime images are pinned by tag AND digest from one
  ci-images build day, and a test now holds that. The twin's "builder ==
  CI image, digest for digest" half is DEFERRED to #1 (ci.yml runs the
  forge's build, the builder the ghcr one); the test says so.
- c. The runtime stage has ARG REVISION=unknown and
  LABEL org.opencontainers.image.revision="${REVISION}", and the release job
  passes REVISION=${{ github.sha }}. A test holds all three.

Red first: on main, (a) and (c) failed with "pins nothing matching". (b)
passes on main, since the pins already exist. Mutants: an OTP pin in the
Containerfile, an Elixir pin in ci.yml, a runner build day, a builder digest,
the REVISION build-arg and the label. Each fails exactly its own test.

Refs macula-services/mcl-bookclub-phoenix#4
Member

Landed by fast-forward: main is 8c86a55e5a (from 26eccd2a). This repository does not allow the manually-merged style, so the PR is closed by hand.

Landed by fast-forward: main is 8c86a55e5a0ac11387a47181151f604299cbbe33 (from 26eccd2a). This repository does not allow the manually-merged style, so the PR is closed by hand.
terra closed this pull request 2026-12-01 17:15:05 +00:00
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
ci / guard-1 (pull_request) Successful in 3s
ci / guard (pull_request) Successful in 0s
wall tree / wall-tree-1 (pull_request) Successful in 4s
wall tree / wall-tree (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m2s
ci / Release (forge, v* tag) (pull_request) Has been skipped
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
ci / guard-1 (push) Successful in 7s
wall tree / wall-tree-1 (push) Successful in 7s
ci / guard (push) Successful in 0s
wall tree / wall-tree (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 9m31s
ci / Release (forge, v* tag) (push) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-bookclub-phoenix!26
No description provided.