-
Notifications
You must be signed in to change notification settings - Fork 19
Update CI in MOM_interface so that "check_standalone_mom_build_and_run_lightweight_examples" works on MOM_interface forks #234
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
base: main
Are you sure you want to change the base?
Conversation
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.
We recently added a check to this CI to make sure that git fleximod
checks out the correct submodules -- does this PR still run that test? We don't need to maintain the exact mechanism used previously, I just want to make sure this test will fail if the .gitmodules
file tells git fleximod
to check out a different tag than is checked out with git clone --recurse-submodules
Hey Mike, it should. I talked to Alper and moved that submodule consistency check up one step. It still does the check right after the CESM checkout but before we copy the current MOM_interface over into the CESM, which should still work out with what we want the test. It's just supposed to check that the current CESM checkout is doing the correct thing right? Nothing to do with whatever development is happening in the PR/Push. |
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.
My understanding is that, with these changes, the recently added "Check submodule hash consistency" step verifies the consistency of the MOM6 version that comes with CESM. However, we should be ensuring that the version introduced by a PR or push is consistent. To achieve this, the "Check submodule hash consistency" step should run after the "Copy the current MOM_interface to the correct place in CESM" step. Do you agree @mnlevy1981, @manishvenu ?
Hey @alperaltuntas, Since, we checkout the CESM and that checks out ESCOMP/MOM_interface, the submodule hash consistency test passed PRs and Pulls on ESCOMP/MOM_interface, but on forks of MOM_interface like manishvenu/MOM_interface copying the current MOM_interface failed. Would it be a compromise to run the submodule hash consistency after the Pull/PR ONLY if we are on ESCOMP/MOM_interface? I don't know how the consistency test (CESM/bin/git-fleximod test) works, but I thought it didn't matter if the PR is before or after? I thought the test had something to do with CESM .gitmodules and fleximod, which wouldn't be impacted by what code is in MOM_interface (other than the git information). |
The
check_standalone_mom_build_and_run_lightweight_examples
previously worked by checking out the CESM,cd
to the MOM_interface subfolder and checking out the active branch/pr. This logic of checking out MOM_interface does not work if the CI is on a different fork because the CESM only checks out ESCOMP/MOM_interface. The changes made here checks out the correct MOM_interface, and copies it over to the CESM for testing.cp
command to copy MOM_interface into the CESM folder.