Add an action to ask Copilot to update config_machines.xml and spack templates#400
Merged
xylar merged 6 commits intoE3SM-Project:mainfrom Apr 16, 2026
Merged
Conversation
Introduce a report module for config_machines drift detection. The new reporting code builds machine-by-machine update summaries, classifies module and environment changes that may require Spack follow-up, records candidate template files to review, and renders both JSON artifacts and issue-friendly markdown.
Extend the existing update_cime_machine_config utility so it can emit structured report artifacts and concise console summaries for CI use. Add a companion utility to create, update, and close the tracking issue used to hand drift remediation to Copilot, with a fallback path when Copilot assignment is not available.
Cover the new report builder with focused unit tests. These tests verify that Spack-relevant drift is detected from XML changes and that the rendered issue body includes the reviewer guidance and template review instructions expected by the automation workflow.
Add a scheduled workflow that installs mache in Pixi, generates config_machines drift reports, uploads the artifacts, and synchronizes the Copilot issue when a user token is available. Add the Copilot setup workflow so the cloud agent starts from a ready-to-use Pixi environment on the default branch.
Collaborator
Author
TestingI deployed this workflow on my fork and it produced the expected artifacts (the changes in |
config_machines.xml and spack templates
config_machines.xml and spack templatesconfig_machines.xml and spack templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a scheduled workflow that installs mache in Pixi, generates config_machines drift reports, uploads the artifacts, and synchronizes the Copilot issue when a user token is available.
It also adds the Copilot setup workflow so the cloud agent starts from a ready-to-use Pixi environment on the default branch.
It also adds new mache modules and external utilities to construct a machine-readable report on what has changed in
config_machines.xmlsince the last update. These tools can be used to guide Copilot in updating the spack templates based on the changes.Checklist
Testingcomment, if appropriate, in the PR documents testing used to verify the changes