Skip to contentSkip to conversation

docs: Rewrite the Tagging and Branching checklist

PATCH In review Andrew Cooper 2 participants 4 messages Nov 12, 2025 – Nov 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Rewrite the Tagging and Branching checklist

There's a lot of stale information in the current checklists. Merge the documents and present the information in chronological order. Provide real examples from the tree rather than trying to be too prescriptive.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Oleksii Kurochko <[email protected]>

A rendered version can be found here:

https://andrewcoop-xen.readthedocs.io/en/docs-branching/process/tagging-branching.html

As I'm about to do the 4.21 release, I'm tempted to defer this patch until after I've done so, so all the examples can be consistently 4.21.

I wanted to replace CVS with something more modern, but Git really sucks with binary files and this repo in particular. (For anyone interested, the VM is so small that the Git server process OOM's when you try to clone it.)

This is (AFAICT) an accurate statement of what gets done. It highlights some inconsistences with how we branch and tag other trees, particularly QEMU which is now the only tree that moves back to being master.

---
 docs/index.rst                                |   9 +
 docs/process/branching-checklist.txt          |  91 --------
 docs/process/index.rst                        |   9 +
 docs/process/release-technician-checklist.txt | 174 ----------------
 docs/process/tagging-branching.rst            | 194 ++++++++++++++++++
 5 files changed, 212 insertions(+), 265 deletions(-)
 delete mode 100644 docs/process/branching-checklist.txt
 create mode 100644 docs/process/index.rst
 delete mode 100644 docs/process/release-technician-checklist.txt
 create mode 100644 docs/process/tagging-branching.rst
docs/index.rst +9 -0
index bd87d736b9c3..3513d4b609d8 100644
@@ -54,6 +54,15 @@ kind of development environment.
    misc/ci
 
 
+Process documentation
+---------------------
+
+.. toctree::
+   :maxdepth: 2
+
+   process/index
+
+
 Unsorted documents
 ------------------
 
docs/process/branching-checklist.txt deleted +0 -91

91 lines not on this page · raw message

docs/process/index.rst new file +9 -0
new file mode 100644
index 000000000000..d83d6ba9271d
@@ -0,0 +1,9 @@
+.. SPDX-License-Identifier: CC-BY-4.0
+
+Process documentation
+=====================
+
+.. toctree::
+   :maxdepth: 2
+
+   tagging-branching
docs/process/release-technician-checklist.txt deleted +0 -174

174 lines not on this page · raw message

docs/process/tagging-branching.rst new file +194 -0

194 lines not on this page · raw message

base-commit: 781cf8affe407654fd5d216f3bcb148601f1a61f

Signature · 1 line
2.39.5
#1 lore raw
Quoted 5 lines · Andrew Cooper

There's a lot of stale information in the current checklists. Merge the documents and present the information in chronological order. Provide real examples from the tree rather than trying to be too prescriptive.

Hardly anything is being said about stable releases - is this intentional?

A few comments below, but ultimately I think it will need to be Julien to ack.

Quoted 23 lines
docs/process/tagging-branching.rst new file +20 -0
@@ -0,0 +1,194 @@
+.. SPDX-License-Identifier: CC-BY-4.0
+
+===============================
+Tagging and Branching Checklist
+===============================
+
+Before starting
+===============
+
+ * Review this checklist for changes during the development window.
+ * Access to the following necessary:
+
+   * The 'xen tree' signing key.
+   * The xen and xendocs users on xenbits.xen.org
+   * The downloads-cvs user on mail.xenproject.org
+   * A checkout of the xen.org CVS repository
+
+::
+
+  cvs -d [email protected]:/home/downloads-cvs/cvs-repos checkout xen.org

docs/process/tagging-branching.rst line 30

Quoted 10 lines
docs/process/tagging-branching.rst new file +10 -0
+
+
+For RC1
+=======
+
+ * Pin ``QEMU_UPSTREAM_REVISION`` to an exact SHA.  Commit.
+
+ * Update ``XEN_EXTRAVERSION`` from ``-unstable`` to ``.0-rc1``.  For
+   ``README`` and ``SUPPORT.md``, use the slightly more generic ``-rc`` so
+   they doesn't need to change during subsequent RCs.  Commit.

Nit: don't

Quoted 57 lines
docs/process/tagging-branching.rst new file +57 -0
+ * Tag.  Produce tarballs.
+
+e.g. from Xen 4.21, ``ffd25d717a74^..d1478321eacb``::
+
+  * d1478321eacb - (tag: 4.21.0-rc1) Update Xen version to 4.21.0-rc1
+  * ffd25d717a74 - Config.mk: Pin QEMU_UPSTREAM_REVISION
+
+
+For subsequent RCs
+==================
+
+ * Update ``XEN_EXTRAVERSION`` to the next RC number.  Commit.  Tag.
+
+e.g. from Xen 4.21, ``eff32008be0d`` and ``9632ce6fe5b2``::
+
+  * 9632ce6fe5b2 - (tag: 4.21.0-rc3) Update Xen version to 4.21.0-rc3
+  * eff32008be0d - (tag: 4.21.0-rc2) Update Xen version to 4.21.0-rc2
+
+
+Branching
+=========
+
+On xenbits:
+
+ * Create new staging and stable branches in xen.git.
+
+ * Add the new branches to patchbot.  In ``~xen/HG/patchbot`` copy the exsting
+   master and staging reported heads, update the ``versions`` file, and commit
+   the result.
+
+ * Add the new stable branch to the docs cronjob.  In ``~xendocs/cronjobs``
+   edit ``xenbits-docs-all.sh`` and commit the result.  e.g.:
+
+::
+
+  ssh xenbits.xen.org
+
+  cd ~xen/git/xen.git
+  git branch staging-$v staging
+  git branch stable-$v master
+
+  cd ~xen/HG/patchbot
+  cp xen--master.patchbot-reported-heads xen--stable-$v.patchbot-reported-heads
+  cp xen--staging.patchbot-reported-heads xen--staging-$v.patchbot-reported-heads
+  $EDITOR versions
+  git commit -am "Branch for $v"
+
+  cd ~xendocs/cronjobs
+  $EDITOR xenbits-docs-all.sh
+  git commit -am "Branch for $v"
+
+
+On the new branch:
+
+ * Switch to release builds by default.  Commit.
+
+On staging:

docs/process/tagging-branching.rst line 98

Quoted 10 lines
docs/process/tagging-branching.rst new file +10 -0
+
+ * Update ``XEN_SUBVERSION`` to the next version.  Update
+   ``XEN_EXTRAVERSION``, ``README`` and ``SUPPORT.md`` back to ``-unstable``.
+   Commit.  Tag the start of the new development window.
+
+ * Rerun ``./autogen.sh`` to refresh the configure scripts.  Commit.
+
+ * Switch ``QEMU_UPSTREAM_REVISION`` back to ``master``.  Commit.
+
+ * Create a new section in ``CHANGELOG.md``.  Commit.

Should this really be four separate commits?

Quoted 11 lines
docs/process/tagging-branching.rst new file +11 -0
+e.g. from Xen 4.21, ``d510f9c1430c^..62d0a92057ca`` and ``d510f9c1430c^..b0255656d121``::
+
+  * 62d0a92057ca - CHANGELOG.md: Start a new 4.22 section
+  * 7b88e463f999 - Config.mk: Switch QEMU back to master
+  * d954e8c5c8de - Rerun ./autogen.sh for 4.22
+  * 85768c28b705 - (tag: 4.22-dev) Update Xen to 4.22
+  | * b0255656d121 - (staging-4.21) Switch to release builds by default
+  |/
+  * d510f9c1430c - doc/man: Align list of viridian default enlightenments with libxl
+
+

docs/process/tagging-branching.rst line 120

Quoted 10 lines
docs/process/tagging-branching.rst new file +10 -0
+Releasing
+=========
+
+ * Finalise the release dates in ``CHANGELOG.md`` (backported from staging)
+   and ``SUPPORT.md`` (only in the release branch).
+
+ * Tag the release in relevant external repos, and update ``Config.mk`` to
+   refer to the tag.
+
+ * Update ``XEN_EXTRAVERSION`` to drop the ``-rc`` suffix, and update

Since further up it's now rc<N>, imo it would be better to also say it that way here.

docs/process/tagging-branching.rst line 121

Quoted 1 line
docs/process/tagging-branching.rst new file +1 -0
+   ``README`` to match.  Commit.

The latest here QEMU_UPSTREAM_REVISION and MINIOS_UPSTREAM_REVISION also need adjusting to reference version tags, aiui. Taking tag creation in the respective leaf trees as prereq.

docs/process/tagging-branching.rst line 120

Quoted 1 line
docs/process/tagging-branching.rst new file +1 -0
+ * Tag.  Produce tarballs.

Link to the respective section further down?

docs/process/tagging-branching.rst line 134

Quoted 10 lines
docs/process/tagging-branching.rst new file +10 -0
+e.g. from Xen 4.20, ``5cd830509d38^..3ad5d648cda5``::
+
+  * 3ad5d648cda5 - (tag: RELEASE-4.20.0) Update to Xen 4.20
+  * 89fd1ba88403 - Config.mk: Bump tags to final
+  * 6bf05e086765 - SUPPORT.md: Define support lifetime
+  * 5cd830509d38 - CHANGELOG.md: Set release date for 4.20
+
+
+Tagging
+=======

Likewise this section may want linking to from respective places above?

Jan

#2 lore raw
Quoted 7 lines · Jan Beulich
Quoted 5 lines · Andrew Cooper

There's a lot of stale information in the current checklists. Merge the documents and present the information in chronological order. Provide real examples from the tree rather than trying to be too prescriptive.

Hardly anything is being said about stable releases - is this intentional?

Is there anything you think I'm missing?

I suppose the releasing section is slightly specific to new releases, but for the stable release, it really is just bump extraversion, commit and tag, and where usually tag is the only action after you've prepared the tree.

Quoted 99 lines

A few comments below, but ultimately I think it will need to be Julien to ack.

Quoted 23 lines
docs/process/tagging-branching.rst new file +20 -0
@@ -0,0 +1,194 @@
+.. SPDX-License-Identifier: CC-BY-4.0
+
+===============================
+Tagging and Branching Checklist
+===============================
+
+Before starting
+===============
+
+ * Review this checklist for changes during the development window.
+ * Access to the following necessary:
+
+   * The 'xen tree' signing key.
+   * The xen and xendocs users on xenbits.xen.org
+   * The downloads-cvs user on mail.xenproject.org
+   * A checkout of the xen.org CVS repository
+
+::
+
+  cvs -d [email protected]:/home/downloads-cvs/cvs-repos checkout xen.org

docs/process/tagging-branching.rst line 30

Quoted 10 lines
docs/process/tagging-branching.rst new file +10 -0
+
+
+For RC1
+=======
+
+ * Pin ``QEMU_UPSTREAM_REVISION`` to an exact SHA.  Commit.
+
+ * Update ``XEN_EXTRAVERSION`` from ``-unstable`` to ``.0-rc1``.  For
+   ``README`` and ``SUPPORT.md``, use the slightly more generic ``-rc`` so
+   they doesn't need to change during subsequent RCs.  Commit.

Nit: don't

Quoted 60 lines
docs/process/tagging-branching.rst new file +60 -0
+ * Tag.  Produce tarballs.
+
+e.g. from Xen 4.21, ``ffd25d717a74^..d1478321eacb``::
+
+  * d1478321eacb - (tag: 4.21.0-rc1) Update Xen version to 4.21.0-rc1
+  * ffd25d717a74 - Config.mk: Pin QEMU_UPSTREAM_REVISION
+
+
+For subsequent RCs
+==================
+
+ * Update ``XEN_EXTRAVERSION`` to the next RC number.  Commit.  Tag.
+
+e.g. from Xen 4.21, ``eff32008be0d`` and ``9632ce6fe5b2``::
+
+  * 9632ce6fe5b2 - (tag: 4.21.0-rc3) Update Xen version to 4.21.0-rc3
+  * eff32008be0d - (tag: 4.21.0-rc2) Update Xen version to 4.21.0-rc2
+
+
+Branching
+=========
+
+On xenbits:
+
+ * Create new staging and stable branches in xen.git.
+
+ * Add the new branches to patchbot.  In ``~xen/HG/patchbot`` copy the exsting
+   master and staging reported heads, update the ``versions`` file, and commit
+   the result.
+
+ * Add the new stable branch to the docs cronjob.  In ``~xendocs/cronjobs``
+   edit ``xenbits-docs-all.sh`` and commit the result.  e.g.:
+
+::
+
+  ssh xenbits.xen.org
+
+  cd ~xen/git/xen.git
+  git branch staging-$v staging
+  git branch stable-$v master
+
+  cd ~xen/HG/patchbot
+  cp xen--master.patchbot-reported-heads xen--stable-$v.patchbot-reported-heads
+  cp xen--staging.patchbot-reported-heads xen--staging-$v.patchbot-reported-heads
+  $EDITOR versions
+  git commit -am "Branch for $v"
+
+  cd ~xendocs/cronjobs
+  $EDITOR xenbits-docs-all.sh
+  git commit -am "Branch for $v"
+
+
+On the new branch:
+
+ * Switch to release builds by default.  Commit.
+
+On staging:
+
+ * Update ``XEN_SUBVERSION`` to the next version.  Update
+   ``XEN_EXTRAVERSION``, ``README`` and ``SUPPORT.md`` back to ``-unstable``.
Quoted 8 lines

docs/process/tagging-branching.rst line 98

Quoted 7 lines
docs/process/tagging-branching.rst new file +7 -0
+   Commit.  Tag the start of the new development window.
+
+ * Rerun ``./autogen.sh`` to refresh the configure scripts.  Commit.
+
+ * Switch ``QEMU_UPSTREAM_REVISION`` back to ``master``.  Commit.
+
+ * Create a new section in ``CHANGELOG.md``.  Commit.

Should this really be four separate commits?

It is and has been for a while.

Folding autogen into the version update might be sensible.  Everywhere else needing an autogen does so in the same patch.

But, I don't see it being sensible to fold the remaining thee patches.

This also begs the question of how we indicate a planned change from the example given.  Maybe "Note, example is from prior to deciding to $X", which gets removed when the example gets updated?

If we're going to do that, I'd want to make it a separate change to the main rewrite.

Quoted 16 lines
Quoted 16 lines
docs/process/tagging-branching.rst new file +15 -0
+e.g. from Xen 4.21, ``d510f9c1430c^..62d0a92057ca`` and ``d510f9c1430c^..b0255656d121``::
+
+  * 62d0a92057ca - CHANGELOG.md: Start a new 4.22 section
+  * 7b88e463f999 - Config.mk: Switch QEMU back to master
+  * d954e8c5c8de - Rerun ./autogen.sh for 4.22
+  * 85768c28b705 - (tag: 4.22-dev) Update Xen to 4.22
+  | * b0255656d121 - (staging-4.21) Switch to release builds by default
+  |/
+  * d510f9c1430c - doc/man: Align list of viridian default enlightenments with libxl
+
+
+Releasing
+=========
+
+ * Finalise the release dates in ``CHANGELOG.md`` (backported from staging)
Quoted 8 lines

docs/process/tagging-branching.rst line 120

Quoted 6 lines
docs/process/tagging-branching.rst new file +6 -0
+   and ``SUPPORT.md`` (only in the release branch).
+
+ * Tag the release in relevant external repos, and update ``Config.mk`` to
+   refer to the tag.
+
+ * Update ``XEN_EXTRAVERSION`` to drop the ``-rc`` suffix, and update

Since further up it's now rc<N>, imo it would be better to also say it that way here.

One thing I found very problematic with the older checklists was the excessive use of variables.  In this doc, I've got it down to two, and using the examples to clear up any ambiguity.

Would "to drop the RC suffix" work?  This is supposed to be clear that it means rc and whatever number we've got to, but rc<N> (especially rendered as a literal) doesn't help IMO.

Quoted 5 lines

docs/process/tagging-branching.rst line 121

Quoted 2 lines
docs/process/tagging-branching.rst new file +1 -0
+   ``README`` to match.  Commit.

The latest here QEMU_UPSTREAM_REVISION and MINIOS_UPSTREAM_REVISION also need adjusting to reference version tags, aiui. Taking tag creation in the respective leaf trees as prereq.

That's the previous bullet point.  I should probably make it clearer saying ``*_UPSTREAM_REVISION`` but naming more specifically like that is going to bitrot.

Quoted 3 lines

docs/process/tagging-branching.rst line 120

Quoted 2 lines
docs/process/tagging-branching.rst new file +1 -0
+ * Tag.  Produce tarballs.

Link to the respective section further down?

I considered that.  The linking syntax detracts from the readability as a text file, while on the rendered version it's clear from the navigation panel that there are relevant sections.

~Andrew

#3 lore raw
Quoted 10 lines · Andrew Cooper
Quoted 7 lines · Jan Beulich
Quoted 5 lines · Andrew Cooper

There's a lot of stale information in the current checklists. Merge the documents and present the information in chronological order. Provide real examples from the tree rather than trying to be too prescriptive.

Hardly anything is being said about stable releases - is this intentional?

Is there anything you think I'm missing?

Well, ...

Quoted 4 lines

I suppose the releasing section is slightly specific to new releases, but for the stable release, it really is just bump extraversion, commit and tag, and where usually tag is the only action after you've prepared the tree.

... this distinction isn't made clear (enough) for my taste. And while I agree with "usually", there are the rare cases where qemu and/or minios tags would still need making and propagating (the latter normally being done by me rather than the release engineer).

Quoted 50 lines
Quoted 41 lines
Quoted 41 lines
docs/process/tagging-branching.rst new file +41 -0
+Branching
+=========
+
+On xenbits:
+
+ * Create new staging and stable branches in xen.git.
+
+ * Add the new branches to patchbot.  In ``~xen/HG/patchbot`` copy the exsting
+   master and staging reported heads, update the ``versions`` file, and commit
+   the result.
+
+ * Add the new stable branch to the docs cronjob.  In ``~xendocs/cronjobs``
+   edit ``xenbits-docs-all.sh`` and commit the result.  e.g.:
+
+::
+
+  ssh xenbits.xen.org
+
+  cd ~xen/git/xen.git
+  git branch staging-$v staging
+  git branch stable-$v master
+
+  cd ~xen/HG/patchbot
+  cp xen--master.patchbot-reported-heads xen--stable-$v.patchbot-reported-heads
+  cp xen--staging.patchbot-reported-heads xen--staging-$v.patchbot-reported-heads
+  $EDITOR versions
+  git commit -am "Branch for $v"
+
+  cd ~xendocs/cronjobs
+  $EDITOR xenbits-docs-all.sh
+  git commit -am "Branch for $v"
+
+
+On the new branch:
+
+ * Switch to release builds by default.  Commit.
+
+On staging:
+
+ * Update ``XEN_SUBVERSION`` to the next version.  Update
+   ``XEN_EXTRAVERSION``, ``README`` and ``SUPPORT.md`` back to ``-unstable``.
Quoted 8 lines

docs/process/tagging-branching.rst line 98

Quoted 7 lines
docs/process/tagging-branching.rst new file +7 -0
+   Commit.  Tag the start of the new development window.
+
+ * Rerun ``./autogen.sh`` to refresh the configure scripts.  Commit.
+
+ * Switch ``QEMU_UPSTREAM_REVISION`` back to ``master``.  Commit.
+
+ * Create a new section in ``CHANGELOG.md``.  Commit.

Should this really be four separate commits?

Quoted 1 line

It is and has been for a while.

In practice maybe, but not as per the original doc?

Quoted 4 lines

Folding autogen into the version update might be sensible.  Everywhere else needing an autogen does so in the same patch.

But, I don't see it being sensible to fold the remaining thee patches.

Why not? It's all part of the branching operation.

Quoted 6 lines

This also begs the question of how we indicate a planned change from the example given.  Maybe "Note, example is from prior to deciding to $X", which gets removed when the example gets updated?

If we're going to do that, I'd want to make it a separate change to the main rewrite.

As far as changing what was written down so far goes, I'd certainly agree. But as per the original branching-checklist.txt it's not spelled out either way, so describing it one way or the other can be seen as part of the re-write.

Quoted 24 lines
Quoted 15 lines
Quoted 15 lines
docs/process/tagging-branching.rst new file +15 -0
+e.g. from Xen 4.21, ``d510f9c1430c^..62d0a92057ca`` and ``d510f9c1430c^..b0255656d121``::
+
+  * 62d0a92057ca - CHANGELOG.md: Start a new 4.22 section
+  * 7b88e463f999 - Config.mk: Switch QEMU back to master
+  * d954e8c5c8de - Rerun ./autogen.sh for 4.22
+  * 85768c28b705 - (tag: 4.22-dev) Update Xen to 4.22
+  | * b0255656d121 - (staging-4.21) Switch to release builds by default
+  |/
+  * d510f9c1430c - doc/man: Align list of viridian default enlightenments with libxl
+
+
+Releasing
+=========
+
+ * Finalise the release dates in ``CHANGELOG.md`` (backported from staging)
Quoted 8 lines

docs/process/tagging-branching.rst line 120

Quoted 6 lines
docs/process/tagging-branching.rst new file +6 -0
+   and ``SUPPORT.md`` (only in the release branch).
+
+ * Tag the release in relevant external repos, and update ``Config.mk`` to
+   refer to the tag.
+
+ * Update ``XEN_EXTRAVERSION`` to drop the ``-rc`` suffix, and update

Since further up it's now rc<N>, imo it would be better to also say it that way here.

Quoted 7 lines

One thing I found very problematic with the older checklists was the excessive use of variables.  In this doc, I've got it down to two, and using the examples to clear up any ambiguity.

Would "to drop the RC suffix" work?  This is supposed to be clear that it means rc and whatever number we've got to, but rc<N> (especially rendered as a literal) doesn't help IMO.

Yes, fine with me.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

+ ``README`` to match. Commit.

The latest here QEMU_UPSTREAM_REVISION and MINIOS_UPSTREAM_REVISION also need adjusting to reference version tags, aiui. Taking tag creation in the respective leaf trees as prereq.

That's the previous bullet point.  I should probably make it clearer saying ``*_UPSTREAM_REVISION`` but naming more specifically like that is going to bitrot.

Oh, I see. The absence of *_UPSTREAM_REVISION made me not recognize it as what it is.

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

+ * Tag. Produce tarballs.

Link to the respective section further down?

I considered that.  The linking syntax detracts from the readability as a text file, while on the rendered version it's clear from the navigation panel that there are relevant sections.

Well, okay.

Jan