-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Enable modifications to ReFrame's environment per system basis #887
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
[feat] Enable modifications to ReFrame's environment per system basis #887
Conversation
|
@bcfriesen This fixes the issue you had when trying to load a module providing Slurm. You may now specify this module as parameter at the system level (check the description of this PR). Can you tell me if this works for you? Passing |
victorusu
left a comment
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.
lgtm, but I have a couple of questions.
| except EnvironError as e: | ||
| printer.error("failed to load current's system environment; " | ||
| "please check your configuration") | ||
| raise |
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 we raising empty?
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.
No, this means raise the current exception. But I should remove e, which I don't use.
|
Hi @vkarak,
Great! This is one of the last outstanding bugs that we have to work around at NERSC. We're returning from a system-wide maintenance today, so I will test this as soon as the systems come back (today or tomorrow). |
|
Hi @vkarak, sorry for the delay. This patch indeed works for me, thanks! |
This PR introduces the
modulesandvariablesparameters at the system level of the site configuration. This is useful in cases were a module is always needed to be loaded for launching jobs for example:Notice that this modifies the ReFrame environment, whereas the same parameters defined for a partition do not.
Fixes #806.