The image builds on the lock CI tested #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ceres/3-tested-lock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
rebar.lockis not in git, and the Containerfile resolved deps fromrebar.configalone: the image got whatever rebar3 resolved on the day of thebuild, while CI resolved separately. Nothing tied the release to the transitive
versions eunit and dialyzer ran against (macula-services/mcl-graph#3, found in
the review of macula-io/macula-ci-images#19 step 1b).
What changes
The tested-lock pattern, as mcl-rag#5 and mcl-mail#6 carry it (the
macula-realm#3 pattern):
Containerfile:COPY rebar.config rebar.lock ./with no glob, thencp rebar.lock /tmp/tested.rebar.lock && rebar3 get-deps && cmp rebar.lock /tmp/tested.rebar.lock. rebar3 has no--check-lockedand rewrites a lock itdisagrees with, so the compare is the refusal. A new
signer-lockstageexports that same lock for the signer to hold against the
Dthe release tagnames.
lint-and-test.yml: thecheckjob hands the lock its tests ended on tothe caller as two outputs (base64 bytes and their sha256), and a new
lock-arrivesjob on forge pull requests proves the output crosses a jobboundary whole.
build-push.yml: a newhand-lockjob (forge, main push, after thetests) files it as
<commit>.<D>.rebar.lockon thetested-lockspre-release. No dependency code runs there and it is the only job with write
scope.
mcl_graph_release_files_tests:the_image_builds_on_the_lock_ci_tested_test/0holds the Containerfile's COPY, compare and signer-lock stage, and the two
workflows that must hand the lock on and file it. It fails by name on the
tree before this change.
Proof
Red first. The test alone, on the unfixed tree:
The other five tests in the suite pass on that same tree.
Green on this tree, in the CI builder image (msi00):
The Containerfile's two refusals, proven on msi00:
copier: stat: "/rebar.lock": no such file or directory.mcl_omentry removed):cmpreportsrebar.lock /tmp/tested.rebar.lock differ: byte 256, line 7.rebar3 get-depsin the CIimage succeeds:
rc=0 after 1232s,===> Release successfully assembled: _build/prod/rel/mcl_graph, the NIF atlib/mcl_graph-0.6.0/priv/mcl_graph_nif.so,Successfully tagged localhost/mcl-graph-lockproof:tested(1cb0ba845b70). The lock was 1867bytes,
sha256 db5ab4f2….CI on this PR's tip is the lint-and-test run (its
checkandlock-arrives)plus c4-model.
Consequences the reviewer should weigh
hand-lockneedstestto pass, and on the forge the calledcheckstillfails at its container pull for want of
secrets: inherit— that ismacula-services/mcl-graph#5, fixed by Pallas's in-flight PR 7. Until #5 lands,
a main push runs no
hand-lock; the first real proof of it is the first mainpush after #5.
build-and-pushbuilds this Containerfile from a checkout with norebar.lock, so it now fails at the COPY. That path is retired: GitHub isretired (the account is suspended) and the release path is host00's signer, as
the issue text says. Nothing here fetches a lock for GitHub. A release needs
the fleet target to carry
tested-lock=rebar.lock.uses:job that fails at expansion on the forge has taken neighbouring jobsdown in the same pass elsewhere (macula-portal's
attest). macula-graph#8 isthat shape for
attest; if so,hand-lockmay go down with it on a main push.Uranus is checking.
tested-lockspre-release has to exist on this repository once, as a landermade it for mcl-mail and mcl-rag.
r=2 fold — read this diff only
1a76facd(Juno's PR 13 = macula-services/mcl-graph#5 landed); main merged in. The two conflicts (CHANGELOG, theworkflow_callnote in lint-and-test.yml) keep both sides' text.attestjob is deleted from build-push.yml, the macula-portal#9 pattern: itswith:namesbuild-and-push's digest, that job is skipped on the forge, so Forgejo failsattestat expansion before its ownifis read — in the same scheduler pass that runshand-lock, so it would sink the lock filing on every push to main (issue #8 is the before). Header, guard and digest comments, the tag comment and the README's deployment paragraph now say signing returns with P6 on host00's signer; the localci-images-attest-image.ymlcopy stays for that return.the_image_is_signed_by_the_pinned_attest_workflow_test/0— the one test of 134 that failed runs 65 and 67 — andnothing_moves_latest_test's comment says P6 instead of attest. The assertions that still hold on build-push.yml have their own tests: the forge registry login, every action sha-pinned, the REVISION arg.1a76facd) and thetested-lockspre-release exists (id 1901).6d394616: lint-and-test 3125 success (check4m57s, thenlock-arrives), c4-model 3124 success. build-push does not run on a pull request, so its own effect here is the absence of anattesttask rather than a green one; the two reds on the same tree before the test removal (runs 65, 67) failed on exactly that test.