Release on the forge: twine to the forge PyPI, and every job on our runner #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 PyPI registry from git.macula.io — nothing on GitHub, and no registry outside the forge.DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign" (Raf, macula-io/forge-setup#30 c3130), whose py line reads "twine to the forge PyPI". Refs macula-io/forge-setup#30, macula-io/forge-setup#36 (macula-sdk, the public package org), macula-io/macula-rust#2 (the same port, already landed), macula-io/macula-go#3.
What the port changes
GitHub CI is stopped (
has_actions=falseon this repo, read back today). Every job moves to the forge's own runner: this repository is private, so the runner is the local host00 one, labeldocker, in the pinned CI image by digest, pulled with the org'sCI_IMAGE_PULL_USER/CI_IMAGE_PULL_TOKEN.pypa/gh-action-pypi-publish@release/v1withid-token: writeandenvironment: pypi(release.yml:87-109) is Trusted Publishing, which exists only for GitHub/GitLab/Google Cloud and cannot work here. It becomestwine uploadtohttps://git.macula.io/api/packages/macula-sdk/pypi, authenticating with the repository's own publisher account in macula-sdk: userFORGE_PACKAGES_USER(org variable,sdk-publisher) and passwordFORGE_PACKAGES_TOKEN(repository secret). No PyPI account, no PyPI token, no OIDC.push: tags: ["v*"]; aworkflow_dispatchis added for the no-token proof. Only a push publishes: the publish step is guarded on the event, never on anything a dispatch carries, so no input reaches the upload.actions/checkout@v4,actions/setup-go@v5,actions/setup-python@v5,actions/upload-artifact@v4,actions/download-artifact@v4andgolangci/golangci-lint-action@v8are JavaScript/bundle actions; a JS action dies at exitcode 127 in a job image with no node (DECIDED 2026-11-22 "do both": forge CI uses no marketplace actions). Checkout becomes the plain-shell block every forge repository carries byte-identically (macula-io/martha#601); the rest become plain shell (pinned tarballs,pip install, a pinned golangci-lint binary) or artifacts through the runner's own workspace.macula-io/macula-ci-images/.github/workflows/dependency-advisories.yml@83a76a35; the forge can call into another repository only when that repository is public, and macula-ci-images is private. It becomes a pinned local copy, as macula-rust carries it.scripts/fetch_native.shreadsgh release downloadandgh attestation verifyagainst macula-io/macula-go on GitHub, and wheels.yml / release.yml clonehttps://github.com/macula-io/macula-go.git. Both follow macula-go#3 (libmacula as a macula-sdk generic package) and stay guarded off until that lands.Established by probe today (2026-11-24)
POST /api/packages/macula-sdk/pypianonymously answers401withwww-authenticate: Basic realm="Gitea Package API"and bodyreqPackageAccess; the same POST to a nonexistent owner answers404 Not found. So twine's basic auth (user + password) is the right form here — not the Cargo registry'sBearerscheme that macula-rust#2 had to add.macula-sdkcarries no packages yet (GET /api/v1/packages/macula-sdk→[]), and the accountsdk-publisherdoes not exist yet (GET /api/v1/users/sdk-publisher→ "user redirect does not exist"). A successful upload therefore cannot be proved until the SDK release menu creates the publisher account and theFORGE_PACKAGES_TOKENsecret; this port stops at a token-free proof.--dry-run. The token-free proof a dispatch gives is: every job runs, the wheels build,twine checkpasses on them, and the registry endpoint is reached and seen to want credentials (the 401 above). The upload itself is only exercised by a tag; the first real tag is the SDK release menu's.Open points, for the Supervisor — not decided here
ubuntu-latest,ubuntu-24.04-arm,macos-latest,macos-15-intel,windows-latest). The forge has one runner, on an x86_64 host. Four of the five cannot be built there, so release.yml's "expected 5 wheels" check and what a forge release actually ships are a ruling, not a port decision. Until it is made, those matrix entries are guarded onserver_urland the count check names the platforms the forge can build.Done when
A
v*tag on the forge publishes the versionpyproject.tomlcarries tohttps://git.macula.io/api/packages/macula-sdk/pypi, read back from the registry's simple index, and a dispatch of the same workflow runs every job and stops before the upload without a token; nothing on GitHub is needed for either.Port in PR 3 (
hygiea/2-forge-release, main..786ebe85), and what the build established beyond the plan above.Probes, 2026-11-24. The registry takes HTTP Basic: an anonymous
POST /api/packages/macula-sdk/pypianswers401withwww-authenticate: Basic realm="Gitea Package API"; a nonexistent owner answers404.macula-sdkcarries no packages (GET /api/v1/packages/macula-sdk->[]) andsdk-publisherdoes not exist (GET /api/v1/users/sdk-publisher-> "user redirect does not exist"), so a successful upload cannot be proved before the SDK release menu creates them. The forge carries macula-gov0.31.0at99580b4d, exactly the commitabi/MACULA_GO_REFrecords, which is why the port clones macula-go from the forge and not from github.com.Proved locally on this branch (go 1.27.0, the pinned tag):
build_native.shbuilt libmacula,python -m buildproduced the wheel,twine check --strictpassed, and the wheel carries the 13,739,208-byte library. auditwheel and the manylinux tag belong to the job image, not to a local run.Not yet proved, and blocked on settings rather than code. This repository reads
has_actions=falseand my token is not its admin, so the token-free dispatch proof cannot run. It needs Actions enabled formacula-io/macula-py, as was done formacula-rust.Corrected in the port. The five-platform wheel matrix is gone rather than guarded: a matrix entry cannot be excluded by a job-level
if:(thematrixcontext is not available there and actionlint refuses it), and an entry whose runner does not exist leaves the job queued instead of skipped. One job, manylinux_2_28_x86_64, is what the forge can build and prove.