-
Notifications
You must be signed in to change notification settings - Fork 706
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
[Bug] Finish CleanupJob early if the job is suspended. #2243
[Bug] Finish CleanupJob early if the job is suspended. #2243
Conversation
cc @tenzen-y |
9b3b976
to
c4d2858
Compare
@mszadkow: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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/test-infra repository. |
Pull Request Test Coverage Report for Build 10631502623Details
💛 - Coveralls |
c4d2858
to
807c6cc
Compare
Signed-off-by: Michal Szadkowski <michal_szadkowski@epam.com>
84702d6
to
6a7748a
Compare
Entry("No error with completionTime is nil if suspended", &cleanUpCases{ | ||
tfJob: tftestutil.NewTFJobWithCleanupJobDelay(1, 2, 0, nil), | ||
runPolicy: &kubeflowv1.RunPolicy{ | ||
TTLSecondsAfterFinished: nil, |
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.
TTLSecondsAfterFinished: nil, | |
TTLSecondsAfterFinished: ptr.To[int32](10), |
Shouldn't we need to specify the ttlSecondsAfterFinished?
Because previously, there were bugs in the situations where the Job has ttlsSecondsAfterFinished and has been suspended, right?
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.
hmm yes, this should be another test case
Signed-off-by: Michal Szadkowski <michal_szadkowski@epam.com>
3db44ec
to
cbc8456
Compare
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
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.
Great! Thanks!
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tenzen-y 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 |
* No cleaning up a job if the job is suspended. Signed-off-by: Michal Szadkowski <michal_szadkowski@epam.com> * run fmt Signed-off-by: Michal Szadkowski <michal_szadkowski@epam.com> * Another test case Signed-off-by: Michal Szadkowski <michal_szadkowski@epam.com> --------- Signed-off-by: Michal Szadkowski <michal_szadkowski@epam.com>
* No cleaning up a job if the job is suspended. Signed-off-by: Michal Szadkowski <michal_szadkowski@epam.com> Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
What this PR does / why we need it:
To fix the bug related to the situation when the job was both suspended
and
runPolicy.ttlSecondsAfterFinished` was set.In such situation CleanupJob was returning an error and activate status of the replicas couldn't be removed.
Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...
format, will close the issue(s) when PR gets merged):Fixes #2239
Checklist: