-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix/git detached head #736
Conversation
There is probably a better way to do this, but my brain is fried today. Someone please double check. |
Some models are still broken in the tests. I'll review this tomorrow and maybe even have a look at the models having problems (AWICM3) |
As with the doc-test branch, all failing tests are now from |
#bump |
Will close #734, still needs some manual testing |
Manually tested with AWICM3 frontiers-xios and AWICM3 3.1. @JanStreffing: something is still weird. But if you are happy with this, then that is how it shall be. Currently $ cat ../experiments/git_test_001/run_20000101-20011231/log/git_test_001_vcs_info.yaml esm_tools: d3e90a56
fesom:
branch_name: awicm-3-frontiers_parallel-restart
diffs:
- ''
hash: 9b27593c
path: /work/ab0995/a270077/SciComp/Model_Support/AWICM3/broken_git_check/model_codes/awicm3-frontiers-xios///fesom-2.0
oasis3mct:
branch_name: awicm-3-frontiers
diffs:
- ''
hash: 347e788
path: /work/ab0995/a270077/SciComp/Model_Support/AWICM3/broken_git_check/model_codes/awicm3-frontiers-xios///oasis
oifs:
branch_name: awicm-3-frontiers-xios
diffs:
- diff --git a/src/ifs/module/yommcc.F90 b/src/ifs/module/yommcc.F90
- index e7d74a1..131227a 100644
- '--- a/src/ifs/module/yommcc.F90'
- +++ b/src/ifs/module/yommcc.F90
- '@@ -180,7 +180,7 @@ INTEGER(KIND=JPIM) :: NFRCPL'
- ' '
- ' !Logical switches for Coupling'
- ' LOGICAL :: COUPLENEMOECE = .FALSE. ! Use EC-Earth NEMO coupling'
- '-LOGICAL :: COUPLEFESOM2 = .FALSE. ! Use AWI FESOM2 coupling'
- '+LOGICAL :: COUPLEFESOM2 = .TRUE. ! Use AWI FESOM2 coupling'
- ' LOGICAL :: COUPLENEMOFOCI = .FALSE. ! Use FOCI NEMO coupling'
- ' LOGICAL :: LNEMOLIMGET = .FALSE. ! Get new fields'
- ' LOGICAL :: LNEMOLIMPUT = .FALSE. ! Put new fields'
hash: c78fa46
path: /work/ab0995/a270077/SciComp/Model_Support/AWICM3/broken_git_check/model_codes/awicm3-frontiers-xios///oifs-43r3
rnfmap: Not a git-controlled model!
xios: Unable to locate model_dir for xios. ...and, yes, I am not particularly happy that |
Not sure why it's saying rnfmap is not a git controlled thing. It certainly is: |
Jan, have a look in It might be that the |
…urned as one string instead of a list of strings
There seems to be a problem in
Do you want me to try to reproduce it in a real computer? |
No, that's something else, and actually is still a bug in the git part. I'll look after I do the pool stuff. |
Broken tests are at this point "wrong truth". The technical elements seem to working fine. The error reported by @mandresm is now fixed. I am not 100% sure if my fix is the best way of doing it. The offending function checks: is this a git directory? You get In any case, I would vote: please merge. :-) |
Agreed, this is the sort of thing that is going to be tested in the actual |
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.
Great feature, thanks for fixing it! :)
updating the truth... |
All tests passed (except AWIESM icebergs due to lack of update related to an ongoing issue), #bump! |
Should fix the broken git branch stuff with detached head, sorry about that.