-
Notifications
You must be signed in to change notification settings - Fork 542
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
[slurm] Add slurm plugin #3329
[slurm] Add slurm plugin #3329
Conversation
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
Slurm is a workload manager in the HPC space, this is a start on this, and there may be further additions in the future. Signed-off-by: Arif Ali <[email protected]>
'sinfo --all --long', | ||
]) | ||
|
||
if is_executable('squeue'): |
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 think this test might not be needed. If a command isn't executable, sos
won't store output of it (https://github.com/sosreport/sos/blob/main/sos/utilities.py#L261-L270) - but will add a record to manifest.json
.
But definitely it is fine to use the test here.
'topology', | ||
] | ||
|
||
if is_executable('scontrol'): |
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.
Yeah, here the test makes a lot of sense :) (test executable once, save many "command not found" deadends ahead). :)
I tested it without the test, and the file was created, so hence added the tests.
I could easily split the plugin out to multiple plugins, one for
Alternative method would have been to test for the above 2 packages for the command availability |
Ah I see, then the test makes a lot of sense on either place. If there is more stuff to collect common than different, I would stay with one plugin. |
Slurm is a workload manager in the HPC space, this is a start on this, and there may be further additions in the future
Resolves: #3329
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines