-
Notifications
You must be signed in to change notification settings - Fork 18
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
Check submodule hash consistency #229
Changes from 4 commits
5aa9dfa
f4dd06f
99a9b11
21a8a63
6f8c44e
de127c2
ed43113
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,13 +48,22 @@ jobs: | |
cd $GITHUB_WORKSPACE/CESM/components/mom/ | ||
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }} | ||
git checkout pr-${{ github.event.pull_request.number }} | ||
git submodule update --init --recursive | ||
|
||
- name: Checkout initial event (Push) | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
echo "Handling push" | ||
cd $GITHUB_WORKSPACE/CESM/components/mom/ | ||
git checkout ${{ github.sha }} | ||
git submodule update --init --recursive | ||
|
||
- name: Check submodule hash consistency | ||
run: | | ||
echo "Checking if .gitmodules and external hashes are consistent" | ||
cd $GITHUB_WORKSPACE/CESM/components/mom/ | ||
../../bin/git-fleximod update | ||
git diff --exit-code | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Talking with @jedwards4b, it sounds like $ ../../bin/git-fleximod test
MOM6 at tag dev/ncar_241122b
e pkg/CVMix-src has no fxtag defined in .gitmodules, module at 87c3c0c
e pkg/GSW-Fortran has no fxtag defined in .gitmodules, module at 29e64d6
stochastic_physics at tag ocn_skeb_240807
MARBL at tag marbl0.48.2
|
||
|
||
# Build the standalone mom using the ubuntu script. | ||
- name: Build Standalone MOM | ||
|
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.
Alper - you can also do
../../bin/git-fleximod test
at this point. Instead of update and then git diff.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.
I just ran the following in a clean checkout of the
MOM_interface
tag used in beta05:and that returns with a non-zero exit code. So there seem to be two options for testing:
git-fleximod update
to checkout the submodules, and then do agit diff
to make sure the submodules are consistent with what git is expectinggit-fleximod test
to check if they match what fleximod expects.I don't have a preference for one method over the other