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

(main) ccpp_prebuild: fix hardcoded name of ccpp_t host variable, update CCPP stub, fix capgen unit tests #498

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Sep 7, 2023

Turns out the CCPP stub in directory stub is currently broken in main, following an earlier PR.

This PR fixes the problem in the ccpp_prebuild.py code by removing the hardcoded name of the CCPP data (type ccpp_t variable and replacing it with the actual name from the host model that gets passed to the group caps through the API and suite cap.

I took this opportunity to replace the ugly in-source build of the CCPP stub with an out-of-source build.

And while testing I discovered that the capgen unit tests are also broken ... simple fix in this PR included.

Note that each part of this PR is a separate commit so that individual parts can easily be identified cherry-picked, if necessary (thus this PR should be a merge commit, not a squash merge).

User interface changes?: No

Fixes: #496
Fixes #497

Testing:
test removed: 0
unit tests:
- ccpp_prebuild tests in tests pass
- capgen tests in test pass
system tests:
- none conducted - someone needs to test this with the ufs-weather-model and the ccpp-scm (I expect no impact) @dustinswales @grantfirl @mkavulich is this something you can help with?
manual testing:
- ccpp-framework stub instructions work

Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@climbfuji climbfuji merged commit 3a8f278 into NCAR:main Sep 7, 2023
@climbfuji climbfuji deleted the feature/remove_ccpp_hardcoded_name_and_update_stub branch September 7, 2023 17:45
@climbfuji
Copy link
Collaborator Author

thanks for the quick turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants