@@ -89,9 +89,9 @@ The update path is:
89892 . The workflow creates or refreshes a GitHub issue.
90903 . Copilot is assigned to that issue.
91914 . Copilot opens a pull request against ` main ` .
92- 5 . That PR updates ` mache/cime_machine_config/config_machines.xml ` first, then
93- any related Spack templates or version strings that the report indicates
94- should be reviewed.
92+ 5 . That PR replaces ` mache/cime_machine_config/config_machines.xml ` with the
93+ latest version from ` E3SM-Project/E3SM ` , then updates any related Spack
94+ templates or version strings that the report indicates should be reviewed.
95956 . A maintainer reviews and merges the PR.
96967 . The next daily run compares the merged repository state against upstream
9797 again.
@@ -112,8 +112,16 @@ Copilot receives instructions from two places.
112112` agent_assignment ` payload:
113113
114114- Use the issue body as the task definition.
115- - Update ` config_machines.xml ` first.
116- - Then update related Spack templates and version strings.
115+ - Run `pixi run -e py314 python utils/update_cime_machine_config.py
116+ --work-dir .`.
117+ - Replace ` mache/cime_machine_config/config_machines.xml ` with the generated
118+ ` upstream_config_machines.xml ` , then remove that temporary file before
119+ committing.
120+ - State the upstream E3SM commit hash in the PR summary.
121+ - Then update related Spack templates and version strings under
122+ ` mache/spack/templates/<machine>*.yaml ` ,
123+ ` mache/spack/templates/<machine>*.sh ` , and
124+ ` mache/spack/templates/<machine>*.csh ` .
117125- Add TODO comments in the PR when prefix or path changes need reviewer
118126 confirmation.
119127
@@ -123,6 +131,7 @@ Copilot receives instructions from two places.
123131drift and includes:
124132
125133- the timestamp and upstream source URL,
134+ - the upstream revision when it could be resolved from GitHub,
126135- the workflow run URL,
127136- the list of affected supported machines,
128137- the required work list,
@@ -131,9 +140,16 @@ drift and includes:
131140
132141The required work section tells Copilot to:
133142
134- - update ` mache/cime_machine_config/config_machines.xml ` for the affected
135- supported machines,
136- - update Spack templates and version strings when module or environment drift
143+ - run `pixi run -e py314 python utils/update_cime_machine_config.py
144+ --work-dir .`,
145+ - replace ` mache/cime_machine_config/config_machines.xml ` with the generated
146+ ` upstream_config_machines.xml ` ,
147+ - remove ` upstream_config_machines.xml ` before committing,
148+ - state the upstream E3SM commit hash in the PR summary,
149+ - update Spack templates and version strings in
150+ ` mache/spack/templates/<machine>*.yaml ` ,
151+ ` mache/spack/templates/<machine>*.sh ` , and
152+ ` mache/spack/templates/<machine>*.csh ` when module or environment drift
137153 implies different package versions,
138154- keep the PR focused when the change is only version or module drift,
139155- add a TODO in the PR instead of guessing when a new prefix or path is not
@@ -173,13 +189,17 @@ in this order.
173189
174190### 1. ` config_machines.xml ` changes
175191
176- Verify that the PR updates
177- ` mache/cime_machine_config/config_machines.xml ` only for supported machines
178- reported by the workflow, and that those changes match the current upstream
179- E3SM machine definitions.
192+ Verify that the PR replaces
193+ ` mache/cime_machine_config/config_machines.xml ` with the current upstream file
194+ from ` E3SM-Project/E3SM ` , rather than hand-editing only selected machine
195+ blocks.
196+
197+ The supported-machine report from the workflow tells you which machine entries
198+ caused the drift and which sections deserve the closest review.
180199
181200In practice, the easiest cross-check is to compare the PR against the report
182- artifact from the workflow run that opened or refreshed the issue.
201+ artifact and the upstream XML source from the workflow run that opened or
202+ refreshed the issue.
183203
184204### 2. Related Spack updates
185205
0 commit comments