Skip to content
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

Add tests for ccpp_prebuild step #972

Merged
merged 55 commits into from
Oct 27, 2022
Merged

Conversation

dustinswales
Copy link
Collaborator

@dustinswales dustinswales commented Oct 12, 2022

This PR adds continuous integration tests to run the ccpp_prebuild script for all available host models, currently NCAR/ccpp-scm and NOAA-EMC/fv3atm.

For each host-model, the scripts do the following:

  • Check out local ccpp-physics code (save github URL and branch information)
  • Check out host-model interface and ccpp_prebuild
  • Switch host-model ccpp-physics to use local ccpp-physics
  • Set up Python environment (v3.8.5)
  • Run ccpp_prebuild.py

This is done for all commits and PRs.

@ligiabernardet
Copy link
Collaborator

Did you mean all available host models, currently NCAR/ccpp-scm and NOAA-EMC/fv3atm? That is, the tests work for the CCPP Single Column Model and the UFS atmospheric model component (fv3atm)?

@dustinswales dustinswales marked this pull request as ready for review October 19, 2022 17:33
@dustinswales
Copy link
Collaborator Author

@grantfirl We discussed going ahead with adding these tests today. Can you provide a review? (no rush)

run: |
cd /home/runner/work/ccpp-physics/ccpp-physics/fv3atm/ccpp/
mkdir -p /home/runner/work/ccpp-physics/ccpp-physics/fv3atm/bin/ccpp/physics/physics/
./framework/scripts/ccpp_prebuild.py --config config/ccpp_prebuild_config.py
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the first pass at this, I don't see a problem with parsing all suites, but we may want to define a shorter list to parse at some point to make these tests run faster?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds like a good idea. I'll add a note for us to discuss this.

@dustinswales dustinswales merged commit 8f6f1a0 into NCAR:main Oct 27, 2022
@dustinswales dustinswales deleted the add_ci_tests branch October 27, 2022 22:40
@dustinswales dustinswales restored the add_ci_tests branch October 27, 2022 22:46
ChunxiZhang-NOAA added a commit to ufs-community/ccpp-physics that referenced this pull request Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants