Port to the forge: every job on our runner, libmacula as a macula-sdk generic package (go#2) #3
Loading…
Reference in a new issue
No description provided.
Delete branch "pallas/2-forge-release"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 frommacula-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 onruns-on: docker, in the forge'smacula-ci-otpby 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 guardedif: github.server_url == 'https://github.com'and named open.libmacula.yml— linux-x64 runs insidemanylinux_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 olddocker runof 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'stest.ymlrecords the same limit), so the macula build cannot be handed to another job. The sealed leg runs withsealed.sh's ownMACULA_LOCAL_ERL=1inside the OTP image, which pins the toolchain just as the container path did. The groups leg is guarded off:groups.shstarts each Erlang peer as its ownpodman run … escriptwith per-run arguments, reads it from its own stdout and stops it by name — a long-livedservices: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 packagemacula-sdk/libmacula/<tag>(scripts/forge/publish-generic.sh), and the last job fetches them back with no credentials and writesSHA256SUMSfrom 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-iois 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 anygo getwould do. DECIDED 2026-11-24 "New public org macula-sdk". The account is the onesdk-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:201on 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; a409with different bytes fails, naming both digests;strace -f -e trace=execvefinds the token in zero argv, with the realcurl … -K - --upload-fileas the positive control.generic-sums.sh: fetches each named file with no credentials and writes itsSHA256SUMSlines.grep -qxE '[0-9]+\.[0-9]+\.[0-9]+') and the read-back compares bytes on the whitespace-stripped document.actionlintis 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.yamldeclares thedockerlabel.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) andregistry.npmjs.org(interop lint).🤖 Generated with Claude Code