Skip to content

[release-1.14] fix(capacity): avoid false exceeds on missing parent scalar keys - #5218

Merged
volcano-sh-bot merged 1 commit into
volcano-sh:release-1.14from
volcano-sh-bot:cherry-pick-5176-to-release-1.14
Apr 18, 2026
Merged

[release-1.14] fix(capacity): avoid false exceeds on missing parent scalar keys#5218
volcano-sh-bot merged 1 commit into
volcano-sh:release-1.14from
volcano-sh-bot:cherry-pick-5176-to-release-1.14

Conversation

@volcano-sh-bot

Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #5176

Fix false-positive hierarchical queue capability exceed errors when child queues contain scalar resource keys absent from parent/root capability maps (for example after MIG resource class removal).

Use child.GreaterPartly(parent, Infinity) in hierarchical capability
validation so child-only scalar dimensions no longer trigger false
parent-exceeded errors when parent/root does not define those keys.
This preserves real exceed detection and reduces noisy logs after
resource-class changes such as MIG key removals.

Signed-off-by: Hajnal Máté <mate.hajnal@aumovio.com>
Signed-off-by: Hajnal Máté <hajnalmt@gmail.com>
@volcano-sh-bot volcano-sh-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new test function TestResource_GreaterPartly in resource_info_test.go to validate resource comparison logic across various scenarios. Additionally, it updates the checkHierarchicalQueue function in capacity.go to utilize GreaterPartly for capability checks, which now includes the specific resources exceeding parent limits in the error logs. I have no feedback to provide.

@hajnalmt hajnalmt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/retest
/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2026
@JesseStutler

Copy link
Copy Markdown
Member

/approve
/lgtm

@volcano-sh-bot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hajnalmt, JesseStutler

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 18, 2026
@volcano-sh-bot
volcano-sh-bot merged commit 339f970 into volcano-sh:release-1.14 Apr 18, 2026
17 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants