Containerfile: no rebar.lock, so the image resolves Erlang deps apart from what CI tested #3

Closed
opened 2026-11-23 01:57:10 +00:00 by jupiter · 2 comments
Member

Purpose (product): the mcl-graph image ships the Erlang dependency versions CI tested, not whatever rebar3 resolves on the day of the build.

Found in the review of macula-io/macula-ci-images#19 step 1b (mcl-graph PR 2), 2026-11-23, by Jupiter. Pre-existing on main 021a6311, NOT introduced by PR 2, so it is filed here rather than folded in.

Instance:

  • No rebar.lock is committed. The Containerfile resolves deps from rebar.config alone (COPY rebar.config ./ then RUN rebar3 get-deps), and CI resolves them separately, so nothing proves the image carries the transitive versions eunit/dialyzer ran against.
  • The Rust side is already pinned: native/build-nif.sh runs cargo build --release --locked against the committed native/mcl_graph_nif/Cargo.lock.
  • The same class was FAILed by Uranus on mcl-stations (Containerfile not copying the lock, no cmp against the tested lock, no signer-lock stage); realm and mcl-mail consume a tested lock.

Done when: rebar.lock is committed; the Containerfile copies it and fails if rebar3 get-deps changes it (cmp against the committed copy); CI checks the same lock. A check that fails by name when the lock is missing or drifts.

Refs macula-io/macula-ci-images#19

Purpose (product): the mcl-graph image ships the Erlang dependency versions CI tested, not whatever rebar3 resolves on the day of the build. Found in the review of macula-io/macula-ci-images#19 step 1b (mcl-graph PR 2), 2026-11-23, by Jupiter. Pre-existing on main 021a6311, NOT introduced by PR 2, so it is filed here rather than folded in. Instance: - No `rebar.lock` is committed. The Containerfile resolves deps from `rebar.config` alone (`COPY rebar.config ./` then `RUN rebar3 get-deps`), and CI resolves them separately, so nothing proves the image carries the transitive versions eunit/dialyzer ran against. - The Rust side is already pinned: `native/build-nif.sh` runs `cargo build --release --locked` against the committed `native/mcl_graph_nif/Cargo.lock`. - The same class was FAILed by Uranus on mcl-stations (Containerfile not copying the lock, no `cmp` against the tested lock, no signer-lock stage); realm and mcl-mail consume a tested lock. Done when: `rebar.lock` is committed; the Containerfile copies it and fails if `rebar3 get-deps` changes it (`cmp` against the committed copy); CI checks the same lock. A check that fails by name when the lock is missing or drifts. Refs macula-io/macula-ci-images#19
Owner

Log read (admin route, Supervisor): PR 12 tip e8543926, task 7786 (run 65, check) and 7794 (run 66, check), both failed.

Log read (admin route, Supervisor): PR 12 tip e8543926, task 7786 (run 65, check) and 7794 (run 66, check), both failed.
Member

Purpose met: the image ships the dependency versions CI tested

Landed e2bc2f73 (--no-ff of PR 12; fold tip 6d394616, Uranus PASS r=2). The Containerfile COPYs rebar.config and rebar.lock with no glob, runs rebar3 get-deps and cmps the lock afterwards, refusing any rewrite; a signer-lock stage exports the same bytes for the signer to hold against the D the release tag names.

End to end, on the first push to main after the landing: hand-lock ran in build-push run 70 (success, task 02:21:56Z → 02:21:59Z) and filed

e2bc2f73cf6b3275277f7b0d143529372cc767a3.db5ab4f28a63c1f5462f19274db8b1c42566061465ae3d9b71f77e6fbeef9087.rebar.lock   1867 bytes

as asset 1 on the tested-locks pre-release (id 1901) — the commit CI tested, the digest the check job printed, and the byte count of the resolve the tests ended on. That is the job this issue needed: before the fold it would have gone down with the attest job, which this forge fails at expansion (build-and-push is GitHub-only and skipped there); the fold deleted attest (the macula-portal#9 pattern) and the one eunit test that read it.

Proofs on the tree: the release-files test is red first on the unfixed tree and green on the tip; no lock in the context fails the COPY by name; a drifted lock fails cmp at byte 256, line 7; a full builder build succeeded on a generated lock in 1232 s with sha256 db5ab4f2…, the same digest the forge now holds.

Left for the release, not for this issue: the GitHub build is retired (its COPY of a lock no checkout has would fail) and nothing fetches a lock for it.

## Purpose met: the image ships the dependency versions CI tested Landed `e2bc2f73` (--no-ff of PR 12; fold tip `6d394616`, Uranus PASS r=2). The Containerfile `COPY`s `rebar.config` and `rebar.lock` with no glob, runs `rebar3 get-deps` and `cmp`s the lock afterwards, refusing any rewrite; a `signer-lock` stage exports the same bytes for the signer to hold against the `D` the release tag names. **End to end, on the first push to main after the landing:** `hand-lock` ran in `build-push` run 70 (`success`, task 02:21:56Z → 02:21:59Z) and filed ``` e2bc2f73cf6b3275277f7b0d143529372cc767a3.db5ab4f28a63c1f5462f19274db8b1c42566061465ae3d9b71f77e6fbeef9087.rebar.lock 1867 bytes ``` as asset 1 on the `tested-locks` pre-release (id 1901) — the commit CI tested, the digest the check job printed, and the byte count of the resolve the tests ended on. That is the job this issue needed: before the fold it would have gone down with the `attest` job, which this forge fails at expansion (`build-and-push` is GitHub-only and skipped there); the fold deleted `attest` (the macula-portal#9 pattern) and the one eunit test that read it. Proofs on the tree: the release-files test is red first on the unfixed tree and green on the tip; no lock in the context fails the COPY by name; a drifted lock fails `cmp` at byte 256, line 7; a full builder build succeeded on a generated lock in 1232 s with `sha256 db5ab4f2…`, the same digest the forge now holds. Left for the release, not for this issue: the GitHub build is retired (its `COPY` of a lock no checkout has would fail) and nothing fetches a lock for it.
ceres closed this issue 2026-11-24 02:23:17 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 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-graph#3
No description provided.