@@ -71,103 +71,92 @@ Then switch to the up to date branch, e.g.
7171**If ** the ticket includes metadata changes, upgrade macro changes or a new
7272rose-stem app then you will need to upgrade the test-suite.
7373
74- .. dropdown :: versions.py
74+ Update the versions.py file
75+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7576
76- ``versions.py `` contains a sequence of upgrade macros. Each macro contains
77- a ``BEFORE_TAG `` and an ``AFTER_TAG `` which should create a single chain,
78- starting at the last release and finishing with the ticket you are
79- committing. The tags have the format version_ticket, i.e.
80- ``vnXX.Y_tZZZZ ``.
77+ ``versions.py `` contains a sequence of upgrade macros. Each macro contains a
78+ ``BEFORE_TAG `` and an ``AFTER_TAG `` which should create a single chain, starting
79+ at the last release and finishing with the ticket you are committing. The tags
80+ have the format version_ticket, i.e. ``vnXX.Y_tZZZZ ``.
8181
82- When resolving conflicts in this file make sure that the new macro being
83- added by your ticket is added to the end of the file. Modify the
84- ``BEFORE_TAG `` to match the ``AFTER_TAG `` of the previous macro in the
85- chain.
82+ When resolving conflicts in this file make sure that the new macro being added
83+ by your ticket is added to the end of the file. Modify the ``BEFORE_TAG `` to
84+ match the ``AFTER_TAG `` of the previous macro in the chain.
8685
87- If this is the first macro since the release then the ``BEFORE_TAG `` will
88- be the version number with no added ticket number.
86+ If this is the first macro since the release then the ``BEFORE_TAG `` will be the
87+ version number with no added ticket number.
8988
90- Remove the template macro if it is still present.
89+ Remove the template macro if it is still present.
9190
92- .. dropdown :: Applying Macros
91+ Apply the upgrade macros
92+ ^^^^^^^^^^^^^^^^^^^^^^^^
9393
94- To update the test suite for an upgrade macro, please run:
94+ To update the test suite for an upgrade macro, please run:
9595
96- .. tab-set ::
97-
98- .. tab-item :: UM
99-
100- .. code-block :: shell
101-
102- ./admin/rose-stem/update_all.py \
103- --path=/path/to/working/copy/of/trunk \
104- --um=vnXX.Y_tZZZZ \
105- [--jules-path= /path/to/working/copy/of/jules/trunk]
106-
107- where ``-\-um=vnXX.Y_tZZZZ `` is the ``AFTER_TAG `` of the latest
108- upgrade macro.
109-
110- If there is a macro for fcm_make or createbc then check that the
111- makes ``version*_*.py `` has the correct BEFORE and AFTER tags and
112- append ``-\-makeum=vnXX.Y_tZZZZ `` and/or
113- ``-\-createbc=vnXX.Y_tZZZZ `` to the above command.
96+ .. tab-set ::
11497
115- .. warning ::
98+ .. tab-item :: UM
11699
117- Please ensure that Cylc7 is used with `` update_all.py `` @vn13.5.
100+ .. code-block :: shell
118101
119- .. note ::
102+ ./admin/rose-stem/update_all.py \
103+ --path=/path/to/working/copy/of/trunk \
104+ --um=vnXX.Y_tZZZZ \
105+ [--jules-path= /path/to/working/copy/of/jules/trunk]
120106
121- The ``-\-jules-path `` option is only required if there are
122- linked `jules-shared
123- <https://code.metoffice.gov.uk/trac/jules/browser/main/trunk/rose-meta/jules-shared> `__
124- metadata changes.
107+ where ``-\-um=vnXX.Y_tZZZZ `` is the ``AFTER_TAG `` of the latest
108+ upgrade macro.
125109
126- .. tab-item :: JULES
110+ If there is a macro for fcm_make or createbc then check that the
111+ makes ``version*_*.py `` has the correct BEFORE and AFTER tags and
112+ append ``-\-makeum=vnXX.Y_tZZZZ `` and/or
113+ ``-\-createbc=vnXX.Y_tZZZZ `` to the above command.
127114
128- .. code-block :: shell
115+ .. note ::
129116
130- ./bin/upgrade_jules_test_apps vnX.Y_tZZZZ
117+ The ``-\-jules-path `` option is only required if there are
118+ linked `jules-shared
119+ <https://code.metoffice.gov.uk/trac/jules/browser/main/trunk/rose-meta/jules-shared> `__
120+ metadata changes.
131121
132- where ``vnX.Y_tZZZZ `` is the ``AFTER_TAG `` of the latest upgrade
133- macro. The upgrade is expected to fail for the ``fab_jules ``,
134- ``metadata_checker `` and ``umdp3_checker `` apps.
122+ .. tab-item :: JULES
135123
136- .. tab-item :: LFRic Apps + Core
124+ .. code-block :: shell
137125
138- .. code-block :: shell
126+ ./bin/upgrade_jules_test_apps vnX.Y_tZZZZ
139127
140- apply_macros.py vnX.Y_tZZZZ [--apps= /path/to/apps] \
141- [--core= /path/to/core] [--jules= /path/to/jules]
128+ where ``vnX.Y_tZZZZ `` is the ``AFTER_TAG `` of the latest upgrade
129+ macro. The upgrade is expected to fail for the ``fab_jules ``,
130+ ``metadata_checker `` and ``umdp3_checker `` apps.
142131
143- where ``vnX.Y_tZZZZ `` is the ``AFTER_TAG `` of the latest upgrade
144- macro and the others are paths to the relevant sources. Apps
145- defaults to the current location. Core and Jules default to
146- reading the ``dependencies.sh `` file in the Apps source. A copy of
147- ``apply_macros.py `` is available at
148- ``$UMDIR/SimSys_Scripts/lfric_macros ``.
132+ .. tab-item :: LFRic Apps + Core
149133
150- .. tip ::
134+ .. code-block :: shell
151135
152- `` module load scitools `` will give all required dependencies
153- for Met Office users.
136+ apply_macros.py vnX.Y_tZZZZ [--apps = /path/to/apps] \
137+ [--core = /path/to/core] [--jules = /path/to/jules]
154138
155- .. note ::
139+ where ``vnX.Y_tZZZZ `` is the ``AFTER_TAG `` of the latest upgrade
140+ macro and the others are paths to the relevant sources. Apps
141+ defaults to the current location. Core and Jules default to
142+ reading the ``dependencies.yaml `` file in the Apps source. A copy of
143+ ``apply_macros.py `` is available at
144+ ``$UMDIR/SimSys_Scripts/lfric_macros ``.
156145
157- All LFRic Core tickets with macros are expected to be linked
158- with LFRic Apps, though they may not have required an LFRic
159- Apps development branch (although an Apps ticket should be
160- provided). This is fine - if there is no LFRic Apps branch
161- just checkout the LFRic Apps main. Then run the apply_macros
162- script as described above and this will share the upgrade
163- macro across both LFRic Apps and LFRic Core as needed.
146+ .. tip ::
164147
165- .. important ::
148+ ``module load scitools `` will give all required dependencies
149+ for Met Office users.
166150
167- Now commit the changes made by the macros script back to the developers
168- branch.
151+ .. note ::
169152
170- Do not push the changes at this stage.
153+ All LFRic Core tickets with macros are expected to be linked
154+ with LFRic Apps, though they may not have required an LFRic
155+ Apps development branch (although an Apps ticket should be
156+ provided). This is fine - if there is no LFRic Apps branch
157+ just checkout the LFRic Apps main. Then run the apply_macros
158+ script as described above and this will share the upgrade
159+ macro across both LFRic Apps and LFRic Core as needed.
171160
172161.. dropdown :: New rose-stem app?
173162
@@ -214,6 +203,13 @@ rose-stem app then you will need to upgrade the test-suite.
214203 update the `table that lists them
215204 <https://code.metoffice.gov.uk/trac/um/wiki/TempUMlogicals> `__.
216205
206+ .. important ::
207+
208+ Now commit the changes made by the macros script back to the developers
209+ branch.
210+
211+ Do not push the changes at this stage.
212+
2172133. Test (if no KGO)
218214--------------------
219215
@@ -361,8 +357,7 @@ KGO differently*
361357 is a one-time setup step required to allow you to generate KGO using the
362358 update script.
363359
364- Edit ``~/.metomi/rose.conf `` on *all platforms * - Desktop, XCE/F, XCS and
365- EXZ to contain the following:
360+ Edit ``~/.metomi/rose.conf `` on *all platforms * - VDI, EXAB, EXCD, EXZ
366361
367362 .. code-block ::
368363
@@ -384,7 +379,7 @@ KGO differently*
384379 a script.
385380
386381 #. Run the rose stem tasks that require a KGO update, plus any other
387- testing required (see above) - if unsure run the `all,ex1a ` .
382+ testing required (see above) - if unsure run the `all ` group .
388383
389384 .. code-block :: shell
390385
0 commit comments