-
Notifications
You must be signed in to change notification settings - Fork 119
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
Remove ENV_INIT_SCRIPT and avoid dependency on system python #404
Remove ENV_INIT_SCRIPT and avoid dependency on system python #404
Conversation
Machine: hera |
Machine: jet |
f9ffd9d
to
251f0df
Compare
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.
@danielabdi-noaa Should the TOPO_DIR and SFC_CLIMO_INPUT_DIR entries be moved to task_make_orog and task_make_sfc_climo, in line with the rest of the machine yaml files?
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.
Thank you for addressing my concerns. Approving this PR and launching Jenkins CI.
@danielabdi-noaa Unfortunately, this PR is still failing to build on Gaea through the Jenkins CI pipeline. Any ideas as to why this might be happening? |
@MichaelLueken I am testing build manually on gaea and it doesn't seem to fail for me. I thought it maybe an issue with |
@danielabdi-noaa It seems as though your modifications at 15986db have corrected the issue with the build failing on Gaea. Since PR #407 has been merged, if the |
@MichaelLueken The issue on gaea in this PR seems to be with modulefiles. Depending on how conda activated
The firs one is the one we need and has yaml. The second one has same python3 version but has not yaml package.
I will try and figure out a way around this later. |
@MichaelLueken I thought the same but I don't it will work since there is an additional issue with modulefiles on gaea that this PR uncovers. The miniconda3 modulefile is written in Lua and is different from other systems that have miniconda3 modulefile written in TCL. It maybe be better to move to Lua format but i know in the past I've encountered issues with mixing TCL/Lua modulefiles. That is actually the reason why we can't put "conda activate" inside a modulefile. The Lua miniconda modulefile is putting both "bin" paths that contain two pythons and we may have to modify the Lua modulefile if I can't find a workaround for it. |
@danielabdi-noaa I'm seeing some interesting behavior between the various RDHPCS machines with respect to what happens when attempting to load a task modulefile while having the On Hera, using Obviously, this isn't the case with Gaea. On this machine, using Would adding |
@MichaelLueken Yes, you've captured the essense of the problem. I have thought about
The correct python3 path will be pre-pended to $PATH and we get the right python3 this way. On Hera and others the first |
15986db
to
7dd9ecd
Compare
@MichaelLueken I've pushed this change now. Since I can not test it myself, please re-run jenkins when you get the chance? |
Looks good to me! |
DESCRIPTION OF CHANGES:
This PR addresses issues #401 and #402. The latter is addressed through the alternative solution described there.
Detailed changes:
ENV_INIT_SCRIPT_FP
and apply the sourcing of/etc/profile
directly inetc/lmod-setup.sh
. There will only be one way to setup Lmod going forward.ush/load_modules_wflow.sh
that is sourced by CIs run scriptsType of change
TESTS CONDUCTED:
Run on Hera and Jet a test case successfully, but the most critical test is Gaea that does additional Lmod sourcing through scripts passed by
ENV_INIT_SCRIPT_FP
DEPENDENCIES:
DOCUMENTATION:
None
ISSUE:
ENV_INIT_SCRIPTS_FPS
because it seems redundant. #401CHECKLIST
LABELS (optional):
A Code Manager needs to add the following labels to this PR:
CONTRIBUTORS (optional):