Commit a5b8f3d
authored
fix: critical logic bugs across plugins - hard rejection filters, metrics, topology checks (#23)
* fix: critical logic bugs across plugins - hard rejection filters, metrics, topology checks
## Critical Logic Fixes
### ResourceFragmentationScore
- Add Filter plugin to hard-reject nodes where GPU or tenant tier requirements aren't met
- Fix pristine island label override (label now properly overrides allocation calculation)
- Add structured logging (klog.InfoS) to Filter for visibility
### Coscheduling
- Fix GangCompletionLatency metric (was always ~0, now uses gang submission timestamp)
- Fix pod group label mismatch between calculateTotalPods and calculateRunningPodsExcluding
### NUMATopology
- Add thread-safety to gangState map with RWMutex
- Fix NUMA fit score formula (inverted - penalized empty nodes, now prefers remaining capacity)
### ResourceReservation
- Fix isGangComplete to skip terminating pods and check PodRunning phase
### VRAMScheduler
- Add 5-second timeout to DRA ResourceSlice queries (prevents scheduler stalls)
- Fix GPU default logic (only defaults to 1 GPU if VRAM explicitly requested)
### GitHub Actions
- Fix security workflow permissions for CodeQL SARIF uploads
* chore: add gitignore rules to prevent root binaries being committed
- Exclude /scheduler and /webhook from root (should use /bin folder)
- Ensures binaries are only built to bin/ directory going forward
* fix: add mutex locking to gangState access in NUMATopology
- Wrap gangState reads with RLock in calculateGangAffinityScore
- Wrap gangState reads/writes with Lock/Unlock in recordGangPlacement
- Fixes unused field linting error by actually using the mutex1 parent 72a63f2 commit a5b8f3d
File tree
6 files changed
+118
-27
lines changed- pkg/plugins
- coscheduling
- numatopology
- resourcefragmentation
- resourcereservation
- vramscheduler
6 files changed
+118
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
301 | 309 | | |
302 | 310 | | |
303 | 311 | | |
| |||
367 | 375 | | |
368 | 376 | | |
369 | 377 | | |
370 | | - | |
| 378 | + | |
| 379 | + | |
371 | 380 | | |
372 | | - | |
373 | | - | |
374 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
375 | 389 | | |
376 | 390 | | |
377 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
315 | 322 | | |
316 | 323 | | |
317 | 324 | | |
| |||
688 | 695 | | |
689 | 696 | | |
690 | 697 | | |
691 | | - | |
| 698 | + | |
| 699 | + | |
692 | 700 | | |
| 701 | + | |
| 702 | + | |
693 | 703 | | |
694 | 704 | | |
695 | 705 | | |
| |||
753 | 763 | | |
754 | 764 | | |
755 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
756 | 770 | | |
757 | 771 | | |
758 | 772 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
86 | 131 | | |
87 | 132 | | |
88 | 133 | | |
| |||
237 | 282 | | |
238 | 283 | | |
239 | 284 | | |
240 | | - | |
241 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
242 | 288 | | |
243 | 289 | | |
244 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
436 | 441 | | |
437 | 442 | | |
438 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
705 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
706 | 711 | | |
707 | 712 | | |
708 | 713 | | |
| |||
712 | 717 | | |
713 | 718 | | |
714 | 719 | | |
715 | | - | |
716 | | - | |
717 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
718 | 728 | | |
719 | 729 | | |
720 | 730 | | |
| |||
0 commit comments