-
Notifications
You must be signed in to change notification settings - Fork 58
Add annotation to output logs for all containers. #184
Conversation
|
/assign @petr-muller @bbguimaraes @stevekuznetsov |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: droslean, petr-muller The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
As stated multiple times in the issues and in private chat, this needs to be a per-container option. One of the architectural principles of this tool is to be very selective about the logs that are stored (i.e. only those that are strictly needed to determine the cause of failure). This implementation needs to be changed. |
|
@bbguimaraes follow up issue opened. #185 |
|
I don't like this change. It made debugging failures significantly worse, because I always have to look at output that is irrelevant (e2e, teardown, or setup). The reason why we didn't show success output is because that makes debugging failures much more efficient (if I have 200k lines of output, I want the last chunk of output to be failures). I would like to revert this behavior and replace it with something more focused - probably something like "always output logs to the artifacts directory". A user having to jump into "artifacts" to get at successful container logs is fine for me. Being unable to quickly triage PR flakes and failures by clicking "logs, build logs, end of logs" is not fine. |
|
I'm also ok with having the more specific option (store only specific container logs), but I also think it should follow the underlying principle of "show failures and minimal success info in the build log, store anything else in artifacts" |
|
An example of where it made success case worse - we had a significant regression in e2e-gcp times - I went to https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/21292/pull-ci-openshift-origin-master-e2e-gcp/891/?log#log to try and see where that is. Before, I would have ~60 lines and could have easily checked the time of a section. Now, I might as well give up. |
Adds template's pod annotation
ci-operator.openshift.io/always-show-output, to output the logs for each container, no matter what the exit code was.closes #118