ci(release): generate the release pull request and publish tagged releases with the tarball #175

Open
opened 2026-11-15 18:39:39 +00:00 by Claude · 8 comments
Owner

Spec: Release automation. Needs the credential from the kamino-release bot account issue for a live run; the code can be written before.

Blocked by #262: this issue edits docs/contributing/maintaining.md, which #262 creates.

What

A new .gitea/workflows/release.yml with two jobs, both on push to main only (never on a pull request), both using the release bot's token from its repository secret.

prepare

  • Runs on every push to main while fragments that call for a release are pending (not only on pushes that add one), so the release pull request never sits behind main.
  • concurrency: {group: release-prepare, cancel-in-progress: true}, so an older run cannot force-push last.
  • A short Python script under scripts/ (with tests) reads the pending fragments in changelogs/fragments/ and derives the next version from the last release, using the fragment-to-bump function shared with the version check issue (whichever of the two issues lands first creates the module, the other imports it):
    • breaking_changes, removed_features → major
    • minor_changes, deprecated_features → minor
    • bugfixes, security_fixes, known_issues → patch
    • only trivial (or none) → no release: close any open release pull request and stop.
    • major_changes is not mapped (it leaves changelogs/config.yaml, see #176).
  • Compare versions as versions, not strings (1.10.0 > 1.9.0).
  • Write a release_summary fragment with a fixed one-liner, set galaxy.yml's version, run antsibull-changelog release.
  • release/* is a protected branch, so nobody can delete it and "delete branch after merge" is skipped for it. Reuse the fixed branch release/next (force-push onto it), never delete and recreate it, and open, or update, its pull request (chore(release): X.Y.Z) through the Gitea API with curl.
  • The release pull request is merged with the merge button at the head the maintainer read, never scheduled, because prepare refreshes the branch on every push to main.

publish (converges: runs on every push to main and does only what is missing)

  • Runs when galaxy.yml's version on main differs from the latest v* tag, or a release is incomplete.
  • The expected commit: the commit on main's first-parent history where galaxy.yml's version: became the version being released. In the normal case it is the pushed commit. When no tag exists, publish builds from and tags the expected commit, never a later one (a first publish that failed before the tag existed can run again on a later push).
  1. Build the tarball (ansible-galaxy collection build) in a worktree of the expected commit when no tag exists (a worktree of the tag in the repair case below); run check_tarball.py and the tag checks before creating anything.
  2. Create the release if missing, with POST /repos/{owner}/{repo}/releases: tag_name: vX.Y.Z, target_commitish = the SHA of the expected commit and a tag_message (this makes the tag annotated, so build.yml's tag check still holds). Notes: antsibull-changelog generate --only-latest --output-format md. If the v* tag already exists (Gitea creates the tag before the release row, so a failure can leave one), require it to be annotated and point at the expected commit, else fail.
  3. Upload the tarball (POST …/releases/{id}/assets) if the release has no such asset.
  4. The annotated tag message carries the sha256 of the build's MANIFEST.json, not the tarball's (ansible-galaxy collection build is not reproducible, so the tarball's sha256 cannot survive a rebuild).
  5. Publish has its own concurrency group with cancel-in-progress: false.
  • Chain check in check_tarball.py: the sha256 of MANIFEST.json must equal the value in the tag message, FILES.json must match MANIFEST.json's file_manifest_file.chksum_sha256, and every ftype: file entry must match its sha256 in FILES.json. Publish runs this check:
    • on the fresh build before the release and tag are created; the tag message is written from that build;
    • on a repair rebuild before upload; a mismatch fails the job;
    • on an existing asset; a pass is a no-op, and a failure fails the job loudly. CI never deletes or replaces an asset.
  • Repair builds from the tag: when the tag exists and the asset is missing, build in a worktree of the tag, not the pushed commit. First assert that the tag's commit is the expected commit (defined above).

No knope, no third-party release action: curl against the API, so no third-party code holds the token. Pass refs and names through env:, never ${{ }} in run:.

Also

  • scripts/select_molecule_scenarios.py: a diff of only the galaxy.yml version: line plus changelogs/ selects no scenarios (add to IGNORED only if not already handled): a release pull request should run no scenarios.
  • Release text: docs/contributing/releases-and-secrets.md is not created. When the release workflow lands, this issue changes the release text in docs/contributing/maintaining.md (the procedure) and docs/contributing/making-a-change.md (the contributor half) to "a release happens only by merging the generated release pull request" (contributors write fragments, never the version; the maintainer keeps tag permission as an override).
  • The "Releases are the operator's: annotated tags…" bullet in the agent context (the root or nested AGENTS.md, per the contributor-doc split and the AGENTS.md issues that land first, not CLAUDE.md) and in CONTRIBUTING.md is updated to those homes.
  • README.md ("annotated vX.Y.Z tags pushed by the" maintainer): replace with the generated release pull request, as for the agent context and CONTRIBUTING.md.
  • The "one workflow per secret" rule is stated in full only in .gitea/workflows/AGENTS.md. Do not restate it elsewhere; check that .gitea/workflows/AGENTS.md names release.yml as live, no longer planned.
  • Changelog fragment: not needed (tooling, in build_ignore).

Acceptance

  • A push to main with a minor_changes fragment opens a release pull request with the next minor version, and its Lint, Build and Molecule run.
  • A push with only trivial fragments opens none.
  • Merging it creates an annotated vX.Y.Z tag and a Gitea Release with the notes and the tarball; build.yml's tag run passes.
  • Tests:
    • a rerun after a failed upload adds the tarball from the tagged commit, even when a later commit is checked out, and nothing else;
    • a publish that first runs on a later push (no tag yet) tags and builds the commit that set the version, not the pushed commit;
    • an asset with a changed file fails the job;
    • an asset whose FILES.json and file were both rewritten fails the job;
    • a rebuild whose MANIFEST.json differs from the tag message fails the job.

Open proposals

  • 2026-11-16: the order on the bot account issue is soft (only the live-run acceptance needs it); proposal for the maintainer to keep the edge and say "do not start before", or drop the edge. Not decided.
Spec: [Release automation](https://git.rkdr.net/Mortis/Kamino/issues/98). Needs the credential from [the kamino-release bot account issue](https://git.rkdr.net/Mortis/Kamino/issues/174) for a live run; the code can be written before. Blocked by [#262](https://git.rkdr.net/Mortis/Kamino/issues/262): this issue edits `docs/contributing/maintaining.md`, which #262 creates. ## What A new `.gitea/workflows/release.yml` with two jobs, both on push to `main` only (never on a pull request), both using the release bot's token from its repository secret. **prepare** - Runs on every push to `main` while fragments that call for a release are pending (not only on pushes that add one), so the release pull request never sits behind `main`. - `concurrency: {group: release-prepare, cancel-in-progress: true}`, so an older run cannot force-push last. - A short Python script under `scripts/` (with tests) reads the pending fragments in `changelogs/fragments/` and derives the next version from the last release, using the fragment-to-bump function shared with [the version check issue](https://git.rkdr.net/Mortis/Kamino/issues/176) (whichever of the two issues lands first creates the module, the other imports it): - `breaking_changes`, `removed_features` → major - `minor_changes`, `deprecated_features` → minor - `bugfixes`, `security_fixes`, `known_issues` → patch - only `trivial` (or none) → no release: close any open release pull request and stop. - `major_changes` is not mapped (it leaves `changelogs/config.yaml`, see #176). - Compare versions as versions, not strings (1.10.0 > 1.9.0). - Write a `release_summary` fragment with a fixed one-liner, set `galaxy.yml`'s version, run `antsibull-changelog release`. - `release/*` is a protected branch, so nobody can delete it and "delete branch after merge" is skipped for it. Reuse the fixed branch `release/next` (force-push onto it), never delete and recreate it, and open, or update, its pull request (`chore(release): X.Y.Z`) through the Gitea API with `curl`. - The release pull request is merged with the merge button at the head the maintainer read, never scheduled, because prepare refreshes the branch on every push to `main`. **publish** (converges: runs on every push to `main` and does only what is missing) - Runs when `galaxy.yml`'s version on `main` differs from the latest `v*` tag, or a release is incomplete. - **The expected commit:** the commit on `main`'s first-parent history where `galaxy.yml`'s `version:` became the version being released. In the normal case it is the pushed commit. When no tag exists, publish builds from and tags the expected commit, never a later one (a first publish that failed before the tag existed can run again on a later push). 1. Build the tarball (`ansible-galaxy collection build`) in a worktree of the expected commit when no tag exists (a worktree of the tag in the repair case below); run `check_tarball.py` and the tag checks before creating anything. 2. Create the release if missing, with `POST /repos/{owner}/{repo}/releases`: `tag_name: vX.Y.Z`, `target_commitish` = the SHA of the expected commit and a `tag_message` (this makes the tag annotated, so `build.yml`'s tag check still holds). Notes: `antsibull-changelog generate --only-latest --output-format md`. If the `v*` tag already exists (Gitea creates the tag before the release row, so a failure can leave one), require it to be annotated and point at the expected commit, else fail. 3. Upload the tarball (`POST …/releases/{id}/assets`) if the release has no such asset. 4. The annotated tag message carries the sha256 of the build's `MANIFEST.json`, not the tarball's (`ansible-galaxy collection build` is not reproducible, so the tarball's sha256 cannot survive a rebuild). 5. Publish has its own concurrency group with `cancel-in-progress: false`. - **Chain check in `check_tarball.py`:** the sha256 of `MANIFEST.json` must equal the value in the tag message, `FILES.json` must match `MANIFEST.json`'s `file_manifest_file.chksum_sha256`, and every `ftype: file` entry must match its sha256 in `FILES.json`. Publish runs this check: - on the fresh build before the release and tag are created; the tag message is written from that build; - on a repair rebuild before upload; a mismatch fails the job; - on an existing asset; a pass is a no-op, and a failure fails the job loudly. CI never deletes or replaces an asset. - **Repair builds from the tag:** when the tag exists and the asset is missing, build in a worktree of the tag, not the pushed commit. First assert that the tag's commit is the expected commit (defined above). No knope, no third-party release action: `curl` against the API, so no third-party code holds the token. Pass refs and names through `env:`, never `${{ }}` in `run:`. ## Also - `scripts/select_molecule_scenarios.py`: a diff of only the `galaxy.yml` `version:` line plus `changelogs/` selects no scenarios (add to IGNORED only if not already handled): a release pull request should run no scenarios. - Release text: `docs/contributing/releases-and-secrets.md` is not created. When the release workflow lands, this issue changes the release text in `docs/contributing/maintaining.md` (the procedure) and `docs/contributing/making-a-change.md` (the contributor half) to "a release happens only by merging the generated release pull request" (contributors write fragments, never the version; the maintainer keeps tag permission as an override). - The "Releases are the operator's: annotated tags…" bullet in the agent context (the root or nested `AGENTS.md`, per the contributor-doc split and the `AGENTS.md` issues that land first, not `CLAUDE.md`) and in `CONTRIBUTING.md` is updated to those homes. - `README.md` ("annotated `vX.Y.Z` tags pushed by the" maintainer): replace with the generated release pull request, as for the agent context and `CONTRIBUTING.md`. - The "one workflow per secret" rule is stated in full only in `.gitea/workflows/AGENTS.md`. Do not restate it elsewhere; check that `.gitea/workflows/AGENTS.md` names `release.yml` as live, no longer planned. - Changelog fragment: not needed (tooling, in `build_ignore`). ## Acceptance - A push to `main` with a `minor_changes` fragment opens a release pull request with the next minor version, and its Lint, Build and Molecule run. - A push with only `trivial` fragments opens none. - Merging it creates an annotated `vX.Y.Z` tag and a Gitea Release with the notes and the tarball; `build.yml`'s tag run passes. - Tests: - a rerun after a failed upload adds the tarball from the tagged commit, even when a later commit is checked out, and nothing else; - a publish that first runs on a later push (no tag yet) tags and builds the commit that set the version, not the pushed commit; - an asset with a changed file fails the job; - an asset whose `FILES.json` and file were both rewritten fails the job; - a rebuild whose `MANIFEST.json` differs from the tag message fails the job. ## Open proposals - 2026-11-16: the order on the bot account issue is soft (only the live-run acceptance needs it); proposal for the maintainer to keep the edge and say "do not start before", or drop the edge. Not decided.
Claude added the
Status
Ready for Agent
label 2026-11-15 18:39:39 +00:00
Claude added a new dependency 2026-11-15 22:20:53 +00:00
Claude added this to the Continuous delivery milestone 2026-11-15 22:21:21 +00:00
Author
Owner

Order: this now waits on the contributor-doc split (#189) where it edits CONTRIBUTING.md, and on docs(agents): replace CLAUDE.md with a root AGENTS.md (#185): put the CLAUDE.md edits in the root or nested AGENTS.md instead. (From Order of the implementation backlog, #198.)

Order: this now waits on the contributor-doc split (#189) where it edits `CONTRIBUTING.md`, and on docs(agents): replace CLAUDE.md with a root AGENTS.md (#185): put the `CLAUDE.md` edits in the root or nested `AGENTS.md` instead. (From Order of the implementation backlog, #198.)
Author
Owner

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

Waiting on another decision: the fragment check's escape for the release pull request, the release branch allowlist, publish recovery and tarball integrity wait on Release path: fragment check, failed publish and tarball integrity.

Review of the map (2026-11-15): corrections to this issue. - **The secrets rule under "Also" is the superseded wording.** It says: "only `image.yml` (registry credential) and `release.yml` (release credential) reference secrets, each only its own." That leaves out `renovate.yml`, which references its own token (`.gitea/workflows/renovate.yml:57`). [Enforcement map for each prose-only rule](https://git.rkdr.net/Mortis/Kamino/issues/102) restated the 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 `secrets.` except the job token". That wording is already in [docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs](https://git.rkdr.net/Mortis/Kamino/issues/182) and [docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/](https://git.rkdr.net/Mortis/Kamino/issues/189), and both land before this issue. Taken as written, this issue would overwrite the correct rule with a false one. Change: drop that bullet, or replace it with "check that `.gitea/workflows/AGENTS.md` and `docs/contributing/releases-and-secrets.md` name `release.yml` as live, no longer planned". - **The order on the bot account issue is soft.** The body says "the code can be written before" the credential exists, yet the issue is blocked by [chore: create the kamino-release bot account, its token, the v* tag allowlist entry and the repository secret](https://git.rkdr.net/Mortis/Kamino/issues/174). Only the live-run acceptance needs it. Proposal for the maintainer: keep the edge and say "do not start before", or drop the edge and leave the live-run acceptance waiting on that issue. Waiting on another decision: the fragment check's escape for the release pull request, the release branch allowlist, publish recovery and tarball integrity wait on [Release path: fragment check, failed publish and tarball integrity](https://git.rkdr.net/Mortis/Kamino/issues/211).
Author
Owner

Spec change from Release path: fragment check, failed publish and tarball integrity. These replace the matching parts of the body.

publish converges (runs on every push to main, does only what is missing):

  1. Build the tarball; run check_tarball.py and the tag checks before creating anything.
  2. Create the release if missing. If the v* tag already exists (Gitea creates the tag before the release row, so a failure can leave one), require it to be annotated and point at the expected commit, else fail.
  3. Upload the tarball if the release has no such asset; if one exists and its sha256 differs, fail loudly.
  4. The annotated tag message carries the tarball's sha256.
  5. Publish has its own concurrency group with cancel-in-progress: false.
    Test a rerun after a failed upload: it adds the tarball and nothing else.

prepare

  • Runs on every push to main while fragments that call for a release are pending (not only on pushes that add one), so the release pull request never sits behind main.
  • concurrency: {group: release-prepare, cancel-in-progress: true}, so an older run cannot force-push last.
  • scripts/select_molecule_scenarios.py: a diff of only the galaxy.yml version: line plus changelogs/ selects no scenarios.

Also

  • README.md ("annotated vX.Y.Z tags pushed by the" maintainer): replace with the generated release pull request, as for the agent context and CONTRIBUTING.md.
  • The shared fragment-to-bump module: whichever of this issue and #176 lands first creates it.
Spec change from [Release path: fragment check, failed publish and tarball integrity](https://git.rkdr.net/Mortis/Kamino/issues/211). These replace the matching parts of the body. **publish converges** (runs on every push to `main`, does only what is missing): 1. Build the tarball; run `check_tarball.py` and the tag checks before creating anything. 2. Create the release if missing. If the `v*` tag already exists (Gitea creates the tag before the release row, so a failure can leave one), require it to be annotated and point at the expected commit, else fail. 3. Upload the tarball if the release has no such asset; if one exists and its sha256 differs, fail loudly. 4. The annotated tag message carries the tarball's sha256. 5. Publish has its own concurrency group with `cancel-in-progress: false`. Test a rerun after a failed upload: it adds the tarball and nothing else. **prepare** - Runs on every push to `main` while fragments that call for a release are pending (not only on pushes that add one), so the release pull request never sits behind `main`. - `concurrency: {group: release-prepare, cancel-in-progress: true}`, so an older run cannot force-push last. - `scripts/select_molecule_scenarios.py`: a diff of only the `galaxy.yml` `version:` line plus `changelogs/` selects no scenarios. **Also** - `README.md` ("annotated `vX.Y.Z` tags pushed by the" maintainer): replace with the generated release pull request, as for the agent context and `CONTRIBUTING.md`. - The shared fragment-to-bump module: whichever of this issue and [#176](https://git.rkdr.net/Mortis/Kamino/issues/176) lands first creates it.
Author
Owner

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

  • major_changes. The body maps "major_changes, minor_changes, deprecated_features → minor". It should say: minor is minor_changes and deprecated_features only; major_changes is not mapped. Decided by Role standard gaps found in review, rule 8. This issue and the version-check issue share one function, so without this fix the result depends on which merges first.
  • Repair path. The publish steps do not say what an existing asset is compared with, and a rebuilt tarball never has the sha256 the tag message holds: ansible-galaxy collection build is not reproducible (reproduced; the build stamps the current time into two members). Open in What the tarball checksum in the tag message proves when a publish is repaired.

Changed: this issue is now blocked by that ticket.

Review of the map (2026-11-17). - **`major_changes`.** The body maps "`major_changes`, `minor_changes`, `deprecated_features` → minor". It should say: minor is `minor_changes` and `deprecated_features` only; `major_changes` is not mapped. Decided by [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214), rule 8. This issue and the version-check issue share one function, so without this fix the result depends on which merges first. - **Repair path.** The publish steps do not say what an existing asset is compared with, and a rebuilt tarball never has the sha256 the tag message holds: `ansible-galaxy collection build` is not reproducible (reproduced; the build stamps the current time into two members). Open in [What the tarball checksum in the tag message proves when a publish is repaired](https://git.rkdr.net/Mortis/Kamino/issues/255). Changed: this issue is now blocked by that ticket.
Author
Owner

Scope added by Pushes onto a pull request that has a scheduled merge (resolution, points 1 and 4): release/* is a protected branch, so nobody can delete it and "delete branch after merge" is skipped for it. The prepare job must reuse release/next (force-push onto it) rather than delete and recreate it. The release pull request is merged with the merge button at the head the maintainer read, never scheduled, because prepare refreshes the branch on every push to main.

Scope added by [Pushes onto a pull request that has a scheduled merge](https://git.rkdr.net/Mortis/Kamino/issues/248) (resolution, points 1 and 4): `release/*` is a protected branch, so nobody can delete it and "delete branch after merge" is skipped for it. The prepare job must reuse `release/next` (force-push onto it) rather than delete and recreate it. The release pull request is merged with the merge button at the head the maintainer read, never scheduled, because prepare refreshes the branch on every push to `main`.
Author
Owner

Spec change from What the tarball checksum in the tag message proves when a publish is repaired (2026-11-20)

ansible-galaxy collection build is not reproducible, so the tarball's sha256 cannot survive a rebuild. This replaces the tarball sha256 and the "existing asset that differs" wording from the release-path comment:

  • Tag message: the annotated tag message carries the sha256 of the build's MANIFEST.json, not the tarball's.
  • Chain check in check_tarball.py: the sha256 of MANIFEST.json must equal the value in the tag message, FILES.json must match MANIFEST.json's file_manifest_file.chksum_sha256, and every ftype: file entry must match its sha256 in FILES.json. Publish runs this check:
    • on the fresh build before the release and tag are created; the tag message is written from that build;
    • on a repair rebuild before upload; a mismatch fails the job;
    • on an existing asset; a pass is a no-op, and a failure fails the job loudly. CI never deletes or replaces an asset.
  • Repair builds from the tag: when the tag exists and the asset is missing, build in a worktree of the tag, not the pushed commit. First assert that the tag's commit is the commit on main's first-parent history where galaxy.yml's version: became the tagged version. That is "the expected commit".
  • Tests:
    • a rerun after a failed upload adds the tarball from the tagged commit, even when a later commit is checked out;
    • an asset with a changed file fails the job;
    • an asset whose FILES.json and file were both rewritten fails the job;
    • a rebuild whose MANIFEST.json differs from the tag message fails the job.

This issue is no longer blocked by that ticket.

## Spec change from [What the tarball checksum in the tag message proves when a publish is repaired](https://git.rkdr.net/Mortis/Kamino/issues/255) (2026-11-20) `ansible-galaxy collection build` is not reproducible, so the tarball's sha256 cannot survive a rebuild. This replaces the tarball sha256 and the "existing asset that differs" wording from the release-path comment: - **Tag message:** the annotated tag message carries the sha256 of the build's `MANIFEST.json`, not the tarball's. - **Chain check in `check_tarball.py`:** the sha256 of `MANIFEST.json` must equal the value in the tag message, `FILES.json` must match `MANIFEST.json`'s `file_manifest_file.chksum_sha256`, and every `ftype: file` entry must match its sha256 in `FILES.json`. Publish runs this check: - on the fresh build before the release and tag are created; the tag message is written from that build; - on a repair rebuild before upload; a mismatch fails the job; - on an existing asset; a pass is a no-op, and a failure fails the job loudly. CI never deletes or replaces an asset. - **Repair builds from the tag:** when the tag exists and the asset is missing, build in a worktree of the tag, not the pushed commit. First assert that the tag's commit is the commit on `main`'s first-parent history where `galaxy.yml`'s `version:` became the tagged version. That is "the expected commit". - **Tests:** - a rerun after a failed upload adds the tarball from the tagged commit, even when a later commit is checked out; - an asset with a changed file fails the job; - an asset whose `FILES.json` and file were both rewritten fails the job; - a rebuild whose `MANIFEST.json` differs from the tag message fails the job. This issue is no longer blocked by that ticket.
Author
Owner

Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, #87 (comment)). The body is the spec; the earlier comments are history.

  • Scope from #258 (never posted here): docs/contributing/releases-and-secrets.md is not created; when the workflow lands this issue changes the release text in maintaining.md (procedure) and making-a-change.md (contributor half) to "a release happens only by merging the generated release pull request"; the "Releases are the operator's…" bullet in the agent context and CONTRIBUTING.md is updated to those homes.
  • The "one workflow per secret" rule is stated only in .gitea/workflows/AGENTS.md; this issue only checks it names release.yml as live.
  • The tag message carries the MANIFEST.json sha256 (not the tarball's), with the chain check, repair-from-tag rule and tests from the #255 comment.
  • major_changes is not mapped (decision 1 of that round, carried by #176).
  • The body had drifted from its comments in many places (mapping, secrets bullet, converging publish, prepare rules, README bullet, release/next reuse), hence a full rewrite rather than an edit. The soft-order proposal on the bot account issue is listed under "Open proposals".
Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281). The body is the spec; the earlier comments are history. - Scope from #258 (never posted here): `docs/contributing/releases-and-secrets.md` is not created; when the workflow lands this issue changes the release text in `maintaining.md` (procedure) and `making-a-change.md` (contributor half) to "a release happens only by merging the generated release pull request"; the "Releases are the operator's…" bullet in the agent context and `CONTRIBUTING.md` is updated to those homes. - The "one workflow per secret" rule is stated only in `.gitea/workflows/AGENTS.md`; this issue only checks it names `release.yml` as live. - The tag message carries the `MANIFEST.json` sha256 (not the tarball's), with the chain check, repair-from-tag rule and tests from the #255 comment. - `major_changes` is not mapped (decision 1 of that round, carried by #176). - The body had drifted from its comments in many places (mapping, secrets bullet, converging publish, prepare rules, README bullet, `release/next` reuse), hence a full rewrite rather than an edit. The soft-order proposal on the bot account issue is listed under "Open proposals".
Author
Owner

Final validation round, second pass (2026-11-20): body edited.

  • "The expected commit" is now defined once, at the top of publish (the commit on main's first-parent history where galaxy.yml's version: became the released version; normally the pushed commit); the repair bullet refers to it.
  • Steps 1 and 2: when no tag exists, publish builds from and tags the expected commit (target_commitish = its SHA), never a later push's commit.
  • Added a test line: a publish that first runs on a later push tags and builds the commit that set the version.
  • Added dependency: blocked by #262, because this issue edits docs/contributing/maintaining.md, which #262 creates; one line saying so is in the body.
  • The comments above stay as history.
Final validation round, second pass (2026-11-20): body edited. - "The expected commit" is now defined once, at the top of publish (the commit on `main`'s first-parent history where `galaxy.yml`'s `version:` became the released version; normally the pushed commit); the repair bullet refers to it. - Steps 1 and 2: when no tag exists, publish builds from and tags the expected commit (`target_commitish` = its SHA), never a later push's commit. - Added a test line: a publish that first runs on a later push tags and builds the commit that set the version. - Added dependency: blocked by #262, because this issue edits `docs/contributing/maintaining.md`, which #262 creates; one line saying so is in the body. - The comments above stay as history.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#175