Add collapsible test summary to GitHub Actions job summary - #986
Closed
agampe wants to merge 1 commit into
Closed
Conversation
Summary: Parse GTest XML results and write a collapsible markdown summary to $GITHUB_STEP_SUMMARY showing pass/fail counts with expandable failure details. Uses pure Python stdlib (no external dependencies). The new "Test summary" step runs between artifact upload and the failure gate step. It parses all GTest XML files from /tmp/test-results/ using xml.etree.ElementTree and generates a markdown summary with: - Header showing overall pass/fail/skip counts - Collapsible <details> blocks for each failed test suite with failure messages - Collapsible block listing all passing suite names - Stats line showing number of test binaries and total time Handles edge cases: no XML files found, malformed XML from crashed tests, and the 1 MiB $GITHUB_STEP_SUMMARY size limit. Differential Revision: D102739347
|
@agampe has exported this pull request. If you are a Meta employee, you can view the originating Diff in D102739347. |
|
This pull request has been merged in 9180d0b. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Parse GTest XML results and write a collapsible markdown summary to $GITHUB_STEP_SUMMARY showing pass/fail counts with expandable failure details. Uses pure Python stdlib (no external dependencies).
The new "Test summary" step runs between artifact upload and the failure gate step. It parses all GTest XML files from /tmp/test-results/ using xml.etree.ElementTree and generates a markdown summary with:
Details
blocks for each failed test suite with failure messagesHandles edge cases: no XML files found, malformed XML from crashed tests, and the 1 MiB $GITHUB_STEP_SUMMARY size limit.
Differential Revision: D102739347