release-core and release-ffi publish to the forge's Cargo registry, proven by a v* and an ffi-v* tag #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Purpose (port): a
v*tag on this repository publishes that version to the forge's own Cargo registry on git.macula.io, read back from that registry, and anffi-v*tag does the same formacula-rust-ffi; nothing on GitHub is needed for either, and no crates.io credential exists in this repository.Refs macula-io/forge-setup#30 section 4 step 2 and its section 1 rust row. Two owner rulings carry this package:
What the port changes, as it now stands on master
.github/workflows/release-core.yml(v*→macula-rust) andrelease-ffi.yml(ffi-v*→macula-rust-ffi) run on the forge's host00 runner (runs-on: docker; this repository is private, so the runner is the local one), tag-triggered only, and publish withcargo publish --registry macula.maculais named once, in.cargo/config.toml, and resolves the forge's sparse index at/api/packages/macula-pub/cargo/, which Forgejo answers anonymously ("auth-required": false), so the dry run proves the destination with no credential at all.FORGE_PACKAGES_TOKEN— thesdk-publisheraccount inmacula-pub,write:packageonly, made and proven by forge-setup'ssdk-publisher-account.sh(forge-setup#49, #50, #51; its run of 2026-11-25 listsmacula-rustamong the repositories that took the secret) — and reaches cargo asCARGO_REGISTRIES_MACULA_TOKEN: Bearer <token>. There is no crates.io token anywhere in this repository.tests/teststation/go.modand the tarball's sha256 is pinned in the workflow, so a movedgo.modfails by name rather than installing whatever the URL now serves.macula-pubcopy of the CI image, by digest, as uid 1000 (macula-rust#4), and the two shared gates are local copies, because the forge calls into another repository only when that repository is public.Done when
A
v*tag on the forge publishesmacula-rustto the forge's Cargo registry, read back from that registry, and anffi-v*tag likewise publishesmacula-rust-ffionce the core version it depends on is there; nothing on GitHub is needed for either.What the first tag still needs
v0.15.1andffi-v0.13.1already exist as git tags (both at4ca8de0), and master is 39 commits past them with an[Unreleased]section for both crates. A release tag is never moved, so the first forge release is the next version: the version bump lands as its own reviewed change, and the tag follows it — the workflow refuses a tag whose name is not the versionCargo.tomlcarries.Built on
hygiea/2-release-on-the-forgeat499bf68, based on master78d495c. Four files: the two release workflows ported, and the two shared gates carried as local copies.What the branch does
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}in both files. That is the forge repository secret this issue's section 2 names; the owner fills it from~/.config/forge/crates-macula-rust.token. The workflow only references it and never prints it../.github/workflows/ci-images-release-guard.ymlandci-images-dependency-advisories.yml, each byte for byte its upstream file below its STAND-IN header: the guard at b4c41abb (what these workflows pinned), the advisories at 476b5724. The advisories pin moves from 83a76a35 because that file still checks out withactions/checkout@v4and dies at exitcode 127 in an image with no node; 476b5724 is the file with the plain-shell checkout (macula-ci-images#12).actions/checkout@v4and needs node. That is the class macula-ci-images#11 tracks, and a copy cannot patch it alone (its STAND-IN header requires byte identity). A comment there names this repository as one more instance.tests/teststation/go.mod(go 1.27.4), and the tarball's sha256 is the one literal, checked before anything is unpacked.go.dev/dlanswers 302 todl.google.com/go/, so the download follows redirects; without that the step saves the redirect stub and the check refuses it (found and fixed on this branch).git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7…, pulled with the org's read-only ci-image-puller account (vars.CI_IMAGE_PULL_USER/secrets.CI_IMAGE_PULL_TOKEN, the account martha's links job uses). That image carries rustup 1.29.1, cmake, build-essential, libssl-dev, git and python3; rustup installs the versionrust-toolchain.tomlpins, so no workflow names a toolchain.What was run, and what it printed
In the pinned image, on this branch's tree:
rustup show→info: syncing channel updates for 1.99.1-x86_64-unknown-linux-gnu … downloading 6 components, active toolchain1.99.1-x86_64-unknown-linux-gnu,active because: overridden by '/src/rust-toolchain.toml'; thenscripts/assert_toolchain.sh→rustc 1.99.1, as pinned in rust-toolchain.toml. (rustup warns that auto-install of a missing active toolchain is deprecated; it works today on rustup 1.29.1, which is the pinned one in the image. If a later image's rustup drops it, the port needsrustup toolchain installin front — a change to make then, not a check to add now.)sha256sum -c -→ OK against 7226736c…,go version→go version go1.27.4 linux/amd64, then./scripts/build-teststation.sh→go: downloading github.com/macula-io/macula-go v0.31.0 …andbuilt /src/target/teststation(11,798,947 bytes).actionlinton both files: silent exceptlabel "docker" is unknown, which is this runner's own label.Still open, in order
has_actions=false: the first run of either file comes after the per-repo GO turns Actions on (Mars asks the Supervisor for it).cargo publishfor want of the secret; the end-to-end proof is the first real tag after the token lands.ffi-v*publishesmacula-rust-ffionly after the core version it names is on crates.io (the dry run proves that dependency resolves).The proof shape changed on the Supervisor's ruling (via Mars, 2026-11-24): no tag is pushed for the port. Branch now at
b5c7f71, second commit on PR 3.Both release workflows take
workflow_dispatchand stop before the upload:workflow_dispatchdeclares no inputs at all, and the one non-dry-runcargo publishstep is guarded ongithub.event_name == 'push'. Nothing a caller sends can reach it, and a dispatch started on a tag ref publishes nothing either, because the guard reads the event and not the ref.GITHUB_REF_NAMEnames a branch.Checked mechanically on the branch by parsing both files: exactly one non-dry-run
cargo publishper file, itsifis the event guard, andworkflow_dispatchhas no inputs block.For the lander's first run: dispatch release-core.yml. A dispatch of release-ffi.yml runs its dry run, and that dry run proves
macula-rust-ffi's dependency on the core version against crates.io, so it would fail for a reason that is not the port.R1 (Neptunus, r=1) folded in on
a81ca86— PR 3 now changes six files.ci.yml, ported to the forge (plain-shell checkout,
runs-on: docker, the CI image by digest with the org pull account):fmt,clippy,test,coverage,doc,erlang-helper-lint,go-helper-lint, andauditthrough the local advisories copy. The Go toolchain is installed from the tarballtests/teststation/go.modnames (sha256 pinned); golangci-lint comes fromgo installat the version the action pinned (v2.15.0, confirmed on the module proxy); the Rust dependency cache action goes with the runner's cache server, which is off.Seven jobs are guarded with
if: github.server_url == 'https://github.com', nothing deleted:windows-keystore,android,android-keystore,ios,ffi-bindings-swift— no Windows/macOS/Android runner on the forge (the Supervisor's ruling, 2026-11-24: platforms decided with macula-ts#2's).key-files-without-hard-links— it runs each built suite indocker run --security-opt seccomp=…, and the forge mounts no docker socket into a job by design (runner config:docker_host: "-", no host volumes); it also needsjq, which the image lacks.ffi-bindings—scripts/compile_kotlin_bindings.shruns kotlinc, which needs a JDK;javaandjavacare both absent from the CI image (checked inside it at this commit).sealed-interop.yml: the
sealedjob is guarded too. Its only JavaScript actions are checkout and setup-go, so it looks portable, butscripts/interop/sealed.shstarts both sides withpodman run(lines 96, 115, 149, 183) — the interop proof needs a runner with podman, which the forge's job containers deliberately do not provide.That makes five open points on this issue for Raf to settle later: the three platform groups, the seccomp/docker job, and the podman interop job. None of them is dropped; each shows as skipped on the forge.
Checked statically (script over all six files, asserting three properties): no cross-repository
uses:remains, so nothing fails to expand and hides a waiting job; every guarded job carriesruns-on:; every unguarded job carriesruns-on: docker, a label the runner serves. Also asserted: everycontainer:job carriesvars.CI_IMAGE_PULL_USER/secrets.CI_IMAGE_PULL_TOKEN(Mercurius's 401 finding), 8 of them, withgo-helper-lintthe only job without a container, on purpose. The tag version now reaches both validation scripts throughenv:, never pasted into the command text.The forge-only ruling folded in on
eaffa86(DECIDED 2026-11-24, Raf: "we will ONLY use our own package management on the forge....no API key theatre we are sovereign", forge-setup#30 c3130)..cargo/config.tomlnames the registry once:[registries.macula] index = https://git.macula.io/macula-sdk/_cargo-index, withgit-fetch-with-clifor a git index. Third-party dependencies still resolve from crates.io; only publishing moves.--registry macula, and their dry runs target the same registry — a dry run that reads crates.io proves nothing about where the crate goes.CARGO_REGISTRY_TOKEN. No crates.io token exists in the tree.One consequence to plan around, proved not guessed: a dry run against a registry that does not exist yet stops at the index fetch —
cargo publish --dry-run --registry maculain the pinned CI image answersunexpected http status code: 404onhttps://git.macula.io/macula-sdk/_cargo-index(probed 2026-11-24). So the first dispatched proof run needs macula-sdk to exist; until then that step is red for a reason that is not the port.Also unverified until macula-sdk exists: whether cargo's publish verification resolves the FFI's
path+versiondependency from themacularegistry rather than crates.io. The first real dry run settles it; if it resolves from crates.io, the FFI check needs an explicit index check and that is a small follow-up, not this round's.Not changed, named for later:
README.mdlines 4-5 and severalCHANGELOG.mdlinks still point readers at crates.io crate pages, which this ruling makes stale documentation. That is a docs decision, not the release path's.R2 (Neptunus, r=2) folded in at
723a076— a fast-forward from61a90ba, 8 lines in two files, nothing else in the range.The defect. Both upload steps had
${ secrets.FORGE_PACKAGES_TOKEN }with single braces, so the runner would pass that text literally as the token; and cargo sends the value as theAuthorizationheader verbatim, so a bare token gets 401 from the forge andBearer <token>gets 200. Both now readCARGO_REGISTRIES_MACULA_TOKEN: Bearer ${{ secrets.FORGE_PACKAGES_TOKEN }}, with a comment saying why.Checked on the tip after reading it, not on the report:
runiscargo publish --registry macula(and-p macula-rust-ffiin ffi), value exactlyBearer ${{ secrets.FORGE_PACKAGES_TOKEN }};${ ... secrets ... }expression left in any of the three workflows;61a90baplus those 8 lines;61a90ba, and PR 3's head is723a076and mergeable.The dispatch dry run is untouched: the upload step is guarded on
github.event_name == 'push', and the dry run needs no token.Open point, not a fail (named at r=2):
sealed.shcould take a local switch like the Go helper'sMACULA_LOCAL_ERL, because the CI image carries both OTP 28 and Rust; until then the sealed-interop job stays guarded off.Dry run 3203 (release-core.yml on master
39135a78) and its fix, PR 4.What 3203 was. Not an advisory and not a broken parse: the scan never ran.
cargo auditexits 1 both for findings and for a failed advisory-database fetch, the stand-in accepts 1 as "findings", and its empty stdout then reads as "did not print JSON" — with the stderr that named the cause dropped, which is why the log had nothing.Reproduced with the workflow's pinned cargo-audit 0.22.2 in this checkout: a working run prints 23,850 bytes of JSON and exits 1; an unwritable HOME and an unreachable database each print nothing on stdout and exit 1, with the reason on stderr (
couldn't fetch advisory database: I/O operation failed: Permission deniedandgit operation failed).What PR 4 does. The scan runs in
ghcr.io/macula-io/macula-ci-otp:20261031-2106by digest (public mirror, no credentials) with--user 1000:1000, in all three call sites — ci.yml'saudit, release-core.yml, release-ffi.yml. With a known image the scan ran, and it found three real ones: RUSTSEC-2026-0523 and -0524 in quinn-proto 0.11.18, RUSTSEC-2026-0538 in quinn-udp 0.5.15. All fixed in patch releases insidequinn = "0.11", so the fix is a lock update to quinn-proto 0.11.19 and quinn-udp 0.5.16; the same scan on the updated tree reports 0 findings, rc 0.Not fixed here. The stand-in still drops stderr when a scan cannot run; that is upstream in macula-ci-images (its own issue, per the Supervisor's split). After it lands, this repository, macula-py and macula-dotnet re-copy the stand-in byte for byte.
Parked 2026-11-24 on the crew cut. PR 4 is unchanged and pushed at
df8812cdf8812c71ffor #4 (range 39135a7..df8812c, 4 files: 3 workflows + Cargo.lock).The CI reds are NOT this diff. Reproduced both ways on msi00:
cargo test --workspace --all-features --lockedatdf8812cpasses outside a container (47 binaries, exit 0, ~750s); inside the pinned CI image (git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7…) with the runner's own limits (--memory=6g --cpus=4) only two tests fail, both keystore:keystore::tests::save_then_load_returns_the_same_key(src/keystore.rs:386) andkeystore::tests::delete_is_idempotent(src/keystore.rs:443), eachBackend(PlatformFailure(Unknown(38)))= ENOSYS on the keyctl round trip. Sotestandcoveragefail for the same reason, while fmt/clippy/doc pass because they never calladd_key.Cause is the job container's default seccomp profile, proved in that same image: raw
syscall(248, add_key, …)answerserrno=38 (ENOSYS); the same container with--security-opt seccomp=unconfinedanswersrc=1005086489 (keyctl works).test_store()'s comment "keyutils is always available on Linux" is the false assumption.So the fix is a policy call, not a code fix, and it needs the Supervisor's ruling because ci.yml guards jobs off the forge only by ruling: either (a) name the two keyutils tests as excluded on the forge (
cargo test … -- --skip keystore::tests::, visible in the workflow, but that backend is then tested nowhere since GitHub CI is off), or (b) keep them running withcontainer.options: --security-opt seccomp=unconfinedon justtestandcoverage—container.optionsdoes reach the runner (the advisories job already passes--user 1000:1000through it), at the cost of syscall filtering on those two jobs. I recommend (b) with the option scoped to those two jobs; (a) leaves real production code untested.Not touched: nothing was changed on the branch, so there is no new tip. Worktree ~/work/worktrees/macula-rust-2-advisories-in-the-image stays as it is.
Also unclaimed, seen while parked: macula-py's first run on main (47cacc2) is red —
test,wheels,wheel (manylinux_2_28_x86_64),tests (the image's python3)— nobody has it on macula-py#2.Job logs are still unreadable for member tokens (the web route 404s too, at /actions/runs/2/jobs/2/attempt/1/logs with the token as header and as a query parameter); forge-setup#28 already covers that, so nothing new filed.
Supervisor ruling 2026-11-24 (for when SDK work resumes; SDKs are parked under Raf's "6 on 3 goals"): option (b),
container.options: --security-opt seccomp=unconfinedon thetestandcoveragejobs only, so the keystore tests keep running. Raf may overrule.Done-when progress (issue stays open; the tag publish is still owed).
Landed: master
17dd454be9f14c46a3f84961ddbe672a69dfa19c(PR 7) drops the Windows, macOS and Android jobs fromci.yml— the repository now builds and tests Linux x64 only, quoting DECIDED 2026-11-25 "Linux x64 only (Recommended)". The round on that tip (ci.yml6459) is green except the separateDependency advisories/rust in .reds tracked by #4.Still waiting for the Done-when: a
v*tag on the forge publishingmacula-rustto crates.io and being read back, and anffi-v*tag doing the same formacula-rust-ffi. That needs the publish credential and themacula-sdkregistry in place; theci.ymlplatform change neither proves nor blocks it. So #2 stays open until that first real tag publish is read back — same shape as macula-go#2.release-core and release-ffi on the forge: crates.io from CARGO_REGISTRY_TOKEN, and the Go toolchain the forge lacksto release-core and release-ffi publish to the forge's Cargo registry, proven by a v* and an ffi-v* tagProgress on master, for the first-tag menu:
titan/2-forge-registry-rename) landed at5ba17852: the index this repository names points atmacula-pub, the org's name since the rename, and the ten prose lines inrelease-core.yml/release-ffi.ymlfollow it.titan/2-version-bump-0-16) landed ateeeab071e22a0b030c2c70e01acbf7977a235884— master's tip.macula-rustis0.16.0andmacula-rust-ffiis0.14.0, its dependency on the core at0.16.0,Cargo.lockfollowing both. Jupiter's review round added the notes 0.16.0 was missing: the public/fallback station tiers of #68, the move to this registry, and the three RUSTSEC fixes.CI on the landed tip:
ci.ymlrun 6482 oneeeab07, every job green (the three skips are the workflow's own shape, the same three every run here skips).What waits is the Done-when this issue still owes:
v0.16.0oneeeab07, read back frommacula-pub, thenffi-v0.14.0likewise — the FFI dry run resolves the published core from that registry, so the order is load-bearing. Both tags are the owner's yes, through the Supervisor.Done-when met, checked against the registry itself rather than the release logs.
v0.16.0publishesmacula-rust— annotated tag object67291706, pointing ateeeab071e22a0b030c2c70e01acbf7977a235884(the 0.16.0 landing).release-core.ymlrun 6494 on refv0.16.0is success; itspublish to the forge's Cargo registryjob is 26757.macula-pubcarriescargo/macula-rust 0.16.0,yanked: false, cksumf4455411663b5fec08cf5c44c7552e906a20619bccba74abbbc491fb18447024, published bysdk-publisherat 2026-12-01T20:42:04Z.ffi-v0.14.1publishesmacula-rust-ffi— signed tag61db87d8, pointing at4b72f2719b6109f77e807a804912e8f8ebc554d7(the 0.14.1 landing).release-ffi.ymlrun 6534 on refffi-v0.14.1is success; itspublish to the forge's Cargo registryjob is 26889.macula-pubcarriescargo/macula-rust-ffi 0.14.1,yanked: false, cksum8d30dcdf58d079ed6997473a29e6a592d2f62fd52f8618790fd189d8c76d2633, published bysdk-publisherat 2026-12-01T23:21:36Z.And a real consumer resolves it, which is what "read back" has to mean — a scratch crate whose only dependency is
macula-rust-ffi = { version = "0.14.1", registry = "macula" }resolves both crates out of the forge:Nothing came from crates.io. (The published index entry writes
registry: nullfor that dependency, which is Forgejo's same-registry marker; the resolution above is the proof of what cargo does with it.)ffi-v0.14.0is tagged and published nowhere, and this issue carries the reason: its release run 6510 failed at the publish job 26794, whose dry run went to the crates.io index formacula-rust ^0.16.0and found no such version, becausemacula-rust-ffi/Cargo.toml's dependency namedpathandversionbut no registry. 0.14.1 carriesregistry = "macula"; the tagffi-v0.14.0is not moved, and the CHANGELOG records it.Rulings this package was built under:
Nothing on GitHub is involved in either release.