NCAR / container-dtc-nwp

End-to-end NWP systems in containers.
https://dtcenter.org/community-code/numerical-weather-prediction-nwp-containers
28 stars 13 forks source link

Feature/issue 48 gha #97

Closed JohnHalleyGotway closed 1 year ago

JohnHalleyGotway commented 1 year ago

Pull Request Testing

Please review the code changes as well as the output from recent GHA runs. NOTE that there are still 3 problems with METviewer:

  1. Running with the "latest" tag in the 'Run Sandy' job actually fails. The loading step and downstream plotting steps fail.
  2. The failures described above are NOT flagged as being failures. The code isn't checking return value correctly and maybe the failing steps aren't actually returning bad status.
  3. The METviewer build step (both manually on the command line and via GHA) is failing. So while some of the GHA runs appear to be successful, they are not entirely.

Pull Request Checklist

JohnHalleyGotway commented 1 year ago

Note that I did modify this feature branch after submitting the PR. I had to tweak the logic to handle PR's instead of the just push events. Please take a look at this GHA run. In the "Determine which jobs to run", "Set job controls" step, the following demonstrates that it's diffing against at the correct reference branch (origin/main):

Modified files (git diff --name-only origin/main):
.github/jobs/bash_functions.sh .github/jobs/build_docker_image.sh .github/jobs/docker_utils.py .github/jobs/print_branch_name.py .github/jobs/run_case.sh .github/jobs/set_job_controls.sh .github/workflows/testing.yml components/metviewer/docker-compose-AWS-cases.yml components/metviewer/docker-compose-AWS.yml components/metviewer/docker-compose-cases.yml components/metviewer/docker-compose.yml

Build METviewer since components/metviewer has changed.

So that now works as it should. However, the METviewer build fails... but for other reasons unrelated to GHA.