-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to help test the real configs on Hera #79
base: develop
Are you sure you want to change the base?
Conversation
note that /scratch1/RDARCH/rda-arl-gpu/Barry.Baker/emissions/nexus/FENGSHA/ has links to them too
also could be interesting for space-separated (e.g. "gfs megan") to include _all_ the matches
might be a good idea to require at least one delimiter for this matching mode, to ensure that it is intentional
but don't fail, so it is still easy to test the tmp case creation outside of Hera
and nproc isn't useful
in case need to check details
should probably make this an option instead later
produced from testing the Python scripts and such
Taken from noaa-oar-arl#78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This pull request adds two scripts: one to run config cases on Hera (tests/run_config.py) and one to collect their output data (tests/collect_data.py).
- tests/run_config.py sets up temporary directories, updates config files based on command‐line arguments, creates a Slurm job script, and optionally submits it.
- tests/collect_data.py collects settings, extracts runtime and memory usage info from Slurm outputs, and writes a newline‐delimited JSON file.
Reviewed Changes
File | Description |
---|---|
tests/run_config.py | Implements test run setup, config updates, and job creation/submission for Hera. |
tests/collect_data.py | Implements collection and parsing of run outputs into a summary JSON file. |
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
Co-authored-by: Copilot <[email protected]>
@zmoon Awesome! You want this tested on Hera in the UFS-SRW-App workflow? Also, how did you get copilot enabled to act as a review of this PR? Can't see the option in other noaa-oar-arl repos. |
@drnimbusrain you can request copilot to review PRs under the normal "request reviewer" in the top right I don't think these changes are for the workflow. This is a simple script for us to be able to perform tests with the configuration files used for our various supported emission scenarios (which include the operational system). This is basically a the RT piece for NEXUS. |
Great, thanks Barry! Unfortunately I cannot see the CoPilot for other repositories under reviewer, just here. |
You have to enable it under settings for each repository
Barry Baker
National Oceanic and Atmospheric Administration
Air Resources Laboratory
Physical Research Scientist
Chemical Modeling and Emissions Group Leader
NCWCP, R/ARL, Rm. 4204
5830 University Research Court
College Park, Maryland 20740
Phone: (301) 683-1395
…On Fri, Feb 28, 2025 at 11:59 AM Patrick Campbell ***@***.***> wrote:
Great, thanks Barry! Unfortunately I cannot see the CoPilot for other
repositories under reviewer, just here.
—
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFIUVN7Y7X22K4VQXZVIOTL2SCIWJAVCNFSM6AAAAABYAQHRICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJRGEZTCNRXGI>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
[image: drnimbusrain]*drnimbusrain* left a comment (noaa-oar-arl/NEXUS#79)
<#79 (comment)>
Great, thanks Barry! Unfortunately I cannot see the CoPilot for other
repositories under reviewer, just here.
—
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFIUVN7Y7X22K4VQXZVIOTL2SCIWJAVCNFSM6AAAAABYAQHRICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJRGEZTCNRXGI>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Still can't access, no worries... |
The script
tests/run_config.py
config/*
subdirectories, e.g.cmaq_gfs_megan_nei2019_globtempo
The script
tests/collect_data.py
collects data from those runs, including the stored settings and info from the Slurm job stdout and stderr files, and writes it as a newline-delimited JSON file, which can be loaded in pandas withpd.read_json("data.ndjson", lines=True)
.In the future we could use these capabilities to develop some e2e regression tests and maybe connect a self-hosted runner on Hera to GitHub Actions for automated testing.
The below figures summarize data for a set of runs (two time steps of
cmaq_gfs_megan_nei2019_globtempo
, no change to the grid). Regrid T means NEXUS output via ESMF (regridded to the FV3 grid spec;nexus -r grid_spec.nc
), whereas regrid F indicates HEMCO native grid output produced by HEMCO.Data table:
OMP_NUM_THREADS
)