Skip to content

Add an action to ask Copilot to update config_machines.xml and spack templates#400

Merged
xylar merged 6 commits intoE3SM-Project:mainfrom
xylar:add-agent-to-update-config-machines
Apr 16, 2026
Merged

Add an action to ask Copilot to update config_machines.xml and spack templates#400
xylar merged 6 commits intoE3SM-Project:mainfrom
xylar:add-agent-to-update-config-machines

Conversation

@xylar
Copy link
Copy Markdown
Collaborator

@xylar xylar commented Apr 16, 2026

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.xml since the last update. These tools can be used to guide Copilot in updating the spack templates based on the changes.

Checklist

  • Developer's Guide has been updated if needed
  • Tests pass and new features are covered by tests
  • Testing comment, if appropriate, in the PR documents testing used to verify the changes

xylar added 5 commits April 16, 2026 17:47
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.
@xylar xylar self-assigned this Apr 16, 2026
@xylar xylar added ci Changes affect github actions CI config-machines Changes to the config_machines.xml file labels Apr 16, 2026
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Apr 16, 2026

Testing

I deployed this workflow on my fork and it produced the expected artifacts (the changes in config_machines.xml). It was not allowed to create an issue for Copilot so that part of the workflow can only really be tested here after merge.

@xylar xylar marked this pull request as ready for review April 16, 2026 16:16
@xylar xylar changed the title Add agent to update config_machines Add an agent to update config_machines.xml and spack templates Apr 16, 2026
@xylar xylar changed the title Add an agent to update config_machines.xml and spack templates Add an action to ask Copilot to update config_machines.xml and spack templates Apr 16, 2026
@xylar xylar merged commit d7752d4 into E3SM-Project:main Apr 16, 2026
10 checks passed
@xylar xylar deleted the add-agent-to-update-config-machines branch April 16, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Changes affect github actions CI config-machines Changes to the config_machines.xml file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant