Release path: fragment check, failed publish and tarball integrity #211
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#211
Reference in new issue
Block a user
Part of #87
Question
Release automation and the fragment-presence check from AGENTS.md structure and what happens to CLAUDE.md's content do not fit together, and the publish step has no recovery. Three reviewers found the first point independently. Decide:
galaxy.ymland deletes fragments without adding one. The fragment check has no escape, and the release bot-diff gate forbids adding a fragment, so the release pull request can never pass Lint. What does the check let through: a diff judged by content (version line plus fragment deletions), or a branch-name exemption?changelogs/.plugin-cache.yaml, which changes in every release commit.v*tags. Put the tarball's checksum in the annotated tag message? Point consumers to the git route pinned to a commit?From the review
Evidence from the review of the map (2026-11-15). Gitea source was read, not tested against the server.
What the fragment check lets through
roles/ormeta/, orgalaxy.yml, without adding a file underchangelogs/fragments/. ... There is no label or other escape."galaxy.ymland runsantsibull-changelog release;changelogs/config.yaml:7iskeep_fragments: false, so it deletes fragments and adds none.release/branch to the version line, the changelog files and fragment deletions, so it cannot add atrivial:fragment to pass.galaxy.ymlchange is theversion:line and whose fragment changes are deletions (judged by content), or exempt arelease/head only when the release bot-diff gate also applies. Recommendation: the content rule, because the branch name is chosen by whoever pushes. Add a "release pull request passes" test.changelogs/.plugin-cache.yamlversion: 1.6.0(line 47) and changed in each of the last three release commits (git log -- changelogs/.plugin-cache.yaml:bc86c2d,ef78484,d4f4d74).CONTRIBUTING.md:28tells releasers to commit it.release/allowlist omits it, so every release pull request would fail that gate too. Recommendation: allow it and test it.Recovery from a failed publish
galaxy.yml's version differs from the latestv*tag:POST /releaseswithtag_message, thenPOST .../releases/{id}/assets. Two calls. The map's line "creates the Gitea Release, annotated tag and tarball in one API call" is wrong.CreateReleasecreates the tag before the database row (services/release/release.go), so a failure can also leave a tag with no release.UpdateReleasecallscreateTag(..., "")andEditReleaseOptionhas no tag message, so the tag is lightweight andbuild.yml:80-83fails it.main: create the release if missing; upload the tarball if missing; else fail loudly. Runcheck_tarball.pyand the annotated-tag check before the release is created; giverelease.ymlits own concurrency group.Tarball and tag integrity
routers/api/v1/api.goat v28.0.0: any writer on the Releases unit can edit and delete releases and their attachments. Write collaborators per Recommended repository settings and branch protection: trusted contributors, the agent account, the Renovate bot, the release bot.IsUserAllowedToControlTag(models/git/protected_tag.go) uses one check for create and delete, so the release bot can delete and recreate av*tag.Stale release pull request and racing prepare jobs
trivial:fragments it falls behindmain, and "Block on outdated branch" blocks the maintainer's merge.concurrency:, andprepareforce-pushesrelease/next, so an older run can push last and drop a newer fragment.galaxy.ymlis not IGNORED by the selector.concurrency: {group: release-prepare, cancel-in-progress: true}; teach the selector that a version-onlygalaxy.ymldiff selects nothing."Revisit automerge of the release pull request"
README.md:30says releases are "annotatedvX.Y.Ztags pushed by the" maintainer, which becomes false once the bot tags. No issue updates it.Resolution
Decided with the maintainer (grilling session, 2026-11-16).
galaxy.ymlchange is theversion:line and whose only fragment changes are deletions. No branch-name exemption: the name is chosen by whoever pushes. A "release pull request passes" test holds it. Amends ci(lint): check fragment presence for consumer-visible changes.changelogs/.plugin-cache.yamlis allowed on arelease/branch, with a test. The shared fragment-to-bump module is created by whichever of the release workflow and version-check issues lands first. Amends ci: check the release version against its fragments and limit what a release/ branch may change.main:check_tarball.pyand the tag checks run before anything is created; the release is created if missing; a pre-existing tag must be annotated and point at the expected commit, else the job fails; the tarball is uploaded if missing; an existing asset that differs fails loudly. Publish has its own concurrency group, never cancelled in progress. How Gitea's create-release treats a pre-existing tag is not verified; the assertion covers it. Amends ci(release): generate the release pull request and publish tagged releases with the tarball and the release ADR issue.mainwhile releasable fragments are pending, underconcurrency: {group: release-prepare, cancel-in-progress: true}; the Molecule selector treats a version-onlygalaxy.ymlchange pluschangelogs/as selecting nothing. Amends #175.README.md's claim that the maintainer pushes the tags is corrected in #175. The map's gist already says two API calls.No new ADR.
Partly superseded by What the tarball checksum in the tag message proves when a publish is repaired (2026-11-20):
MANIFEST.json, not the tarball's.MANIFEST.jsonchain check. "The expected commit" is the commit onmain's first-parent history wheregalaxy.yml's version became the tagged one, and a repair builds from that commit.