-
Notifications
You must be signed in to change notification settings - Fork 319
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
shell_commands for tests with two testmods listed don't concatenate both together.. #2037
Comments
I also note that the order for the testmods FATES NEON tests is the opposite to the BGC NEON tests. This should be figured out... |
Could one solution to this and #1949 be to use usermods in NEON/defaultshell_commands to key off of the compset being used and customize FATES namelist setting in? For example:
|
@wwieder I like that suggestion for duplication. This issue here is pretty specific to how testmods work for us. And I probably need to file a specific issue with cime, but I need to investigate more. |
Should this come in with #2044? |
@ekluzek - I see the value in what you're saying: having a full list of all shell_commands for a test. This is more of a concern now that (1) we allow multiple testmods and (2) the shell_commands can be pretty complex (if they were simply a list of xmlchange commands, you could see what was done in the CaseStatus file). I think you're going to run into trouble if you try to append to the shell_commands without removing it at the start of the application of each testmod (https://github.com/ESMCI/cime/blob/95e29f9736d2ef41b690f082afe8509caadecb08/CIME/user_mod_support.py#L29-L31), because you'll end up re-executing commands multiple times (which may often be okay, but in some cases may be problematic). My suggestion would be to introduce a new file like shell_commands_all_testmods into which you copy the contents of shell_commands after executing them (e.g., after this block: https://github.com/ESMCI/cime/blob/95e29f9736d2ef41b690f082afe8509caadecb08/CIME/user_mod_support.py#L118-L121) |
Just a note: As part of #1863, I had bumped the CIME version from |
Hmm. I just rolled back to Here's the crash log, from
|
Never mind! Apparently @glemieux fixed this already. |
Closing this as a wontfix. This would need to be addressed in cime. |
@ekluzek This is an important issue, though. Could you post it in the CIME repo? |
One further thing I found is that the first two include directories don't get the shell_command files concatenated, but the ones after that do. |
This is now an issue in cime, so closing here. |
Brief summary of bug
The shell_commands file created for a test with two testmods such as...
SMS_Ld10_D_Mmpi-serial.CLM_USRDAT.I1PtClm51Fates.izumi_nag.clm-NEON-FATES-SJER--clm-FatesPRISM
seems to execute the first test-mod, but create the shell_commands for the testcase that just contains the second.
General bug information
CTSM version you are using: ctsm5.1.dev129
Does this bug cause significantly incorrect results in the model's science? No
Configurations affected: Tests in the test list that include two testmods
This would be an issue in cime, rather than in CTSM. And possibly this behavior is OK, but it makes it hard to see what the test is actually doing.
The text was updated successfully, but these errors were encountered: