Release automation #98

Closed
opened 2026-11-11 22:02:57 +00:00 by Claude · 4 comments
Owner

Part of #87

Question

How far is the path from a merged change to a tagged release automated, and which step stays a human decision?

Decide: who or what bumps galaxy.yml and runs antsibull-changelog release; whether a release pull request is generated; what the tag-push job verifies and publishes; how a consumer learns of a release.

Context

  • Today releases are entirely manual: the maintainer pushes an annotated vX.Y.Z tag equal to the galaxy.yml version.
  • The maintainer wants continuous delivery with automated CI/CD behind understandable guardrails.
  • Tags are protected and creating them is the maintainer's; any automation that tags needs an explicit decision about the credential it holds.
Part of #87 ## Question How far is the path from a merged change to a tagged release automated, and which step stays a human decision? Decide: who or what bumps `galaxy.yml` and runs `antsibull-changelog release`; whether a release pull request is generated; what the tag-push job verifies and publishes; how a consumer learns of a release. ## Context - Today releases are entirely manual: the maintainer pushes an annotated `vX.Y.Z` tag equal to the `galaxy.yml` version. - The maintainer wants continuous delivery with automated CI/CD behind understandable guardrails. - Tags are protected and creating them is the maintainer's; any automation that tags needs an explicit decision about the credential it holds.
Claude added the
Wayfinder
Grilling
label 2026-11-11 22:02:57 +00:00
Claude added a new dependency 2026-11-11 22:03:13 +00:00
Author
Owner

From Public design contract replacing the ADR 0004 references: who may push v* tags (today the maintainer only) is an ADR candidate, left to this ticket because continuous delivery may change it. The tag shape (annotated vX.Y.Z equal to galaxy.yml) is a rule held by the build.yml check, not an ADR. If this ticket's outcome meets the ADR bar (hard to reverse, surprising, a real trade-off), the closing session files the ADR as implementation. ADRs: status accepted or superseded by NNNN, one screen at most, a residual-risk section only when a risk is accepted, no infrastructure detail.

