-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add sort_nodes.py
#2853
Add sort_nodes.py
#2853
Conversation
mr0re1
commented
Aug 1, 2024
•
edited
Loading
edited
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.
Would suggest adding a test of numerical hostnames, and needs fix to get the lowest number first. Could be combined with a test of two groups of three nodes at depth 2, where the lowest number node is in the node with a higher first level string. something like
x/slurm-1
x/slurm-2
x/slurm-3
y/slurm-0
y/slurm-4
z/slurm-10
I'd expect 0,4,10,1,2,3
...uler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/topologically_sort_nodes.py
Outdated
Show resolved
Hide resolved
...scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/tests/test_topology.py
Show resolved
Hide resolved
@samskillman , for
The order |
|
I agree - I meant for that z to be a y. I think either would be acceptable solutions in principle, but I agree 0,4,1,2,3,10 is better. My mistake on the typo. |