Skip to content
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

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

mimowo
Copy link
Contributor

@mimowo mimowo commented Nov 19, 2024

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?

TAS: support rank-based ordering for JobSet

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 19, 2024
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2024
Copy link

netlify bot commented Nov 19, 2024

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit b4719c8
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/673cc88224941d00086b3273

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 19, 2024
@mimowo mimowo force-pushed the tas-rank-ordering-jobset branch from 0fadc0b to 4b83778 Compare November 19, 2024 09:06
@mimowo
Copy link
Contributor Author

mimowo commented Nov 19, 2024

/assign @PBundyra
cc @tenzen-y

return nil, err
}
singleJobSize := podSetSize / rjInfo.replicasCount
if *podIndex >= singleJobSize {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if *podIndex >= singleJobSize {
if rank >= singleJobSize {

Copy link
Contributor Author

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

@mimowo mimowo force-pushed the tas-rank-ordering-jobset branch from 094f72b to 8d43c08 Compare November 19, 2024 11:52
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 19, 2024
@mimowo mimowo force-pushed the tas-rank-ordering-jobset branch from 8d43c08 to c999305 Compare November 19, 2024 12:38
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mimowo mimowo force-pushed the tas-rank-ordering-jobset branch 4 times, most recently from db98664 to c0f69b6 Compare November 19, 2024 13:36
@mimowo mimowo force-pushed the tas-rank-ordering-jobset branch from c0f69b6 to 4419dcd Compare November 19, 2024 13:50
@mimowo
Copy link
Contributor Author

mimowo commented Nov 19, 2024

@PBundyra I have updated the e2e test and it is passing now, PTAL

@PBundyra
Copy link
Contributor

Thanks @mimowo!
/lgtm
/hold to address nits

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 19, 2024
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: d81f4f120d150073c4e02deab2fdea842489e076

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2024
@mimowo
Copy link
Contributor Author

mimowo commented Nov 20, 2024

FYI. I have ran this test locally in a loop around 20 times and all passed.

@PBundyra
Copy link
Contributor

/lgtm
Thank you

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 20, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 64e0e458921be6133459b81c3d4d742dca00e8e6

@mimowo
Copy link
Contributor Author

mimowo commented Nov 20, 2024

/hold to address nits

/hold cancel
all comments are addressed

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 20, 2024
@mimowo
Copy link
Contributor Author

mimowo commented Nov 20, 2024

/test pull-kueue-test-multikueue-e2e-main
Opened: #3600

@k8s-ci-robot k8s-ci-robot merged commit 4551e39 into kubernetes-sigs:main Nov 20, 2024
17 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.10 milestone Nov 20, 2024
kannon92 pushed a commit to kannon92/kueue that referenced this pull request Dec 5, 2024
* 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]>
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants