-
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
Allow summaries to be printed out to ReportDir instead of stdout #44673
Conversation
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.
Just minor comments - feel free to self-lgtm after applying.
test/e2e/framework/framework.go
Outdated
if TestContext.ReportDir == "" { | ||
Logf(summaries[i].PrintHumanReadable()) | ||
} else { | ||
filePath := path.Join(TestContext.ReportDir, summaries[i].SummaryKind()+now.Format(time.RFC3339)+".txt") |
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'm fine with that for now, but can you please add a TODO to add test name here?
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.
or actually replace time with test 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.
Done. It may be tricky though, as you certainly don't want to append "should allow starting 30 pods per node using { ReplicationController} with 0 secrets and 0 daemons" (aka "Density") which is what you would get...
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.
Good point. What we want is the "KubeDescribe" part of it. Anyway. TODO is fine.
test/e2e/framework/framework.go
Outdated
Logf("%v JSON\n%v", summaries[i].SummaryKind(), summaries[i].PrintJSON()) | ||
Logf("Finished") | ||
} else { | ||
filePath := path.Join(TestContext.ReportDir, summaries[i].SummaryKind()+now.Format(time.RFC3339)+".json") |
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.
Same TODD here.
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.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gmarek, wojtek-t
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 44667, 44673) |
Fix #44003
cc @shyamjvs