From 71a52838742d3b4739283f9c9a57161e7975ada4 Mon Sep 17 00:00:00 2001 From: mo-marqh <87382490+mo-marqh@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:41:29 +0000 Subject: [PATCH 1/5] release branch optional process --- source/Reviewers/curaterelease.rst | 83 ++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/source/Reviewers/curaterelease.rst b/source/Reviewers/curaterelease.rst index fc2e39b5..2665a826 100644 --- a/source/Reviewers/curaterelease.rst +++ b/source/Reviewers/curaterelease.rst @@ -114,6 +114,89 @@ separate PR first if not. exception for ``stable`` in the ``prevent updates`` ruleset from earlier. * :ref:`Tag ` the release. +Release Branch +++++++++++++++ + +In some circumstances Simulation Systems may decide to manage a release via a +release branch. + +This can help with: + +* extended testing windows for suite owners and partners; +* managing major releases with known backwards incompatibilities. +* ``stable`` and ``main`` are available to developers whilst the release branch + is progressed to the actual release. + +If it is decided to manage a release branch release, then this shall be +communicated, prior to the release, on the ``Release Curation`` issue and via the +discussion forum, linking to the issue. + +A release branch release follows all of the process described for the +``Stable + Main Release``, +up until the :ref:`Tag ` final step. + +* The :ref:`Tag ` step is done, but the Tag provided is is a designated + ``Release Candidate`` tag. This shall follow the tagging rules, and + then append ``-rc1`` to the release candidate tag string. + + * A Github ``pre-release`` is created using this tag. + +* Immediately a branch is cut, for each code base that is part of the release + candidate, on the ``MetOffice`` organisation repository. + + * The branch shall be named by the intended release tag with ``-rc`` appended. + * This branch is now a permanent part of the repository on Github. + * Branch protection rules to ensure it is not deleted are added. + +* The release candidate tag is distributed for enhanced testing. +* Pull Requests may be raised to the release branch. + + * These shall adhere to :ref:`Release Branch Protection Rules ` + +* More than one release candidate tag may be added to the release branch during + testing. + + * For each new release candidate tag, a new Pull Request shall be raised to + ``main`` to merge in any additions made to the release branch. + +* Once a release candidate has completed adoption evaluation then any remaining + changes shall be sent to ``main`` via a Pull Request. +* The release is finalised using the release branch: + + * Internal version identifiers updates + * Release Tagged :ref:`Tag ` the release. + +Release Patch Releases +^^^^^^^^^^^^^^^^^^^^^^ + +With a release branch, it is possible to manage specific-release patch releases. + +This involves back porting a change from ``main`` onto the release branch, then +preparing a new release. + +This patch release would only contain the original release and the back-ported +features. + +This process should only be undertaken in exceptional circumstances, in general +release branches shall not be used to provide patch releases. + +This would only be allowed via a specific exemption process, negotiated with +the Simulation Systems Team. + +.. _releaseBranch: + +Release Branch Protection Rules +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +* Only specific change sets shall be accepted onto a release branch + + * Code changes that improve the release's ability to be adopted by + suite owners and partners + * Bug fixes that directly affect the release candidate. + +* No new features shall be added to the release branch. +* No macros may be added to the release branch. + Hotfix Release -------------- From dd428ef938991bb302f42938d6ae731fa622ccc8 Mon Sep 17 00:00:00 2001 From: mo-marqh <87382490+mo-marqh@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:51:12 +0000 Subject: [PATCH 2/5] contributor --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 8913a005..27471e7f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -3,3 +3,4 @@ | GitHub user | Real Name | Affiliation | Date | | ----------- | --------------- | ----------- | ---------- | | yaswant | Yaswant Pradhan | Met Office | 2026-07-17 | +| mo-marqh | mark Hedley | Met Office | 2026-11-23 | From 4cc4265dc2ad57267c97afe59d7999e4acf4a57f Mon Sep 17 00:00:00 2001 From: mo-marqh <87382490+mo-marqh@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:52:40 +0000 Subject: [PATCH 3/5] whitespace --- source/Reviewers/curaterelease.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Reviewers/curaterelease.rst b/source/Reviewers/curaterelease.rst index 2665a826..dd8e7331 100644 --- a/source/Reviewers/curaterelease.rst +++ b/source/Reviewers/curaterelease.rst @@ -139,8 +139,8 @@ up until the :ref:`Tag ` final step. ``Release Candidate`` tag. This shall follow the tagging rules, and then append ``-rc1`` to the release candidate tag string. - * A Github ``pre-release`` is created using this tag. - + * A Github ``pre-release`` is created using this tag. + * Immediately a branch is cut, for each code base that is part of the release candidate, on the ``MetOffice`` organisation repository. From 2da787a35278beec6c6b9ca3e7925eb9cd2a3481 Mon Sep 17 00:00:00 2001 From: mo-marqh <87382490+mo-marqh@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:56:09 +0000 Subject: [PATCH 4/5] sections --- source/Reviewers/curaterelease.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Reviewers/curaterelease.rst b/source/Reviewers/curaterelease.rst index dd8e7331..4bd36ebf 100644 --- a/source/Reviewers/curaterelease.rst +++ b/source/Reviewers/curaterelease.rst @@ -115,7 +115,7 @@ separate PR first if not. * :ref:`Tag ` the release. Release Branch -++++++++++++++ +^^^^^^^^^^^^^^ In some circumstances Simulation Systems may decide to manage a release via a release branch. @@ -167,7 +167,7 @@ up until the :ref:`Tag ` final step. * Release Tagged :ref:`Tag ` the release. Release Patch Releases -^^^^^^^^^^^^^^^^^^^^^^ +"""""""""""""""""""""" With a release branch, it is possible to manage specific-release patch releases. @@ -186,7 +186,7 @@ the Simulation Systems Team. .. _releaseBranch: Release Branch Protection Rules -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +""""""""""""""""""""""""""""""" * Only specific change sets shall be accepted onto a release branch From 35d1e7a45c335753a9e5d6448b57053d5b657523 Mon Sep 17 00:00:00 2001 From: mo-marqh <87382490+mo-marqh@users.noreply.github.com> Date: Tue, 1 Dec 2026 14:07:57 +0000 Subject: [PATCH 5/5] prefer hotfix over release branch persistence (#1) * prefer hotfix over release branch persistence --- source/Reviewers/curaterelease.rst | 35 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/source/Reviewers/curaterelease.rst b/source/Reviewers/curaterelease.rst index 4bd36ebf..e574fa1b 100644 --- a/source/Reviewers/curaterelease.rst +++ b/source/Reviewers/curaterelease.rst @@ -156,32 +156,29 @@ up until the :ref:`Tag ` final step. * More than one release candidate tag may be added to the release branch during testing. - * For each new release candidate tag, a new Pull Request shall be raised to - ``main`` to merge in any additions made to the release branch. - * Once a release candidate has completed adoption evaluation then any remaining - changes shall be sent to ``main`` via a Pull Request. -* The release is finalised using the release branch: + changes shall be sent to ``stable`` via a Pull Request. - * Internal version identifiers updates - * Release Tagged :ref:`Tag ` the release. + * This then represents a :ref:`Hot Fix Release ` + * As such, these changes will also be included in the ``main`` branch + using the :ref:`hotfix` process. -Release Patch Releases -"""""""""""""""""""""" +* The release is finalised using the ``stable`` branch: -With a release branch, it is possible to manage specific-release patch releases. + * Internal version identifiers updates + * Release Tagged :ref:`Tag ` the release. + * The ``release`` branch is then no longer required and + may be subsequently deleted. -This involves back porting a change from ``main`` onto the release branch, then -preparing a new release. +* If a release candidate completely fails adoption testing then: -This patch release would only contain the original release and the back-ported -features. + * specific commits shall be removed from the ``stable`` && ``main`` branches. -This process should only be undertaken in exceptional circumstances, in general -release branches shall not be used to provide patch releases. +Release Patch Releases +"""""""""""""""""""""" -This would only be allowed via a specific exemption process, negotiated with -the Simulation Systems Team. +Once a release is published and the ``release`` branch removed, then +no further patch releases relatvie to that release may be created. .. _releaseBranch: @@ -197,6 +194,8 @@ Release Branch Protection Rules * No new features shall be added to the release branch. * No macros may be added to the release branch. +.. _hotfix: + Hotfix Release --------------