Release path on the forge: the image is built on the tested rebar.lock (mcl-mail#6) #7

Manually merged
terra merged 0 commits from neptunus/6-release-path into main 2026-11-23 03:52:58 +00:00
Member

Refs #6 (release path), the macula-io/macula-realm#3 pattern for rebar3.

  • lint.yml: the check job hands the rebar.lock its tests ran on out as lock (base64) and digest (sha256 D), through workflow_call outputs too (proven on Forgejo 15: #6 comment 880). A new lock-arrives job (forge PRs only, read scope) fails unless the lock decodes to D in a separate job.
  • build-push.yml: a new hand-lock job (forge, push to main only, the only job with write scope, runs no dependency code) files <commit>.<D>.rebar.lock on the tested-locks pre-release. Byte for byte realm's step. build-and-push runs on the forge with every step guarded to GitHub, so attest skips by its own if (the red runs 931-944 and 2074 came from it being skipped whole).
  • Containerfile: COPY rebar.config rebar.lock with no glob, then get-deps + cmp against the handed lock; a signer-lock stage.

Red/green on msi00 (--target signer-lock, as the signer builds): main builds with no lock, a lock missing an entry, and a lock with a wrong pkg_hash; this branch refuses all three and exports the tested lock byte-identical. rebar3 rewrote the wrong hash silently, so cmp is the refusal.

Before the first main push relies on it, a lander creates the published pre-release tested-locks once. The host00 signer's tested-lock support (the fleet side) is a separate package.

Refs #6 (release path), the macula-io/macula-realm#3 pattern for rebar3. - **lint.yml**: the check job hands the rebar.lock its tests ran on out as `lock` (base64) and `digest` (sha256 D), through `workflow_call` outputs too (proven on Forgejo 15: #6 comment 880). A new `lock-arrives` job (forge PRs only, read scope) fails unless the lock decodes to D in a separate job. - **build-push.yml**: a new `hand-lock` job (forge, push to main only, the only job with write scope, runs no dependency code) files `<commit>.<D>.rebar.lock` on the `tested-locks` pre-release. Byte for byte realm's step. `build-and-push` runs on the forge with every step guarded to GitHub, so attest skips by its own `if` (the red runs 931-944 and 2074 came from it being skipped whole). - **Containerfile**: `COPY rebar.config rebar.lock` with no glob, then `get-deps` + `cmp` against the handed lock; a `signer-lock` stage. Red/green on msi00 (`--target signer-lock`, as the signer builds): main builds with no lock, a lock missing an entry, and a lock with a wrong pkg_hash; this branch refuses all three and exports the tested lock byte-identical. rebar3 rewrote the wrong hash silently, so `cmp` is the refusal. Before the first main push relies on it, a lander creates the published pre-release `tested-locks` once. The host00 signer's tested-lock support (the fleet side) is a separate package.
Release path on the forge: the image is built on the tested rebar.lock, filed for host00's signer (mcl-mail#6)
Some checks failed
c4 model / c4-model-1 (pull_request) Failing after 4s
c4 model / c4-model (pull_request) Failing after 0s
lint-and-test / check (pull_request) Successful in 3m59s
lint-and-test / The tested lock arrives whole (pull_request) Failing after 1s
106707808e
The macula-realm#3 pattern, for rebar3. No lock in git: lint.yml's check job hands the rebar.lock its tests ran on
out as two outputs (base64 + sha256 D), also through workflow_call outputs (proven on Forgejo 15, scratch run 2152).
build-push's new hand-lock job (forge, push to main only, the only job with write scope, no dependency code) files it
as <commit>.<D>.rebar.lock on the tested-locks pre-release, byte for byte realm's step. A new lock-arrives job proves
on every forge PR that the lock crosses jobs whole.

Containerfile: COPY rebar.config rebar.lock with no glob, then get-deps and cmp against the handed lock. rebar3 has
no --check-locked and silently rewrites a lock it disagrees with (a missing entry, a wrong pkg_hash: both measured),
so cmp is the refusal. A signer-lock stage exports the lock the release was built on.

build-and-push runs on the forge with every step guarded to GitHub, so its digest is empty and attest is skipped by
its own if; skipped whole, it made Forgejo fail attest (runs 931-944, 2074). Its runner label is the forge's docker.
ci: re-run after the macula-services pull account was set (mcl-mail#6; the forge API has no re-run)
Some checks failed
c4 model / c4-model-1 (pull_request) Failing after 2s
c4 model / c4-model (pull_request) Failing after 0s
lint-and-test / check (pull_request) Successful in 4m23s
lint-and-test / The tested lock arrives whole (pull_request) Successful in 18s
1c7f60ff45
terra manually merged commit 1c7f60ff45 into main 2026-11-23 03:52:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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-mail!7
No description provided.