-
Notifications
You must be signed in to change notification settings - Fork 61
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 .testing Makefile with WORKSPACE #732
Conversation
Can you describe the problem you are seeing? I just compiled and ran the test with the current Makefile and following settings:
and everything passed. (Note that (Edit: I also tried |
This is actually a bit tricky. |
OK, that explains the problem. Thanks for working that out. This is a very nice solution, and I'd suggest the following small modification:
The first change is to replace The second change also helps to prevent a dead |
08116b2
to
47ec6cb
Compare
@marshallward Thanks for the explanation! I modified the PR following the suggestion. |
Oops! My "innocent" suggestion broke the MacOS tests. I think it's something about GNU vs BSD Make and how end-slashes are handled. Anyway, let's leave that for another time. I think just using BUILD in place of WORKSPACE should be good enough. Sorry for making this more complicated than it needed to be. |
This commit fixes a bug that target code cannot be built for regression tests when BUILD is specified with command line arguments. The fix explicitly specifies BUILD argument for target codebase, avoiding the variable being passed from the parent make.
That's good know! Removing the end-slash and using Anyway, I will go ahead without the |
47ec6cb
to
9e6deeb
Compare
Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/25044 ✔️ |
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.
Thanks for the additional revision.
.POSIX:
could help with the problem above, but I don't think the slash usage is consistent enough in the file to get it all working, so probably best to just hold off and do a proper POSIX compatibility check some time in the future. (Or not... 🤷)
When WORKSPACE is specified, the recursive make for target code (for regression tests) does not work properly. This PR fixes this bug.