-
Notifications
You must be signed in to change notification settings - Fork 66
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
WINC-983: [e2e] Ensure required log files are non-empty #1421
WINC-983: [e2e] Ensure required log files are non-empty #1421
Conversation
Skipping CI for Draft Pull Request. |
@mansikulkarni96: This pull request references WINC-983 which is a valid jira issue. In response to this:
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. |
/test aws-e2e-operator |
0034bbe
to
65e8b67
Compare
test/e2e/logs_test.go
Outdated
logInfo, err := os.Stat(outputFile) | ||
if err != nil || logInfo.Size() == 0 { | ||
return errors.Wrap(err, "log file should not be empty") | ||
} |
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 feel like this should be done at the retrieveLogs() call site to avoid giving too much responsibility to this function. Also we're retrying on error at the call site -- when we get a log size of zero, we don't need to retry
65e8b67
to
df82024
Compare
/lgtm |
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 working on this, @mansikulkarni96
df82024
to
fcc609d
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aravindhp, mansikulkarni96 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 |
/hold |
This commit adds a check to the logs tests to check that log files have non-zero size, ensuring they are actually being written to by the services.
fcc609d
to
24d3311
Compare
/test aws-e2e-operator |
/lgtm |
/retest |
/hold cancel |
/retest-required. azure-e2e-ccm-install failed with:
|
/retest-required |
/retest-required |
@mansikulkarni96: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/cherry-pick release-4.12 |
@mansikulkarni96: new pull request created: #1458 In response to this:
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. |
/cherry-pick release-4.11 |
@mansikulkarni96: new pull request created: #1463 In response to this:
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. |
/cherry-pick release-4.10 |
@mansikulkarni96: #1421 failed to apply on top of branch "release-4.10":
In response to this:
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. |
/cherry-pick release-4.10 |
@mansikulkarni96: #1421 failed to apply on top of branch "release-4.10":
In response to this:
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. |
This commit adds a check to the logs tests to check that log files have non-zero size, ensuring they are actually being written to by the services.