-
Notifications
You must be signed in to change notification settings - Fork 276
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
TAS: support rank-based ordering for JobSet #3591
TAS: support rank-based ordering for JobSet #3591
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
0fadc0b
to
4b83778
Compare
4b83778
to
094f72b
Compare
return nil, err | ||
} | ||
singleJobSize := podSetSize / rjInfo.replicasCount | ||
if *podIndex >= singleJobSize { |
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.
if *podIndex >= singleJobSize { | |
if rank >= singleJobSize { |
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.
This would work, but isn't the podIndex better reflect the intention? The rank can still be mutated
094f72b
to
8d43c08
Compare
8d43c08
to
c999305
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
db98664
to
c0f69b6
Compare
c0f69b6
to
4419dcd
Compare
@PBundyra I have updated the e2e test and it is passing now, PTAL |
Thanks @mimowo! |
LGTM label has been added. Git tree hash: d81f4f120d150073c4e02deab2fdea842489e076
|
Co-authored-by: Patryk Bundyra <[email protected]>
Co-authored-by: Patryk Bundyra <[email protected]>
FYI. I have ran this test locally in a loop around 20 times and all passed. |
/lgtm |
LGTM label has been added. Git tree hash: 64e0e458921be6133459b81c3d4d742dca00e8e6
|
/hold cancel |
/test pull-kueue-test-multikueue-e2e-main |
* TAS: support rank-based ordering for JobSet * Update test/e2e/tas/jobset_test.go Co-authored-by: Patryk Bundyra <[email protected]> * Update test/e2e/tas/jobset_test.go Co-authored-by: Patryk Bundyra <[email protected]> --------- Co-authored-by: Patryk Bundyra <[email protected]>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Part of #3450
Part of #3533
Special notes for your reviewer:
I don't have e2e test yet, but getting early feedback would be great.
Does this PR introduce a user-facing change?