fix(admission): accept a GPU portion limit equal to gpu-fraction #29
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 221 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #29"
general
weight: 0.35
noiyemini
Description
The portion-limit admission checks required the limit to be strictly greater than
gpu-fraction:validateGpuMemoryPortionLimitAnnotation(kai.scheduler/container.<name>.gpu-memory.portion.limit)validateFractionLimitShorthand(legacygpu-fraction.limit)The GPU memory limit check (
validateNvFractionsAnnotations) only rejectsrequest > limit, so a memory limit equal to the request is admitted but a portion limit equal to the request is not. A limit equal to the request means "no headroom" and is what clients produce when the limit defaults to the request. Today such pods are denied, so the owning Job/Deployment never creates a pod.This changes both comparisons from
<=to<, solimit >= gpu-fractionis accepted. The< 1.0upper bound and the 5-decimal precision rule are unchanged.Related Issues
Fixes kai-scheduler/KAI-Scheduler#2548
Checklist
TestValidateFractionLimitShorthand(the legacy annotation had no tests)..changes/unreleased/fixed-20261029-155232.yaml)go test ./...andgo vet ./utilities/...pass locally.Breaking Changes
None. This only relaxes validation; pods admitted before are still admitted.
Additional Notes
Found via Run:ai, which writes this annotation from the user's request/limit (dsx-ai-factory/run-ai#3222). Run:ai works around it on its side (dsx-ai-factory/run-ai#3757), so this isn't blocking, but other clients hit the same inconsistency.
🤖 Generated with Claude Code