-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
annotate errors in apps/job e2e tests #72440
Conversation
Hi @ajatprabha. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
@oomichi, please add |
test/e2e/apps/job.go
Outdated
@@ -41,11 +41,11 @@ var _ = SIGDescribe("Job", func() { | |||
By("Creating a job") | |||
job := framework.NewTestJob("succeed", "all-succeed", v1.RestartPolicyNever, parallelism, completions, nil, backoffLimit) | |||
job, err := framework.CreateJob(f.ClientSet, f.Namespace.Name, job) | |||
Expect(err).NotTo(HaveOccurred()) | |||
Expect(err).NotTo(HaveOccurred(), "failed to create Job in namespace: %s", f.Namespace.Name) |
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.
nit: Why Job is upercase? There are many this kind of words in the following also.
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.
I read here that API objects should be capitalized. Was not sure whether it applies to code as well. Should I use small case?
test/e2e/apps/job.go
Outdated
|
||
By("delete a job") | ||
framework.ExpectNoError(framework.DeleteResourceAndWaitForGC(f.ClientSet, batchinternal.Kind("Job"), f.Namespace.Name, job.Name)) | ||
|
||
By("Ensuring job was deleted") | ||
_, err = framework.GetJob(f.ClientSet, f.Namespace.Name, job.Name) | ||
Expect(err).To(HaveOccurred()) | ||
Expect(err).To(HaveOccurred(), "failed to get Job %s in namespace: %s", job.Name, f.Namespace.Name) |
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 is invalid message, because this expects an error happens to verify the deleted job.
/ok-to-test |
bea199c
to
691e571
Compare
691e571
to
c3bc60b
Compare
/retest |
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 for updating,
/lgtm
/retest |
/assign @liggitt |
will defer to apps test owners |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ajatprabha, spiffxp 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR annotates the errors in apps/job e2e tests providing more context.
Which issue(s) this PR fixes:
WIP for #34059
Does this PR introduce a user-facing change?: