Port to the forge: every job on our runner, libmacula as a macula-sdk generic package (go#2) #3

Manually merged
terra merged 2 commits from pallas/2-forge-release into master 2026-11-24 03:11:30 +00:00
Member

Refs macula-go#2 (under macula-io/forge-setup#30 section 4 step 6). Builds nothing that needs go.macula.io's DNS or an anonymous fetch from macula-io; the module-path sweep waits for the DNS ruling.

The four workflows, ported.

  • ci.yml — gofmt, vet, structural floor, interop lint, test, fuzz and libmacula on runs-on: docker, in the forge's macula-ci-otp by digest with the org's pull credentials, plain-shell checkout, no marketplace action. Go 1.27.4 from the tarball go.mod's own line names (the step fails if the two disagree); golangci-lint v2.15.0 from the module proxy; node 24.20.0 from its pinned tarball. The Windows test job is guarded if: github.server_url == 'https://github.com' and named open.
  • libmacula.yml — linux-x64 runs inside manylinux_2_28_x86_64, which is the only way to keep the glibc 2.28 floor: the forge mounts no docker or podman socket into a job (forge-runner instance config), so the old docker run of that image cannot work there. The image is public on quay.io, so this job needs no registry credentials. linux-arm64, macOS and Windows keep their steps, guarded off and named open.
  • sealed-interop.yml — one job, because the forge has no artifact API (macula-realm's test.yml records the same limit), so the macula build cannot be handed to another job. The sealed leg runs with sealed.sh's own MACULA_LOCAL_ERL=1 inside the OTP image, which pins the toolchain just as the container path did. The groups leg is guarded off: groups.sh starts each Erlang peer as its own podman run … escript with per-run arguments, reads it from its own stdout and stops it by name — a long-lived services: container cannot stand in for a peer the test starts, reads and stops itself. Named open on go#2.
  • release.yml — guard, tests, libmacula and the interop run; each producer publishes its own file to the public generic package macula-sdk/libmacula/<tag> (scripts/forge/publish-generic.sh), and the last job fetches them back with no credentials and writes SHA256SUMS from those bytes (scripts/forge/generic-sums.sh). gh release create, the artifact uploads and the provenance attestation are gone. A dispatch publishes nothing: every publish step is gated on the event, never an input.

Why a generic package in macula-sdk: macula-io is private on the forge and its releases and packages follow its visibility, so nothing published there can be fetched anonymously — which is exactly what macula-php's composer build and any go get would do. DECIDED 2026-11-24 "New public org macula-sdk". The account is the one sdk-publisher (vars.FORGE_PACKAGES_USER / secrets.FORGE_PACKAGES_TOKEN), with the token on a curl config on stdin, never argv.

Proven locally, against a stand-in that stores and serves what it is sent:

  • publish-generic.sh: 201 on a first publish, and the anonymous read-back matches the bytes sent; a second publish of the same bytes (409) passes only after comparing them; a 409 with different bytes fails, naming both digests; strace -f -e trace=execve finds the token in zero argv, with the real curl … -K - --upload-file as the positive control.
  • generic-sums.sh: fetches each named file with no credentials and writes its SHA256SUMS lines.
  • The tag-version check and the read-back take both of Mercurius's nits from php#4 from the start: the version is matched whole (grep -qxE '[0-9]+\.[0-9]+\.[0-9]+') and the read-back compares bytes on the whitespace-stripped document.
  • actionlint is clean on the four ported files and the three stand-ins (the only findings are the known full-URL ones inside the byte-for-byte stand-in, as on php and rust); .github/actionlint.yaml declares the docker label.

Named open, not silently skipped (all on go#2): linux-arm64, macOS and Windows libmacula; the groups interop leg; the missing build-provenance attestation.

Unproven, and why: Actions are off in this repository, so nothing here has run on the forge yet — the dispatch dry-run and the first tag come after the Supervisor's GO. Two runtime dependencies are assumed and not measured: the runner reaching proxy.golang.org (modules) and registry.npmjs.org (interop lint).

🤖 Generated with Claude Code

Refs macula-go#2 (under macula-io/forge-setup#30 section 4 step 6). Builds nothing that needs `go.macula.io`'s DNS or an anonymous fetch from `macula-io`; the module-path sweep waits for the DNS ruling. **The four workflows, ported.** - `ci.yml` — gofmt, vet, structural floor, interop lint, test, fuzz and libmacula on `runs-on: docker`, in the forge's `macula-ci-otp` by digest with the org's pull credentials, plain-shell checkout, no marketplace action. Go 1.27.4 from the tarball go.mod's own line names (the step fails if the two disagree); golangci-lint v2.15.0 from the module proxy; node 24.20.0 from its pinned tarball. The Windows test job is guarded `if: github.server_url == 'https://github.com'` and named open. - `libmacula.yml` — linux-x64 runs **inside** `manylinux_2_28_x86_64`, which is the only way to keep the glibc 2.28 floor: the forge mounts no docker or podman socket into a job (forge-runner instance config), so the old `docker run` of that image cannot work there. The image is public on quay.io, so this job needs no registry credentials. linux-arm64, macOS and Windows keep their steps, guarded off and named open. - `sealed-interop.yml` — one job, because the forge has no artifact API (macula-realm's `test.yml` records the same limit), so the macula build cannot be handed to another job. The sealed leg runs with `sealed.sh`'s own `MACULA_LOCAL_ERL=1` inside the OTP image, which pins the toolchain just as the container path did. The groups leg is **guarded off**: `groups.sh` starts each Erlang peer as its own `podman run … escript` with per-run arguments, reads it from its own stdout and stops it by name — a long-lived `services:` container cannot stand in for a peer the test starts, reads and stops itself. Named open on go#2. - `release.yml` — guard, tests, libmacula and the interop run; each producer publishes its own file to the public generic package `macula-sdk/libmacula/<tag>` (`scripts/forge/publish-generic.sh`), and the last job fetches them back **with no credentials** and writes `SHA256SUMS` from those bytes (`scripts/forge/generic-sums.sh`). `gh release create`, the artifact uploads and the provenance attestation are gone. A dispatch publishes nothing: every publish step is gated on the event, never an input. **Why a generic package in `macula-sdk`:** `macula-io` is private on the forge and its releases and packages follow its visibility, so nothing published there can be fetched anonymously — which is exactly what macula-php's composer build and any `go get` would do. DECIDED 2026-11-24 "New public org macula-sdk". The account is the one `sdk-publisher` (`vars.FORGE_PACKAGES_USER` / `secrets.FORGE_PACKAGES_TOKEN`), with the token on a curl config on stdin, never argv. **Proven locally, against a stand-in that stores and serves what it is sent:** - `publish-generic.sh`: `201` on a first publish, and the anonymous read-back matches the bytes sent; a second publish of the same bytes (`409`) passes only after comparing them; a `409` with *different* bytes fails, naming both digests; `strace -f -e trace=execve` finds the token in zero argv, with the real `curl … -K - --upload-file` as the positive control. - `generic-sums.sh`: fetches each named file with no credentials and writes its `SHA256SUMS` lines. - The tag-version check and the read-back take both of Mercurius's nits from php#4 from the start: the version is matched whole (`grep -qxE '[0-9]+\.[0-9]+\.[0-9]+'`) and the read-back compares bytes on the whitespace-stripped document. - `actionlint` is clean on the four ported files and the three stand-ins (the only findings are the known full-URL ones inside the byte-for-byte stand-in, as on php and rust); `.github/actionlint.yaml` declares the `docker` label. **Named open, not silently skipped** (all on go#2): linux-arm64, macOS and Windows libmacula; the groups interop leg; the missing build-provenance attestation. **Unproven, and why:** Actions are off in this repository, so nothing here has run on the forge yet — the dispatch dry-run and the first tag come after the Supervisor's GO. Two runtime dependencies are assumed and not measured: the runner reaching `proxy.golang.org` (modules) and `registry.npmjs.org` (interop lint). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The four workflows, ported under macula-io/forge-setup#30 section 4 step 6:

- ci.yml: gofmt, vet, structural floor, interop lint, test, fuzz and libmacula
  run on `docker` in the forge's ci-otp image by digest, with the plain-shell
  checkout and Go 1.27.4 from the tarball go.mod's own line names. golangci-lint
  installs from the module proxy, node 24.20.0 from its pinned tarball. The
  Windows test job is guarded off the forge and named open.
- libmacula.yml: linux-x64 runs INSIDE manylinux_2_28, which is what keeps the
  glibc 2.28 floor (the forge mounts no docker socket, so `docker run` cannot
  work there); linux-arm64, macOS and Windows keep their steps, guarded off and
  named open.
- sealed-interop.yml: one job, because the forge has no artifact API for a
  build to travel between jobs. The sealed leg runs with sealed.sh's own
  MACULA_LOCAL_ERL=1 in the OTP image; the groups leg is guarded off, since it
  starts and stops each Erlang peer with podman and the forge mounts no socket.
- release.yml: the guard, the tests, libmacula and the interop all run; each
  producer publishes its own file to the public generic package
  `macula-sdk/libmacula/<tag>` through scripts/forge/publish-generic.sh, and the
  last job writes SHA256SUMS from the bytes it fetches back with no credentials.
  `gh release create` and the attestation are gone with GitHub; a dispatch
  publishes nothing.

The three ci-images reusables are local STAND-INs at 476b5724, byte for byte
below a STAND-IN header. cabi/CONTRACT.md names where the artifacts now live and
which platforms a tag carries.
Mercurius's r=1 FAIL, in one round:

1. Publishing happened before the gates passed. The producers publish inside
   their own jobs (the forge has no artifact API to hand a file to a last job),
   so the CALLS now need [release-guard, changelog, tests]: a refused tag, a red
   test run or a missing CHANGELOG section leaves them unstarted. The guard no
   longer skips on a dispatch — require-tag follows the event — so no job ever
   needs a SKIPPED job, which is the shape ci-images#9 breaks on the forge.
2. A re-run of a tag could never pass: the interop log names this run's node and
   key ids, so its bytes always differ. publish-generic.sh takes --keep-first,
   used for the log only: a 409 there keeps the first run's file and passes. The
   .so, macula.h and SHA256SUMS still pass a 409 only on equal bytes.

Also in this round: manylinux pinned by digest instead of by tag; `gcc` instead
of `cc`; sealed.sh's ghcr default and its header now name the forge's image;
groups.sh's default too; stop_erl no longer calls podman on the local path, and
where pkill is absent it says so instead of hiding it behind `|| true`.

scripts/interop/v5.sh still names ghcr; it is not in this port's path and was
left alone.
terra manually merged commit 3b709735ae into master 2026-11-24 03:11:30 +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-io/macula-go!3
No description provided.