-
Notifications
You must be signed in to change notification settings - Fork 303
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
dump events in sandbox #802
Conversation
pkg/e2e/framework.go
Outdated
@@ -207,6 +207,10 @@ func (f *Framework) RunWithSandbox(name string, t *testing.T, testFunc func(*tes | |||
} | |||
|
|||
testFunc(t, sandbox) | |||
|
|||
if t.Failed() { | |||
sandbox.DumpSandboxInfo() |
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.
why not always dump cluster events?
pkg/e2e/sandbox.go
Outdated
|
||
// DumpSandboxInfo dumps information about the sandbox into logs | ||
func (s *Sandbox) DumpSandboxInfo() { | ||
s.dumpSandboxEvents() |
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.
why have this indirection?
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 indirection is in case in the future we need to dump more category of info. (e.g. GCE objects )
Ready fo another round |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bowei, freehan 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 |
Dumps events at the end of each test. Make it easier to debug e2e failure.