ci: publish .NET test results on pull requests - #10730
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a dedicated GitHub Actions workflow which publishes .NET CI TRX test results directly into PR checks (via per-job check runs), so reviewers no longer need to download workflow artifacts to see failures.
Changes:
- Introduces a new
workflow_run-triggered workflow which runs on completed.NET CIPR runs and reads existingtest_output_*artifacts. - Uses a pinned
dorny/test-reporteraction (v3.0.0 commit) to generate check runs with failed suite/test details and up to 50 annotations. - Applies narrowly scoped permissions (
actions: read,checks: write,contents: read) suitable for reporting from the default branch.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/test-results.yml | New reporter workflow to publish TRX results from .NET CI artifacts into PR checks. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
This was referenced Aug 28, 2026
Merged
Merged
This was referenced Sep 4, 2026
This was referenced Sep 8, 2026
Closed
This was referenced Sep 16, 2026
Open
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
GitHub Actions currently archives the MTP-generated TRX files, but GitHub does not ingest test result artifacts into pull request checks. Test outcomes therefore remain visible only inside the workflow artifacts.
This adds a
workflow_runreporter for completed.NET CIpull request runs. It reads the existingtest_output_*artifacts and creates per-job check runs with result counts, failed test details, and annotations.The reporter runs from the default branch with narrowly scoped
actions: readandchecks: writepermissions. This preserves read-only CI execution for fork pull requests while allowing the trusted reporting workflow to publish their results. The action is pinned to the v3.0.0 commit.Microsoft Reviewers: Open in CodeFlow