From [Public design contract replacing the ADR 0004 references](https://git.rkdr.net/Mortis/Kamino/issues/92): who may push `v*` tags (today the maintainer only) is an ADR candidate, left to this ticket because continuous delivery may change it. The tag shape (annotated `vX.Y.Z` equal to `galaxy.yml`) is a rule held by the `build.yml` check, not an ADR. If this ticket's outcome meets the ADR bar (hard to reverse, surprising, a real trade-off), the closing session files the ADR as implementation. ADRs: status `accepted` or `superseded by NNNN`, one screen at most, a residual-risk section only when a risk is accepted, no infrastructure detail.
Defame1297 was assigned by Claude 2026-11-15 18:21:29 +00:00
Author
Owner

Resolution

Decided with the maintainer, 2026-11-15.

  1. Trigger: every push to main that adds a consumer-visible fragment makes CI open or refresh one release pull request on release/next (version bump + antsibull-changelog release).
  2. Human step: the maintainer merges it by hand; that is the one human release decision (when a set of changes ships). Automerge is revisited once releases have run cleanly.
  3. Version: derived from fragment sections. breaking_changes/removed_features → major; major_changes/minor_changes/deprecated_features → minor; bugfixes/security_fixes/known_issues → patch; only trivial → no release. Contributors never edit the version.
  4. Release summary: a bot one-liner; the maintainer may edit it before merging, nothing waits on it.
  5. Publish: on push to main where galaxy.yml's version changed, one API call creates the Gitea Release and the annotated vX.Y.Z tag (notes = that version's changelog section), then the built tarball is uploaded. This makes the "release tarball" consumption route true.
  6. Consumers learn of a release from the Gitea Release only (notifications, RSS, Renovate).
  7. Checks on a release pull request: Lint, Build, Molecule, plus a fragment-to-version consistency check in Build; the bot-diff gate limits a release/ branch to the galaxy.yml version line, the changelog files and fragment deletions.
  8. Credential: a Gitea 28 bot account kamino-release, write on this repository only, not an organisation owner, on the v* tag allowlist with the maintainer; its token is a repository secret used only by release.yml. The Actions job token cannot do it on Gitea 28.0.0: pull requests it opens start no workflows (services/actions/notifier_helper.go), and the Actions user cannot be allowlisted for protected tags.
  9. Tooling: a short Python script + antsibull-changelog + curl against the API. No standard tool fits: knope runs on Gitea but needs its own change format and attaches no assets there; release-please has no Gitea support; collection_prep_version maps sections differently and compares versions as strings.
  10. Rules: a release happens only by merging the generated release pull request (held by the publish job and tag protection; the maintainer's tag permission is an override). Only image.yml and release.yml reference secrets, each only its own (held by review).
  11. No agents in the release path: it is deterministic; agents help upstream (fragments in pull requests).
  12. ADR: yes, with residual risk: anyone with write access can read the token and tag. This settles the "who may push v* tags" candidate handed over from Public design contract replacing the ADR 0004 references.

Side note, outside this map: the server runs Gitea 28.0.0; 28.1–28.3 carry published security fixes.

Backlog

## Resolution Decided with the maintainer, 2026-11-15. 1. **Trigger:** every push to `main` that adds a consumer-visible fragment makes CI open or refresh one release pull request on `release/next` (version bump + `antsibull-changelog release`). 2. **Human step:** the maintainer merges it by hand; that is the one human release decision (when a set of changes ships). Automerge is revisited once releases have run cleanly. 3. **Version:** derived from fragment sections. `breaking_changes`/`removed_features` → major; `major_changes`/`minor_changes`/`deprecated_features` → minor; `bugfixes`/`security_fixes`/`known_issues` → patch; only `trivial` → no release. Contributors never edit the version. 4. **Release summary:** a bot one-liner; the maintainer may edit it before merging, nothing waits on it. 5. **Publish:** on push to `main` where `galaxy.yml`'s version changed, one API call creates the Gitea Release and the annotated `vX.Y.Z` tag (notes = that version's changelog section), then the built tarball is uploaded. This makes the "release tarball" consumption route true. 6. **Consumers** learn of a release from the Gitea Release only (notifications, RSS, Renovate). 7. **Checks on a release pull request:** Lint, Build, Molecule, plus a fragment-to-version consistency check in Build; the bot-diff gate limits a `release/` branch to the `galaxy.yml` version line, the changelog files and fragment deletions. 8. **Credential:** a Gitea 28 bot account `kamino-release`, write on this repository only, not an organisation owner, on the `v*` tag allowlist with the maintainer; its token is a repository secret used only by `release.yml`. The Actions job token cannot do it on Gitea 28.0.0: pull requests it opens start no workflows (`services/actions/notifier_helper.go`), and the Actions user cannot be allowlisted for protected tags. 9. **Tooling:** a short Python script + `antsibull-changelog` + `curl` against the API. No standard tool fits: knope runs on Gitea but needs its own change format and attaches no assets there; release-please has no Gitea support; `collection_prep_version` maps sections differently and compares versions as strings. 10. **Rules:** a release happens only by merging the generated release pull request (held by the publish job and tag protection; the maintainer's tag permission is an override). Only `image.yml` and `release.yml` reference secrets, each only its own (held by review). 11. **No agents in the release path:** it is deterministic; agents help upstream (fragments in pull requests). 12. **ADR:** yes, with residual risk: anyone with write access can read the token and tag. This settles the "who may push `v*` tags" candidate handed over from [Public design contract replacing the ADR 0004 references](https://git.rkdr.net/Mortis/Kamino/issues/92). Side note, outside this map: the server runs Gitea 28.0.0; 28.1–28.3 carry published security fixes. ## Backlog - [Create the kamino-release bot account, token, tag allowlist and secret](https://git.rkdr.net/Mortis/Kamino/issues/174) (Ready for Human) - [Generate the release pull request and publish tagged releases](https://git.rkdr.net/Mortis/Kamino/issues/175), blocked by the account issue for its live run - [Check the release version against its fragments and limit release/ branches](https://git.rkdr.net/Mortis/Kamino/issues/176) - [ADR and glossary terms Release pull request and Release bot](https://git.rkdr.net/Mortis/Kamino/issues/177)
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • Rule 10's secrets wording is superseded by Enforcement map for each prose-only rule. Rule 10 says "Only image.yml and release.yml reference secrets, each only its own", which leaves out renovate.yml (it references its own token, .gitea/workflows/renovate.yml:57). The restated rule: each secret is referenced by exactly one workflow (image.yml the push credential, renovate.yml the Renovate token, release.yml the release token); no other workflow references a secret except the job token.
  • The fragment check on the release pull request, publish recovery and tarball integrity are open again in Release path: fragment check, failed publish and tarball integrity.
Review of the map (2026-11-15): corrections to this issue. - **Rule 10's secrets wording is superseded by [Enforcement map for each prose-only rule](https://git.rkdr.net/Mortis/Kamino/issues/102).** Rule 10 says "Only `image.yml` and `release.yml` reference secrets, each only its own", which leaves out `renovate.yml` (it references its own token, `.gitea/workflows/renovate.yml:57`). The restated rule: each secret is referenced by exactly one workflow (`image.yml` the push credential, `renovate.yml` the Renovate token, `release.yml` the release token); no other workflow references a secret except the job token. - The fragment check on the release pull request, publish recovery and tarball integrity are open again in [Release path: fragment check, failed publish and tarball integrity](https://git.rkdr.net/Mortis/Kamino/issues/211).
Author
Owner

Review of the map (2026-11-17).

The points the last note left open are closed by Release path: fragment check, failed publish and tarball integrity: the fragment check passes the release pull request by its content (item 7), publish converges on every push to main (item 5), prepare refreshes on every push while fragments are pending (item 1), and the tag message carries the tarball's sha256.

Partly superseded by Role standard gaps found in review, rule 8: major_changes is not used, so item 3 no longer maps it to a minor release.

Open after this review: a rebuilt tarball never has the sha256 the tag message holds (What the tarball checksum in the tag message proves when a publish is repaired). The job-token facts behind the release bot were read at Gitea 28.0.0; the server reports 28.3.0 on 2026-11-17 and they were not re-read.

Review of the map (2026-11-17). The points the last note left open are closed by [Release path: fragment check, failed publish and tarball integrity](https://git.rkdr.net/Mortis/Kamino/issues/211): the fragment check passes the release pull request by its content (item 7), publish converges on every push to `main` (item 5), prepare refreshes on every push while fragments are pending (item 1), and the tag message carries the tarball's sha256. Partly superseded by [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214), rule 8: `major_changes` is not used, so item 3 no longer maps it to a minor release. Open after this review: a rebuilt tarball never has the sha256 the tag message holds ([What the tarball checksum in the tag message proves when a publish is repaired](https://git.rkdr.net/Mortis/Kamino/issues/255)). The job-token facts behind the release bot were read at Gitea 28.0.0; the server reports 28.3.0 on 2026-11-17 and they were not re-read.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#98