-
Notifications
You must be signed in to change notification settings - Fork 474
Fix slice-only TAS #5905
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 slice-only TAS #5905
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @lchrzaszcz. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
gabesaba
left a comment
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
thanks!
| sliceKey := s.sliceLevelKeyWithDefault(r, s.lowestLevel()) | ||
|
|
||
| _, mainTopologyFound := s.resolveLevelIdx(*mainKey) | ||
| _, sliceTopologyFound := s.resolveLevelIdx(sliceKey) |
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.
Given the defaulting logic, sliceTopologyFound is false iff the user provided an invalid slice key?
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.
Yup, that is correct.
|
LGTM label has been added. Git tree hash: ffb9d361ef10231936c039e4f2ae428c0c73c780
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lchrzaszcz, mimowo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold |
|
/unhold |
Sure! I agree that e2e is valuable and I explicitly wanted to add it, to be sure that rank-ordering for slice-only topologies work as expected because it did work in unit tests, but due to validation in earlier stage it turned out the code for that was never used. I think we should add test for validation, because this is the one test that is missing. WDYT? |
|
Unit test for validation is one thing + I think we could also add a unit test demonstrating the changes done to |
What type of PR is this?
/kind bug
What this PR does / why we need it:
To achieve slice-only TAS, user has to provide slice required topology, slice size and optionally unconstrained annotation. Due to a bug in validation, if user provides slice required topology without required, preferred or unconstrained annotations, Kueue will ignore slice topology and rank-ordering of the pods.
This PR fixes that issue and adds explicit end-to-end test for rank-ordering in slice-only TAS.
Which issue(s) this PR fixes:
Special notes for your reviewer:
I am leaving release notes as
NONE, because this is a fix to TAS which is targeted at 0.13 anyway.Does this PR introduce a user-facing change?