-
Notifications
You must be signed in to change notification settings - Fork 213
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
Reformat config machines #4542
Reformat config machines #4542
Conversation
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.
The config_machines_version3.xsd
schema file is missing, otherwise this looks good.
Added the config_machines_version3.xsd and the code to pass both schemas in and check the one based on the file version. |
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.
Awesome. I like the new format of storing machine information! I have just one inline request for a bit more documentation on a function you changed. Some other comments / possible requests:
- There are a few changes in here unrelated to the main changes here (cprnc and some test stuff). Would it make sense to separate these into their own PR? I don't feel strongly about this.
- Does this lead to changes in the recommended (or possibly required) way that people store stuff in their personal
.cime
directory? If so, is there somewhere where this should be documented?
CIME/non_py/cprnc
Outdated
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.
Are these changes intended?
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.
These changes were due to a merge to master.
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.
Weird - usually a merge to master won't show up in PR diffs like this. Is the situation different for submodules like this?
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 agree this is a little strange and will make sure that the merge works correctly.
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, thanks!
This is welcome since config_machines.xml can become a giant file. Does the code in the per-machine files look just like the XML blocks in the current combined file? |
@rljacob I made it backward compatible so no changes are required in e3sm. Yes the |
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 latest change!
Is there a way to do one subdir with a uniquely named file per machine instead of a uniquely named subdir for each machine? |
What is your argument for that change? I considered it, but plan to treat config_batch.xml in the same way - so there will be a config_batch.xml file in each machine subdir. |
If there's going to be more then one file in each subdir, then it makes more sense. Does the subdir name have to match the string you pass to --machine ? |
Yes, currently the subdirectory name is expected to match the string in MACH= |
The cprnc submodule does seem to be out of sync with master, my attempts to fix the issue have failed - @jgfouca can you have a look? There should not be any changes in cprnc due to this PR. |
@jedwards4b , I just merged #4545 , which should put us on the latest cprnc main commit. You should rebase or upstream this branch, take the cprnc commit that's on master, and the conflict will resolve. |
a5b829b
to
d32b0d5
Compare
@jgfouca I just did a rebase again - it still doesn't seem to have worked. |
It looks like the conflict is gone? |
Oh, I see this PR is still trying to change the submodule. Try this: |
Still no help: Untracked files: nothing added to commit but untracked files present (use "git add" to track) |
@jedwards4b , can you push this branch to the main repo? I'd like to check it out and modify it. |
I could but I shouldn't have to, you can clone or add my fork with |
I checked out your branch and somehow your cprnc submodule is still set to an older commit. This should fix it:
|
That did it - thank you! |
Reformats config machines so that the primary file contains only the regex field for machine name matching. The
details for each machine are then read from files in machines/machinename/config_machines.xml
This is v3 of config_machines.xml, this change is backward compatible with v2.
Test suite: scripts_regression_tests.py
Test baseline:
Test namelist changes:
Test status: bit for bit
Fixes
User interface changes?:
Update gh-pages html (Y/N)?: