Skip to content

.github/workflows: publish test results for failed job#8801

Merged
dapengzhang0 merged 1 commit intogrpc:masterfrom
dapengzhang0:upload-test-report2
Jan 5, 2022
Merged

.github/workflows: publish test results for failed job#8801
dapengzhang0 merged 1 commit intogrpc:masterfrom
dapengzhang0:upload-test-report2

Conversation

@dapengzhang0
Copy link
Copy Markdown
Contributor

@dapengzhang0 dapengzhang0 commented Jan 5, 2022

The GitHub Actions Linux Testing only reports limited information (can not see full stacktrace, time consumed, or stderr from child threads) when unit tests fail. Adding a step to upload the test report to Artifacts if the test fails. If the test is successful, no artifacts will be uploaded.

Screen Shot Artifacts

Also considered using the 'Publish Unit Test Results' github action. However, when matrix strategy is used, the config will be more complex than this PR, it still will use the upload-artifact anyway, and there's a bug displaying the name of the check item like "Validate Gradle Wrapper / Publish Unit Test Results". So I chose to just use the upload-artifact action.

@dapengzhang0 dapengzhang0 requested a review from ejona86 January 5, 2022 17:38
@dapengzhang0 dapengzhang0 merged commit 86b8b26 into grpc:master Jan 5, 2022
@dapengzhang0 dapengzhang0 deleted the upload-test-report2 branch January 5, 2022 18:31
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants