fix(api): do not count DRA admin access GPU claims as GPU usage #26
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.46) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 258 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #26"
general
weight: 0.35
enoodle
Description
DRA claims with
adminAccess: truedo not consume a device: the API lets them share a device with a regular allocation, and kube-scheduler's allocated-device tracking skips them. The GPU helpers here counted them anyway. The NVIDIA GPU Operator in DRA mode keeps admin access claims on every GPU node (DRA validator, DCGM exporter), so in KAI a one-GPU node looked fully used and every GPU pod was rejected withdidn't have enough resources: GPUs.countGPUDevicesFromClaimandgetGPUDeviceClassNameFromClaimnow skip requests withAdminAccessset, through oneisGPUConsumingRequestcheck. That carries throughExtractDRAGPUResourcesFromClaimsandDRAGPUResourceListFromClaims, which KAI uses for the pod's GPU request and the podgroup's requested and allocated resources.This is the
dra.gohalf of kai-scheduler/KAI-Scheduler#2237, moved here as asked in that PR. The other half (dra_shared_device_info.go) stays in KAI and goes in with the module bump.Related Issues
Part of kai-scheduler/KAI-Scheduler#2236
Checklist
make changelog(or applied theskip-changeloglabel). Do not editCHANGELOG.mddirectly; pending fragments are folded into it at release time.Breaking Changes
None. Claims without admin access are counted as before.
Additional Notes
Tests in
dra_gpu_test.go:ExactCountandAlladmin requests count 0, a mixed claim counts only its regular request, and admin claims are left out ofExtractDRAGPUResourcesFromClaimsandDRAGPUResourceListFromClaims. They fail on main and pass with the fix.Checked against KAI main (049d1ba6, on v0.2.0) with a
replacepointing at this branch: the tests from kai-scheduler/KAI-Scheduler#2237 innode_infoandpod_infopass. With thereplacepointing at unpatched main, the two admin access tests innode_infofail.make validateandmake testpass, andgo mod tidyleaves go.mod unchanged.