-
Notifications
You must be signed in to change notification settings - Fork 104
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
Proposal to print out events after finishing test run #797
Conversation
Anyone have idea why am I seeing only kudo related events and not also kubernetes? (like pods etc.) |
Maybe because Kubernetes events are in a different namespace than what you're using in https://github.com/kudobuilder/kudo/pull/797/files#diff-0382e7a429dc37f8045783144572c6a5R101 |
@nfnt but what namespace it would be? 🤔 I thought that pods are also created in the test namespace so I would expect also events in that namespace |
Not sure, it's just a guess. Maybe the controller that creates the pod is emitting the event. And lives in a different namespace. Will the event be shown if you don't restrict the list to any namespace? |
Oh, this is great! +1 from me It’s super weird to me that the events don’t appear for you, maybe I can try it out today. |
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.
The tests running for kudo are using a mocked control plane instead of kind, so the reason we don't see any other events in the namespace is there are no other events in the namespace - kudo is the only running controller.
Looks good to me! It will be more interesting over on the operators tests :)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alenkacz, jbarrick-mesosphere 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 |
/lgtm |
* Proposal to print out events after finishing test run * Sorting * Redundant return
What type of PR is this?
/kind test
What this PR does / why we need it:
My hope is that printing out events at the end of test execution will ease debugging of flaky tests.
this is output from my local run of one integration test:
Which issue(s) this PR fixes:
Fixes #796 796
Special notes for your reviewer:
Does this PR introduce a user-facing change?: