-
Notifications
You must be signed in to change notification settings - Fork 108
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
Automate update of consistency test baseline data #574
Comments
I think @junwang-noaa has done this for the ufs-weather-model. |
Wouldn't be too difficult to port this from the weather model: https://github.com/ufs-community/ufs-weather-model/tree/develop/tests/auto You can add a "run test" label to a PR and then the script will read it from Github and submit the job(s). |
@GeorgeGayno-NOAA Are you using the same systems that we are with UFS? I haven't ported it to WCOSS machines (yet, I think WCOSS2 will have pygithub package) because Mars/Luna/Surge/Venus didn't have pygithub. The labels we've setup in GitHub are <machine>-<compiler>-<job>, if the <machine> matches the $HOSTNAME (with a wildcard search), it will start the <job> (from jobs/<job>.py) using the <compiler> you specify. The machines use a cronjob to check for open github PR's. It's easy to specify a different repo, the current one is just hard-coded. There is still a level of manual work for the cases where a machine kills a job or it times out etc.. but the scripts should post in the PR with any issues that arise so someone can go take a look. For UFS the jobs submits the log from the machine as the signal that all went well because it uses the log file to determine if all jobs were successful or if even one failed. Hopefully with a second group interested in a similar work flow, we can improve upon the current code. |
We run on WCOSS and Hera, Jet and Orion. We already run our tests off the cron. But I would be interested in how you do that. Also, how do you update the baseline data when updates change results? |
how do you update the baseline data when updates change results? |
Cronjob for UFSWM (Orion example):
The start_rt_auto.sh script loads PYTHONPATH into $PATH and calls rt_auto.py |
to save a new set of baseline data. Fixes ufs-community#574
Update test scripts to call the update script. Fixes ufs-community#574
Update the update_baseline.sh script to process the fix_sfc baseline subdirectory used by the grid_gen. Fixes ufs-community#574.
the baseline is to be updated. Fixes ufs-community#574
Add logic to the consistency test scripts to automatically update the baseline data when code updates change results. Fixes #574
Code updates often change results, which means the consistency test baseline data must be updated. Currently, updates are done manually on five machines. But as the number of weekly PRs grows, we need an automated way to do this.
The text was updated successfully, but these errors were encountered: