CI: Output a summary using GITHUB_SUMMARY#7192
Conversation
|
Skipping CI for Draft Pull Request. |
3a95944 to
69e7183
Compare
6de9624 to
1352e46
Compare
d961d16 to
f73f529
Compare
|
/test pull-containerd |
|
@cpuguy83: The specified target(s) for
Use
DetailsIn 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 pull-containerd-build |
|
@cpuguy83 It looks like the K8s tests are failing because of the merge conflict. Mind rebasing? |
Uses teststat to parse the go test json and output markdown which will be posted as a summary to the github action run. Signed-off-by: Brian Goff <[email protected]>
Signed-off-by: Brian Goff <[email protected]>
f73f529 to
9cdf9f6
Compare
|
Rebased |
| ""; . += "::error title=\($item | err_title)\($item | details_to_string)::\($item.Output | encode_output)\n" | ||
| ); | ||
|
|
||
| group_tests | only_failed | merge_output | to_error No newline at end of file |
There was a problem hiding this comment.
nit: missing newline at the end of the file
Uses teststat to parse the go test json and output markdown which will
be posted as a summary to the github action run.
Also adds annotations for failed tests so the test failure is surfaced right into the github summary.
If the error occurred for a test in the diff, the annotation will also appear in the diff at the line number of the failure.
It uses the last test log message to determine the file/line number.
One thing I noticed with this, not all log messages originate from a
_test.go, in which case the file/line number are not attached to the annotation.