-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
✨ (go/v4): e2e tests: add data collection on failures and code simplification #4175
✨ (go/v4): e2e tests: add data collection on failures and code simplification #4175
Conversation
c/c @mogsie |
@@ -115,9 +158,8 @@ var _ = Describe("Manager", Ordered, func() { | |||
) | |||
output, err := utils.Run(cmd) | |||
g.Expect(err).NotTo(HaveOccurred()) | |||
g.Expect(string(output)).To(BeEquivalentTo("Running"), "Incorrect controller-manager pod status") | |||
g.Expect(output).To(BeEquivalentTo("Running"), "Incorrect controller-manager pod status") |
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(output).To(BeEquivalentTo("Running"), "Incorrect controller-manager pod status") | |
g.Expect(output).To(Equal("Running"), "Incorrect controller-manager pod status") |
This is great @camilamacedo86! I struggled with my kind cluster and some problems were only solved by looking into the container logs and events. This will help a lot. Just a tiny additional change, otherwise it looks good! /approve (not sure I'm allowed to approve, but hey, I'll try!) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, mogsie 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 |
…cation - Gather logs, events, and pod descriptions when tests fail - utils.Cmd returning string instead of []bytes for code simplification
e8e8dd3
to
fd683a6
Compare
The changes allow us to have the data to debug and identify the issues: https://github.com/kubernetes-sigs/kubebuilder/actions/runs/10878247989/job/30180826578?pr=4171