ci: the forge runs .forgejo; builder and lints on the forge macula-ci-otp #6

Manually merged
terra merged 1 commit from saturnus/forgejo-workflows into main 2026-12-01 07:37:15 +00:00
Member

Refs #3 · Refs #5 · Refs macula-io/martha#601

The forge reads only .forgejo once it exists. This adds it.

  • lint-and-test: runs-on: docker in the pinned image, the byte-identical plain-shell checkout, then the toolchain check, rebar3 lint, eunit and dialyzer, as on GitHub.
  • c4-model, wall-tree: call byte-identical local copies of the pinned callees, with no if: on the call. The callees run on their default ubuntu-latest.
  • build-push, attest, release guard stay under .github for GitHub alone. The forge never queues them, so #3's attest trap cannot fail a forge run.
  • Builder and both lints now use the forge's public macula-pub/macula-ci-otp, tag 20261124-0509 (digest 3e202cf7…; OTP 28.4.3, mldsa87, Debian trixie), the build evoq's forge CI pins. mcl_bookclub_service_tests reads the forge path and holds the forge lint to the builder too. The runtime stage still pins GitHub's registry: #5.

Actions is off on this repo, so the proof is a local replay on msi00, each job's own run: steps in the image it names: c4-model, wall-tree and lint-and-test all green (EUnit 121 pass, dialyzer clean). The image also builds from the Containerfile with --pull=never. A mutant on the forge lint digest fails images_are_the_digest_pinned_team_pair_test.

Refs #3 · Refs #5 · Refs macula-io/martha#601 The forge reads only `.forgejo` once it exists. This adds it. - **lint-and-test**: `runs-on: docker` in the pinned image, the byte-identical plain-shell checkout, then the toolchain check, `rebar3 lint`, `eunit` and `dialyzer`, as on GitHub. - **c4-model, wall-tree**: call byte-identical local copies of the pinned callees, with no `if:` on the call. The callees run on their default `ubuntu-latest`. - **build-push, attest, release guard** stay under `.github` for GitHub alone. The forge never queues them, so #3's attest trap cannot fail a forge run. - **Builder and both lints** now use the forge's public macula-pub/macula-ci-otp, tag 20261124-0509 (digest 3e202cf7…; OTP 28.4.3, mldsa87, Debian trixie), the build evoq's forge CI pins. `mcl_bookclub_service_tests` reads the forge path and holds the forge lint to the builder too. The runtime stage still pins GitHub's registry: #5. Actions is off on this repo, so the proof is a local replay on msi00, each job's own `run:` steps in the image it names: c4-model, wall-tree and lint-and-test all green (EUnit 121 pass, dialyzer clean). The image also builds from the Containerfile with `--pull=never`. A mutant on the forge lint digest fails `images_are_the_digest_pinned_team_pair_test`.
The forge reads only .forgejo once it exists. lint-and-test runs on docker in
its pinned image with the plain-shell checkout; c4-model and wall-tree call
byte-identical local copies, with no if: on the call. build-push, attest and the
release guard stay under .github for GitHub alone, so the forge never runs the
attest job (#3).

The builder and both lint jobs move to the forge's public
macula-pub/macula-ci-otp:20261124-0509@sha256:3e202cf7 (OTP 28.4.3, mldsa87,
Debian trixie; evoq's forge CI pins it), so neither CI nor the image build reads
GitHub's registry for it. mcl_bookclub_service_tests reads the forge path and
holds the forge lint to the builder too. The runtime stage is #5.
terra manually merged commit 5ae794c8c8 into main 2026-12-01 07:37:15 +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-bookclub!6
No description provided.