feat(github-reporter): emit failure annotations as tests finish#40590
Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom May 4, 2026
Merged
feat(github-reporter): emit failure annotations as tests finish#40590pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman merged 1 commit intomicrosoft:mainfrom
Conversation
Previously, the GitHub reporter buffered all failure annotations and emitted them at the end of the run. When CI jobs were timed out or cancelled mid-run, this meant no `::error` annotations were produced for tests that already failed. Now, failure annotations are emitted per test in `onTestEnd`, while slow-test annotations and the run summary still emit at the end. Behavior is preserved: annotations are deferred until a test will not retry again, and the same filtering as `generateSummary`'s `failuresToPrint` is applied (unexpected, flaky, or interrupted-with-error). The per-test index is shared across all retries of the same test, matching the original output. Fixes microsoft#40524
Contributor
Test results for "MCP"1 failed 6875 passed, 1015 skipped Merge workflow run. |
Contributor
Test results for "tests 1"1 flaky41658 passed, 784 skipped Merge workflow run. |
pavelfeldman
approved these changes
May 4, 2026
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
Emit GitHub failure annotations as tests finish, instead of buffering them until the run summary at the end. This way, timed-out or cancelled CI jobs still preserve
::errorannotations for tests that already failed.Slow-test annotations and the run summary still emit at the end, since they need aggregated data.
Behavior of the existing failure annotations is preserved:
willRetry).generateSummary'sfailuresToPrint(unexpected,flaky, orskipped-with-interrupted-error).Fixes #40524