-
Notifications
You must be signed in to change notification settings - Fork 228
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
Сlear RequeuAt on workload backoff finished #2143
Сlear RequeuAt on workload backoff finished #2143
Conversation
Skipping CI for Draft Pull Request. |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/test all |
/ok-to-test |
@@ -2003,6 +2003,8 @@ var _ = ginkgo.Describe("Job controller interacting with scheduler when waitForP | |||
g.Expect(createdJob.Status.Ready).ShouldNot(gomega.BeNil()) | |||
g.Expect(*createdJob.Status.Ready).Should(gomega.Equal(int32(1))) | |||
g.Expect(k8sClient.Get(ctx, wlKey, wl)).Should(gomega.Succeed()) | |||
g.Expect(wl.Status.RequeueState).ShouldNot(gomega.BeNil()) |
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.
Please also verify that the count
is not cleared
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.
Thanks. Added.
1ae124d
to
30fa599
Compare
/assign @mimowo |
@@ -2003,6 +2003,10 @@ var _ = ginkgo.Describe("Job controller interacting with scheduler when waitForP | |||
g.Expect(createdJob.Status.Ready).ShouldNot(gomega.BeNil()) | |||
g.Expect(*createdJob.Status.Ready).Should(gomega.Equal(int32(1))) | |||
g.Expect(k8sClient.Get(ctx, wlKey, wl)).Should(gomega.Succeed()) | |||
g.Expect(wl.Status.RequeueState).ShouldNot(gomega.BeNil()) | |||
g.Expect(wl.Status.RequeueState.Count).ShouldNot(gomega.BeNil()) | |||
g.Expect(*wl.Status.RequeueState.Count, 0).Should(gomega.Equal(int32(1))) |
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.
g.Expect(*wl.Status.RequeueState.Count, 0).Should(gomega.Equal(int32(1))) | |
g.Expect(wl.Status.RequeueState.Count).Should(gomega.Equal(ptr.To[int32](1))) |
Would it work? I guess it will give us a nicer error message that if we panic with nil panic.
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.
Yes, because I check that wl.Status.RequeueState.Count
shouldn't be nil on previous line.
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.
Oh, I see, but can we collapse these two lines into one, as in the 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.
Sure
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.
Done
30fa599
to
6cb404b
Compare
/lgtm |
LGTM label has been added. Git tree hash: cfb9107e0497cd92eccde7f51f9bb9b802091295
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mbobrovskyi, 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 |
/release-note-edit
|
What type of PR is this?
/kind bug
What this PR does / why we need it:
Clear RequeuAt on workload backoff finished.
Which issue(s) this PR fixes:
Fixes #2038
Special notes for your reviewer:
Does this PR introduce a user-facing change?