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

Add new job-id annotation to assign globally unique job index to each job #650

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

danielvegamyhre
Copy link
Contributor

Fixes #649

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danielvegamyhre

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 13, 2024
@k8s-ci-robot k8s-ci-robot requested review from ahg-g and kannon92 August 13, 2024 03:23
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 13, 2024
Copy link

netlify bot commented Aug 13, 2024

Deploy Preview for kubernetes-sigs-jobset canceled.

Name Link
🔨 Latest commit c5dc122
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-jobset/deploys/66bfa3db03ebfd00081e07e6

@danielvegamyhre danielvegamyhre changed the title Add new job-id annotation to assign globally unique job index to each job [WIP] Add new job-id annotation to assign globally unique job index to each job Aug 13, 2024
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 13, 2024
@danielvegamyhre danielvegamyhre changed the title [WIP] Add new job-id annotation to assign globally unique job index to each job Add new job-id annotation to assign globally unique job index to each job Aug 13, 2024
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 13, 2024
@danielvegamyhre danielvegamyhre force-pushed the job-id branch 3 times, most recently from dbd60f5 to 32cc246 Compare August 13, 2024 04:35
@danielvegamyhre
Copy link
Contributor Author

/assign @kannon92 @ahg-g please take a look when you have a sec, thanks!

@danielvegamyhre danielvegamyhre added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Aug 13, 2024
JobIndexKey string = "jobset.sigs.k8s.io/job-index"
// JobIDKey is a label/annotation set to an integer that is unique across the entire JobSet.
// For each JobSet, this value will range from 0 to N-1, where N=total number of jobs in the jobset.
JobIDKey string = "jobset.sigs.k8s.io/job-id"
Copy link
Contributor

Choose a reason for hiding this comment

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

i would call it jobset.sigs.k8s.io/job-global-index

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, updated PR accordingly.

@danielvegamyhre danielvegamyhre force-pushed the job-id branch 2 times, most recently from 18c7fb6 to 7544e12 Compare August 16, 2024 18:56
@ahg-g
Copy link
Contributor

ahg-g commented Aug 16, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2024
@k8s-ci-robot k8s-ci-robot merged commit 7886910 into kubernetes-sigs:main Aug 16, 2024
13 checks passed
@danielvegamyhre danielvegamyhre mentioned this pull request Aug 19, 2024
20 tasks
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add global Job index label/annotation to provide a global index for each job across the entire JobSet
3 participants