feat(slurm): default to flat YAML topology if partition topology is absent#235
Conversation
Greptile SummaryThis PR updates the Slurm YAML topology generation logic so that when a partition's node list cannot be resolved to any valid topology data (e.g., all nodes are offline or absent from the topology graph), the output defaults to a
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[getTreeTopologyUnit / getBlockTopologyUnit] --> B{Gather candidate\nnodes from spec}
B --> C{Any valid nodes\nresolved?}
C -- "No valid nodes\n(all 'down' / not found)" --> D[Build empty\ntree / blockMap]
C -- "Some valid nodes" --> E[Build partition tree\nor block map]
D --> F{len == 0?}
E --> F
F -- Yes --> G[tu.Flat = true\nReturn flat TopologyUnit]
F -- No --> H{Plugin type}
H -- Tree --> I[Traverse tree,\npopulate Switches]
H -- Block --> J[Sort blocks,\npopulate Blocks]
I --> K[Return TreeTopo TopologyUnit]
J --> L[Return BlockTopo TopologyUnit]
G --> M[YAML: flat: true]
K --> N[YAML: tree: switches: ...]
L --> O[YAML: block: blocks: ...]
Last reviewed commit: 15e11ac |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #235 +/- ##
==========================================
+ Coverage 66.96% 66.98% +0.02%
==========================================
Files 82 82
Lines 4646 4649 +3
==========================================
+ Hits 3111 3114 +3
Misses 1424 1424
Partials 111 111 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7ee57bc to
bcd8fde
Compare
…bsent Signed-off-by: Dmitry Shmulevich <dshmulevich@nvidia.com>
bcd8fde to
15e11ac
Compare
No description provided.