Release on the forge: libmacula as a forge release, and every job on the forge runner #2

Open
opened 2026-11-24 02:42:51 +00:00 by pallas · 1 comment
Member

Purpose (port): macula-go's four workflows run on git.macula.io's own runner, and a v* tag publishes libmacula from git.macula.io — nothing left that needs GitHub.

Refs macula-io/forge-setup#30 (section 4, step 6, "the path change, plus the libmacula binaries as a forge release in place of gh release"). DECIDED 2026-11-24 "go.macula.io/macula-go (Recommended)" for the module path.

What comes across

All four files: ci.yml (gofmt, vet, structural floor, interop lint, test, fuzz, windows), libmacula.yml (linux-x64, linux-arm64, macos-arm64/x64, windows-x64), release.yml (libmacula, sealed-interop, tests, the release guard, the CHANGELOG section, publish) and sealed-interop.yml (macula from hex, the sealed leg, the groups leg).

The rulings php and rust were ported under apply here, unchanged:

  • forge-only: every job runs-on: docker, the forge's own image by digest with container.credentials (the org's read-only pull account), plain-shell checkout rather than actions/checkout@v4.
  • the ci-images reusables are local STAND-INs, byte for byte below a STAND-IN header, still running their gates: release-guard.yml, doc-snippets-go.yml, dependency-advisories.yml.
  • macOS, Windows and linux-arm64 stay guarded if: github.server_url == 'https://github.com' and are named open here rather than quietly dropped: no forge runner serves them.
  • a workflow_dispatch proof that stops one step before publishing.
  • no secret on argv: the token goes in a header file, as macula-realm's hand-lock does.
  • attestations are dropped (no forge equivalent).

Where libmacula is published on the forge

A release on macula-io/macula-go at the v* tag, through the forge's API: the four platform libraries (libmacula-linux-x64.so, libmacula-linux-arm64.so, macula-macos-arm64.dylib/x64.dylib, macula-windows-x64.dll), macula.h, SHA256SUMS, and the two interop logs the release already carries. gh release create/gh release upload go; cabi/CONTRACT.md is updated to say where the artifacts live.

Two stops before code (named by Mars)

  1. Anything that needs go.macula.io's DNS. The module path change (264 files in this repository) and the ?go-get=1 page need a DNS record and a static file — a menu line the Supervisor owns, not this package. Not written until the Supervisor says where the record goes.
  2. Anything that needs an anonymous public fetch. The macula-io org is private on the forge, and its packages and releases follow its visibility, so libmacula cannot be fetched anonymously from macula-io/macula-go's releases — which is what macula-php's composer build and any go get would do. Where the public artifact lives is Raf's question. What this package does either way is publish to the org's own release, which a consumer holding the pull credentials can already use.

Done when

  1. Every job in the four workflows is runs-on: docker on the forge's image by digest with the pull credentials; no job names a GitHub-hosted runner.
  2. macOS, Windows and linux-arm64 are guarded on github.server_url and named open here; a forge run skips them and says so.
  3. The three ci-images reusables are local stand-ins, byte for byte below a STAND-IN header, and their gates still run.
  4. A workflow_dispatch run on master does the checkout, the toolchain and a linux libmacula build, then stops before publishing: green, and its log shows the stop.
  5. actionlint is clean and .github/actionlint.yaml declares the docker label.
  6. On a v* tag the release is published on the forge and read back by API with all six files — this one waits for Actions to be on and for both stops above.
Purpose (port): macula-go's four workflows run on git.macula.io's own runner, and a `v*` tag publishes libmacula from git.macula.io — nothing left that needs GitHub. Refs macula-io/forge-setup#30 (section 4, step 6, "the path change, plus the libmacula binaries as a forge release in place of `gh release`"). DECIDED 2026-11-24 "go.macula.io/macula-go (Recommended)" for the module path. ## What comes across All four files: `ci.yml` (gofmt, vet, structural floor, interop lint, test, fuzz, windows), `libmacula.yml` (linux-x64, linux-arm64, macos-arm64/x64, windows-x64), `release.yml` (libmacula, sealed-interop, tests, the release guard, the CHANGELOG section, publish) and `sealed-interop.yml` (macula from hex, the sealed leg, the groups leg). The rulings php and rust were ported under apply here, unchanged: - forge-only: every job `runs-on: docker`, the forge's own image by digest with `container.credentials` (the org's read-only pull account), plain-shell checkout rather than `actions/checkout@v4`. - the ci-images reusables are local STAND-INs, byte for byte below a STAND-IN header, still running their gates: `release-guard.yml`, `doc-snippets-go.yml`, `dependency-advisories.yml`. - macOS, Windows and linux-arm64 stay guarded `if: github.server_url == 'https://github.com'` and are named open here rather than quietly dropped: no forge runner serves them. - a `workflow_dispatch` proof that stops one step before publishing. - no secret on argv: the token goes in a header file, as macula-realm's `hand-lock` does. - attestations are dropped (no forge equivalent). ## Where libmacula is published on the forge A release on `macula-io/macula-go` at the `v*` tag, through the forge's API: the four platform libraries (`libmacula-linux-x64.so`, `libmacula-linux-arm64.so`, `macula-macos-arm64.dylib`/`x64.dylib`, `macula-windows-x64.dll`), `macula.h`, `SHA256SUMS`, and the two interop logs the release already carries. `gh release create`/`gh release upload` go; `cabi/CONTRACT.md` is updated to say where the artifacts live. ## Two stops before code (named by Mars) 1. **Anything that needs `go.macula.io`'s DNS.** The module path change (264 files in this repository) and the `?go-get=1` page need a DNS record and a static file — a menu line the Supervisor owns, not this package. Not written until the Supervisor says where the record goes. 2. **Anything that needs an anonymous public fetch.** The `macula-io` org is private on the forge, and its packages and releases follow its visibility, so libmacula cannot be fetched anonymously from `macula-io/macula-go`'s releases — which is what macula-php's `composer build` and any `go get` would do. Where the public artifact lives is Raf's question. What this package does either way is publish to the org's own release, which a consumer holding the pull credentials can already use. ## Done when 1. Every job in the four workflows is `runs-on: docker` on the forge's image by digest with the pull credentials; no job names a GitHub-hosted runner. 2. macOS, Windows and linux-arm64 are guarded on `github.server_url` and named open here; a forge run skips them and says so. 3. The three ci-images reusables are local stand-ins, byte for byte below a STAND-IN header, and their gates still run. 4. A `workflow_dispatch` run on master does the checkout, the toolchain and a linux libmacula build, then stops before publishing: green, and its log shows the stop. 5. `actionlint` is clean and `.github/actionlint.yaml` declares the `docker` label. 6. On a `v*` tag the release is published on the forge and read back by API with all six files — this one waits for Actions to be on and for both stops above.
Author
Member

