fix(webhook): count the resource to fit quota in webhook when reqnum > 1 - #2001
Conversation
Signed-off-by: james <open4pd@4paradigm.com>
📝 WalkthroughWalkthroughThe quota-fit logic in ChangesMulti-GPU Quota Fix
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the resource quota fitting logic in the scheduler webhook to correctly scale memory and core requirements when multiple resources (such as GPUs) are requested, rather than assuming a single resource request. A corresponding test case has been added to verify this behavior. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/lgtm |
Why are you rewriting the existing PR definition and code as a comment? Is this some kind of motivational support? |
@mesutoezdil Where does your quoted content come from? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: archlitchi, DSFans2014 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
As usual, someone had pasted a nonsensical LLM output; after i’d replied, he deleted the post. We are working on it: #1998 (comment) Answers should be written by human. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
count the resource to fit quota in webhook if reqnum > 1
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Summary by CodeRabbit