Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .apache-magpie-overrides/release-prepare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Apache Magpie — release-prepare overrides](#apache-magpie--release-prepare-overrides)
- [Override 1 — Run the pre-release sweep before the planning issue](#override-1--run-the-pre-release-sweep-before-the-planning-issue)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->

# Apache Magpie — release-prepare overrides

Agent-readable overrides `release-prepare` applies when the Apache Magpie release manager prepares a Magpie release.
Contract: [`docs/setup/agentic-overrides.md`](../docs/setup/agentic-overrides.md).

## Override 1 — Run the pre-release sweep before the planning issue

Before Step 1 (`plan`) drafts the planning issue, run [`pre-release-sweep`](../skills/pre-release-sweep/SKILL.md) over the range from the previous release tag to `main`, unless the release manager has already run it for this release and `main` has not moved since.
Do not draft the planning issue until the sweep's PR plan has been through its approval step.

Record in the planning issue, under a *Pre-release sweep* heading:

- the commit the sweep ran at;
- each fix PR it produced, as a link, with its state;
- the findings the release manager deferred past this release, each with its follow-up issue;
- the issues it closed or proposed to close.

Before Step 2 (`prep`) drafts the version-bump PR, check that every sweep PR the release manager marked release-blocking has merged, and that the sweep's spec-sync PR has merged, since a version bump ships what the specs describe ([`CONTRIBUTING.md` → Bumping the dev version](../CONTRIBUTING.md#bumping-the-dev-version)).
If one has not, stop and name it; the release manager decides whether to wait or to defer it.
6 changes: 6 additions & 0 deletions docs/release-management/atr-release-runbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ atr jwt refresh # exchanges the PAT for a short-lived JWT
Identical to the `svnpubsub` flow. Run
[`release-prepare`](../../skills/release-prepare/SKILL.md):

0. For a release of Apache Magpie itself, it first runs
[`pre-release-sweep`](../../skills/pre-release-sweep/SKILL.md)
and records the result in the planning issue
([`.apache-magpie-overrides/release-prepare.md`](../../.apache-magpie-overrides/release-prepare.md)).

1. It opens the **release-planning issue** (Step 1).
2. It drafts the **version-bump + `CHANGELOG` + `NOTICE`/`LICENSE`
PR** (Step 2). Merge it before composing the RC.
Expand Down Expand Up @@ -513,6 +518,7 @@ repository for a worked GitHub Actions example.

## Release Manager checklist

- [ ] (Apache Magpie) `pre-release-sweep` run; its release-blocking PRs and its spec-sync PR merged; deferred findings filed as issues
- [ ] `atr` client installed (Python 3.12+) and authenticated
(`atr set asf.uid` / `atr set tokens.pat` / `atr jwt refresh`)
- [ ] OpenPGP public key registered with the Magpie committee in ATR
Expand Down