-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: merged resource limit is affected by remaining in the resource group. #2696
Conversation
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 5.47% | 337/6156 |
🔴 | Branches | 5.06% (+0% 🔼) |
214/4230 |
🔴 | Functions | 3.11% | 63/2023 |
🔴 | Lines | 5.37% | 323/6012 |
Test suite run success
90 tests passing in 11 suites.
Report generated by 🧪jest coverage report action from 40b6062
d990267
to
7b4e8e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Merge activity
|
…roup. (#2696) ### TL;DR Fixed and refactored resource limit and remaining calculations in useResourceLimitAndRemaining hook. This PR resolves the issue where the merged resource limit in useResourceLimitAndRemaining is affected by the remaining in the resource group. Now, the maximum value is determined as the minimum value of the following: - pre-container configuration (e.g., maxCPUCoresPerContainer) - keypair resource limit - group resource limit The useResourceLimitAndRemaining should consider the domain resource limit and the total slot size of the resource group. This will be handled by another PR. ### What changed? - Updated ResourceLimits type to use ResourceSlotName as key - Commented out resourceGroupResourceSize calculations for cpu and mem - Added keypair and group limits for accelerators - Updated type assertions in remaining resource calculations ### How to test? 1. Test resource allocation functionality in the UI 2. Verify that resource limits are correctly applied for different resource types (CPU, memory, accelerators) 3. Check that remaining resources are calculated accurately 4. Ensure that the changes don't introduce any regressions in resource management
7b4e8e9
to
40b6062
Compare
TL;DR
Fixed and refactored resource limit and remaining calculations in useResourceLimitAndRemaining hook.
This PR resolves the issue where the merged resource limit in useResourceLimitAndRemaining is affected by the remaining in the resource group.
Now, the maximum value is determined as the minimum value of the following:
The useResourceLimitAndRemaining should consider the domain resource limit and the total slot size of the resource group. This will be handled by another PR.
What changed?
How to test?