Skip to content

ci: publish .NET test results on pull requests - #10730

Merged
ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:rb-fix-mtp-test-reporting
Aug 21, 2026
Merged

ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:rb-fix-mtp-test-reporting

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 21, 2026

Copy link
Copy Markdown
Member

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_run reporter for completed .NET CI pull request runs. It reads the existing test_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: read and checks: write permissions. 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

Copilot AI lite review requested due to automatic review settings August 21, 2026 03:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CI PR runs and reads existing test_output_* artifacts.
  • Uses a pinned dorny/test-reporter action (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

@ReubenBond
ReubenBond merged commit cae2fb6 into dotnet:main Aug 21, 2026
73 checks passed
@ReubenBond
ReubenBond deleted the rb-fix-mtp-test-reporting branch August 21, 2026 05:10
This was referenced Aug 28, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 20, 2026
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