CI: reckon-db's workflows run on the forge (.forgejo port, as evoq) #5

Closed
opened 2026-12-02 06:32:18 +00:00 by neptunus · 1 comment
Member

Purpose (fix): reckon-db's checks and its hex release run on the forge, so a change can land on a named, green run. Today PR 3 (#2) cannot land: Actions is off here, and its workflows are GitHub-shaped.

Refs #2, martha-ai/mcl-martha#1, macula-io/martha#601. The model is reckon-db-org/evoq's port (8245b96, de01eb0, 13232d0).

Ruling (Supervisor, relayed by Mars 2026-12-02; Raf may overrule)

  • Port the workflows to .forgejo/workflows, modelled on evoq.
  • Actions stays OFF until the Supervisor gives the GO after the reviewer's PASS. The GO turns Actions on, the port gets a real run, and it lands first.
  • From the GO until the port lands, nothing but the port branch is pushed to this repository.
  • After the port lands, main is merged into PR 3, which then gets its own run.

What moves

The forge reads only .forgejo once it exists, so all three workflows move there with git mv, keeping their history.

  • lint-and-test.yml:
    • Runs on the docker runner label (the forge's ubuntu-latest is a node image with no Erlang), in macula-pub/macula-ci-otp pinned by evoq's digest. That image carries OTP 28.4.3, rebar3 3.27.0 and Rust 1.98.1 with rustup.
    • Uses the byte-identical plain-shell checkout, then scripts/is_erlang_the_pinned_version.sh in place of setup-beam's strict pin.
    • Drops the steps that use a JavaScript action (actions/cache, Swatinem/rust-cache), because the image has no node.
    • Keeps every gate: the cargo-target-dir check, compile, the NIFs-built check, xref, lint, eunit, ct, proper and dialyzer. The clippy job runs in the same image.
  • publish-hex.yml: evoq's forge shape.
    • The checkouts are plain-shell.
    • The reusable calls are local only (./.forgejo/...) and carry no if:; this is evoq's 1.31.1 fix, after a call with an if: was skipped.
    • reckon-db's own NIF step stays (does_package_carry_the_nifs.sh).
    • publish now runs on the forge, not only on GitHub.
  • ci-images-release-guard.yml: moved unchanged. It is a pinned stand-in, byte for byte, and evoq calls the same copy.
  • .github/actionlint.yaml: evoq's, declaring the docker label.
  • scripts/publish-to-hex.sh: names the .forgejo path.

Threat model

  • Asset: hex.pm publish rights (HEX_API_KEY) and the integrity of what CI says is green.
  • The secret: on the forge there is no deployment environment, so HEX_API_KEY becomes a repository secret. It is set by the owner, not by this change; until it is set, publish stops at its key check. Unlike evoq, reckon-db is public.
    • A pull request from a fork gets no secrets on Forgejo.
    • Only members with write access can push a branch here, and the crew is trusted.
    • So an outside attacker cannot reach the key through a workflow. This is a note, not a new guard.
  • The checkout: the plain-shell checkout puts the run token only in the environment (http.extraHeader), never in a URL or on a command line, and refuses any commit but the run's own.
  • Out of scope: turning Actions on, and setting the secret. Both are the Supervisor's and owner's steps after the PASS.

Done when

  1. .forgejo/workflows/ holds lint-and-test.yml, publish-hex.yml and ci-images-release-guard.yml, and .github/workflows/ is gone. actionlint passes, with docker declared.
  2. lint-and-test runs every gate of the old job (cargo target dir, compile, NIFs built, xref, lint, eunit, ct, proper, dialyzer) and clippy on all five crates, in the pinned image, and uses no JavaScript action.
  3. publish-hex keeps reckon-db's package-carries-the-NIFs check. Its reusable calls are local and carry no if:. publish runs only for a pushed v*.*.* tag.
  4. The release guard is byte for byte the pinned copy (checked with the command in its header).
  5. After the GO: a real run of lint-and-test on the port's tip is green and named in the HANDOFF update.
Purpose (fix): reckon-db's checks and its hex release run on the forge, so a change can land on a named, green run. Today PR 3 (#2) cannot land: Actions is off here, and its workflows are GitHub-shaped. Refs #2, martha-ai/mcl-martha#1, macula-io/martha#601. The model is reckon-db-org/evoq's port (8245b96, de01eb0, 13232d0). ## Ruling (Supervisor, relayed by Mars 2026-12-02; Raf may overrule) - Port the workflows to `.forgejo/workflows`, modelled on evoq. - Actions stays OFF until the Supervisor gives the GO after the reviewer's PASS. The GO turns Actions on, the port gets a real run, and it lands first. - From the GO until the port lands, nothing but the port branch is pushed to this repository. - After the port lands, main is merged into PR 3, which then gets its own run. ## What moves The forge reads only `.forgejo` once it exists, so all three workflows move there with `git mv`, keeping their history. - **`lint-and-test.yml`**: - Runs on the `docker` runner label (the forge's `ubuntu-latest` is a node image with no Erlang), in `macula-pub/macula-ci-otp` pinned by evoq's digest. That image carries OTP 28.4.3, rebar3 3.27.0 and Rust 1.98.1 with rustup. - Uses the byte-identical plain-shell checkout, then `scripts/is_erlang_the_pinned_version.sh` in place of setup-beam's strict pin. - Drops the steps that use a JavaScript action (`actions/cache`, `Swatinem/rust-cache`), because the image has no node. - Keeps every gate: the cargo-target-dir check, compile, the NIFs-built check, xref, lint, eunit, ct, proper and dialyzer. The clippy job runs in the same image. - **`publish-hex.yml`**: evoq's forge shape. - The checkouts are plain-shell. - The reusable calls are local only (`./.forgejo/...`) and carry no `if:`; this is evoq's 1.31.1 fix, after a call with an `if:` was skipped. - reckon-db's own NIF step stays (`does_package_carry_the_nifs.sh`). - `publish` now runs on the forge, not only on GitHub. - **`ci-images-release-guard.yml`**: moved unchanged. It is a pinned stand-in, byte for byte, and evoq calls the same copy. - **`.github/actionlint.yaml`**: evoq's, declaring the `docker` label. - **`scripts/publish-to-hex.sh`**: names the `.forgejo` path. ## Threat model - **Asset:** hex.pm publish rights (`HEX_API_KEY`) and the integrity of what CI says is green. - **The secret:** on the forge there is no deployment environment, so `HEX_API_KEY` becomes a repository secret. It is set by the owner, not by this change; until it is set, `publish` stops at its key check. Unlike evoq, **reckon-db is public**. - A pull request from a fork gets no secrets on Forgejo. - Only members with write access can push a branch here, and the crew is trusted. - So an outside attacker cannot reach the key through a workflow. This is a note, not a new guard. - **The checkout:** the plain-shell checkout puts the run token only in the environment (`http.extraHeader`), never in a URL or on a command line, and refuses any commit but the run's own. - **Out of scope:** turning Actions on, and setting the secret. Both are the Supervisor's and owner's steps after the PASS. ## Done when 1. `.forgejo/workflows/` holds `lint-and-test.yml`, `publish-hex.yml` and `ci-images-release-guard.yml`, and `.github/workflows/` is gone. `actionlint` passes, with `docker` declared. 2. lint-and-test runs every gate of the old job (cargo target dir, compile, NIFs built, xref, lint, eunit, ct, proper, dialyzer) and clippy on all five crates, in the pinned image, and uses no JavaScript action. 3. publish-hex keeps reckon-db's package-carries-the-NIFs check. Its reusable calls are local and carry no `if:`. `publish` runs only for a pushed `v*.*.*` tag. 4. The release guard is byte for byte the pinned copy (checked with the command in its header). 5. After the GO: a real run of lint-and-test on the port's tip is green and named in the HANDOFF update.
Author
Member

Landed: main = af75fd49 (fast-forward from 51aa128e, PR 6, by Terra). Done-when, checked against main:

  1. .forgejo/workflows/ holds lint-and-test.yml, publish-hex.yml and ci-images-release-guard.yml, and .github/workflows/ is gone (0 files on main). actionlint passed in review (Jupiter PASS r=1).
  2. lint-and-test runs every gate of the old job in the pinned ci-otp image (OTP 28) plus clippy, with no JavaScript action. Reviewed in PR 6.
  3. publish-hex keeps the package-carries-the-NIFs check, its reusable calls are local with no if:, and publish runs only on a pushed v*.. tag. Reviewed in PR 6. The first real publish still waits on the HEX_API_KEY repo secret.
  4. The release guard is byte-identical to the pinned copy (header command, checked in build and review).
  5. After the GO, run 6569 on the port's tip af75fd49 was green (task 21133 lint-and-test, task 21134 clippy).

Note: since the land, twenty_writers_on_one_stream_keep_every_event has timed out on the forge runners. It is tracked as #7 and is not part of this port.

Landed: main = af75fd49 (fast-forward from 51aa128e, PR 6, by Terra). Done-when, checked against main: 1. `.forgejo/workflows/` holds lint-and-test.yml, publish-hex.yml and ci-images-release-guard.yml, and `.github/workflows/` is gone (0 files on main). actionlint passed in review (Jupiter PASS r=1). 2. lint-and-test runs every gate of the old job in the pinned ci-otp image (OTP 28) plus clippy, with no JavaScript action. Reviewed in PR 6. 3. publish-hex keeps the package-carries-the-NIFs check, its reusable calls are local with no `if:`, and publish runs only on a pushed v*.*.* tag. Reviewed in PR 6. The first real publish still waits on the HEX_API_KEY repo secret. 4. The release guard is byte-identical to the pinned copy (header command, checked in build and review). 5. After the GO, run 6569 on the port's tip af75fd49 was green (task 21133 lint-and-test, task 21134 clippy). Note: since the land, `twenty_writers_on_one_stream_keep_every_event` has timed out on the forge runners. It is tracked as #7 and is not part of this port.
Sign in to join this conversation.
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
reckon-db-org/reckon-db#5
No description provided.