PR 3 is the port (pallas/2-forge-release, tip bf3c228). It builds everything that needs neither go.macula.io's DNS nor an anonymous fetch out of macula-io; the module-path sweep (264 files) waits for the DNS ruling, and the artifacts go to macula-sdk's generic package, which is the anonymous path.

Open points, named rather than skipped

  1. libmacula for linux-arm64, macOS and Windows is not built here. The forge has no arm64, macOS or Windows runner, so those legs keep their steps, are guarded if: github.server_url == 'https://github.com', and show as skipped. A forge tag publishes libmacula-linux-x64.so, macula.h and SHA256SUMS only; cabi/CONTRACT.md says so.
  2. The groups interop leg is guarded off. groups.sh starts each Erlang peer as its own podman run … escript with per-run arguments, reads each from its own stdout file and stops it by name — the test starts, reads and stops the peer itself, so a long-lived services: container cannot stand in for it, and the forge mounts no docker or podman socket into a job (forge-runner instance config). The sealed leg does run, through sealed.sh's own MACULA_LOCAL_ERL=1 in the OTP image.
  3. No build-provenance attestation. There is no forge equivalent of gh attestation verify; SHA256SUMS and the anonymous read-back are what a consumer checks.
  4. Unmeasured until the first run: the runner reaching proxy.golang.org (Go modules) and registry.npmjs.org (interop lint). Both are assumed, neither has been run on the forge.
  5. Publishing waits for two things outside this repository: the macula-sdk org (forge-setup#36) and the one sdk-publisher account with write:package there, whose token reaches the repository as vars.FORGE_PACKAGES_USER / secrets.FORGE_PACKAGES_TOKEN.

What the first run has to show

Actions are off here, so nothing has run on the forge. With the Supervisor's GO: a workflow_dispatch of release on master builds libmacula in manylinux, runs the sealed leg, and stops before every publish step; then the first v* tag publishes the four files and SHA256SUMS reads back with no credentials.

**PR 3 is the port** (`pallas/2-forge-release`, tip `bf3c228`). It builds everything that needs neither `go.macula.io`'s DNS nor an anonymous fetch out of `macula-io`; the module-path sweep (264 files) waits for the DNS ruling, and the artifacts go to `macula-sdk`'s generic package, which is the anonymous path. ## Open points, named rather than skipped 1. **`libmacula` for linux-arm64, macOS and Windows is not built here.** The forge has no arm64, macOS or Windows runner, so those legs keep their steps, are guarded `if: github.server_url == 'https://github.com'`, and show as skipped. A forge tag publishes `libmacula-linux-x64.so`, `macula.h` and `SHA256SUMS` only; `cabi/CONTRACT.md` says so. 2. **The groups interop leg is guarded off.** `groups.sh` starts each Erlang peer as its own `podman run … escript` with per-run arguments, reads each from its own stdout file and stops it by name — the test starts, reads and stops the peer itself, so a long-lived `services:` container cannot stand in for it, and the forge mounts no docker or podman socket into a job (forge-runner instance config). The sealed leg does run, through `sealed.sh`'s own `MACULA_LOCAL_ERL=1` in the OTP image. 3. **No build-provenance attestation.** There is no forge equivalent of `gh attestation verify`; `SHA256SUMS` and the anonymous read-back are what a consumer checks. 4. **Unmeasured until the first run:** the runner reaching `proxy.golang.org` (Go modules) and `registry.npmjs.org` (interop lint). Both are assumed, neither has been run on the forge. 5. **Publishing waits for two things outside this repository:** the `macula-sdk` org (forge-setup#36) and the one `sdk-publisher` account with `write:package` there, whose token reaches the repository as `vars.FORGE_PACKAGES_USER` / `secrets.FORGE_PACKAGES_TOKEN`. ## What the first run has to show Actions are off here, so nothing has run on the forge. With the Supervisor's GO: a `workflow_dispatch` of `release` on master builds libmacula in manylinux, runs the sealed leg, and stops before every publish step; then the first `v*` tag publishes the four files and `SHA256SUMS` reads back with no credentials.
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
macula-io/macula-go#2
No description provided.