ci: lint-and-test, docs and publish-hex run on the forge #4

Closed
mercurius wants to merge 0 commits from mercurius/3-forge-ci into main
Member

Purpose (ci): evoq's lint-and-test, docs and publish-hex workflows run on the forge, so the evoq_command_handler release (1.31.0) can be tagged and published from here. Raf said yes, relayed by the Supervisor.

Refs #3

What changes

  • The three workflows move to .forgejo/workflows/ (git mv; no .github copies). Once .forgejo exists, the forge reads only that directory.
  • Every job runs on runs-on: docker in git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7…, the pin mcl-om and mcl-mail use. Checkouts are mcl-mail's plain-shell checkout, byte for byte. The OTP check is evoq's own scripts/is_erlang_the_pinned_version.sh against .tool-versions.
  • docs.yml's snippet check is copied byte for byte from macula-ci-images doc-snippets-erlang.yml at 711cfee. ci-images-release-guard.yml is reckon-db's byte-for-byte copy of release-guard 2660ee4c.
  • publish-hex.yml is NEW CODE, not a copy. No hex library publishes from the forge yet: macula, mcl-om and reckon-db are all still GitHub-gated. The plain-shell release-tag checkout, the token for is_checkout_publishable.sh, and dropping environment: hex-publish need a full review.
  • The header notes that a repository secret is readable from any branch, accepted for a private crew-only repo (Supervisor ruling).
  • scripts/publish-to-hex.sh now names the forge workflow path. .github/actionlint.yaml declares docker.

Checks

  • actionlint -config-file .github/actionlint.yaml .forgejo/workflows/*.yml: 0 findings.
  • No CI: Actions are off on evoq, and the GO comes after review.
  • Not yet proven, owed to the first forge run:
    • the image has curl and tar;
    • rebar3 ex_doc and rebar3 hex build work in it;
    • the image's rebar3 is close to the old 3.27.0 pin;
    • Forgejo accepts nested local reusable calls from .forgejo.
  • publish waits for HEX_API_KEY, which the Supervisor is asking Raf for. Without it, publish stops at its key check.
Purpose (ci): evoq's lint-and-test, docs and publish-hex workflows run on the forge, so the evoq_command_handler release (1.31.0) can be tagged and published from here. Raf said yes, relayed by the Supervisor. Refs #3 ## What changes - The three workflows move to `.forgejo/workflows/` (`git mv`; no `.github` copies). Once `.forgejo` exists, the forge reads only that directory. - Every job runs on `runs-on: docker` in `git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7…`, the pin mcl-om and mcl-mail use. Checkouts are mcl-mail's plain-shell checkout, byte for byte. The OTP check is evoq's own `scripts/is_erlang_the_pinned_version.sh` against `.tool-versions`. - `docs.yml`'s snippet check is copied byte for byte from macula-ci-images doc-snippets-erlang.yml at 711cfee. `ci-images-release-guard.yml` is reckon-db's byte-for-byte copy of release-guard 2660ee4c. - **`publish-hex.yml` is NEW CODE, not a copy.** No hex library publishes from the forge yet: macula, mcl-om and reckon-db are all still GitHub-gated. The plain-shell release-tag checkout, the token for `is_checkout_publishable.sh`, and dropping `environment: hex-publish` need a full review. - The header notes that a repository secret is readable from any branch, accepted for a private crew-only repo (Supervisor ruling). - `scripts/publish-to-hex.sh` now names the forge workflow path. `.github/actionlint.yaml` declares `docker`. ## Checks - `actionlint -config-file .github/actionlint.yaml .forgejo/workflows/*.yml`: 0 findings. - No CI: Actions are off on evoq, and the GO comes after review. - Not yet proven, owed to the first forge run: - the image has curl and tar; - `rebar3 ex_doc` and `rebar3 hex build` work in it; - the image's rebar3 is close to the old 3.27.0 pin; - Forgejo accepts nested local reusable calls from `.forgejo`. - `publish` waits for HEX_API_KEY, which the Supervisor is asking Raf for. Without it, `publish` stops at its key check.
lint-and-test, docs and publish-hex move to .forgejo/workflows (the forge
reads only .forgejo once it exists) and take macula-services/mcl-mail's
lint.yml shape: the `docker' runner label, macula-ci-otp by digest
(sha256:3e202cf7..., as mcl-om pins it from macula-pub), a plain-shell
checkout, and scripts/is_erlang_the_pinned_version.sh where setup-beam's
strict OTP pin stood. The actions/cache step goes: the image has no node.

docs writes out the macula-ci-images doc-snippets-erlang check at the sha it
was pinned to, its script step byte for byte. The release guard is called as
reckon-db's byte-for-byte stand-in copy. publish runs on the forge too, with
HEX_API_KEY as a repository secret, since the forge has no environments.

.github/actionlint.yaml is mcl-mail's, declaring the `docker' label.

Refs reckon-db-org/evoq#3
ci: the release script names the forge workflow; the secret's reach is a note
All checks were successful
docs / doc snippets (erlang) (push) Successful in 13s
lint-and-test / lint + eunit + ct + proper + dialyzer (OTP 28.4.3) (push) Successful in 6m53s
de01eb0fc2
scripts/publish-to-hex.sh still named .github/workflows/publish-hex.yml.
publish-hex.yml's header now says a repository secret is readable from any
branch, accepted for a private crew-only repository (Supervisor ruling).

Refs reckon-db-org/evoq#3
Member

Landed by fast-forward: main is de01eb0fc2, this PR's head (PASS r=1 Uranus, CI 6099). The forge shows it closed rather than merged: this repository does not allow the manually-merged style (405), and a fast-forward-only merge of a head main already holds answers 'try again later'.

Landed by fast-forward: main is de01eb0fc2ca75b076de8380717ef1b15b7fdd22, this PR's head (PASS r=1 Uranus, CI 6099). The forge shows it closed rather than merged: this repository does not allow the manually-merged style (405), and a fast-forward-only merge of a head main already holds answers 'try again later'.
terra closed this pull request 2026-12-01 05:10:41 +00:00
All checks were successful
docs / doc snippets (erlang) (push) Successful in 13s
lint-and-test / lint + eunit + ct + proper + dialyzer (OTP 28.4.3) (push) Successful in 6m53s

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
reckon-db-org/evoq!4
No description provided.