Skip to content

Publish CI test results into PR discussions and harden artifact download action#570

Open
Copilot wants to merge 5 commits into
devfrom
copilot/publish-test-results-to-pr
Open

Publish CI test results into PR discussions and harden artifact download action#570
Copilot wants to merge 5 commits into
devfrom
copilot/publish-test-results-to-pr

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

  • Review new PR comment and determine actionable change
  • Inspect recent CI run status/logs for related workflow behavior
  • Update CI test target so introspection test run emits TRX into test-results
  • Run targeted tests/build checks relevant to build script changes
  • Run final validation and reply to the new PR comment with commit hash

Copilot AI linked an issue May 17, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add test results publishing to PR discussion Publish CI test results into PR discussions and harden artifact download action May 17, 2026
Copilot AI requested a review from xperiandri May 17, 2026 14:48
Copilot AI requested a review from xperiandri May 17, 2026 14:55
@xperiandri xperiandri force-pushed the copilot/publish-test-results-to-pr branch from 0523a39 to 7894f66 Compare May 17, 2026 15:12
@xperiandri xperiandri force-pushed the copilot/publish-test-results-to-pr branch from 7894f66 to 52c17c5 Compare May 17, 2026 18:03
@xperiandri xperiandri marked this pull request as ready for review May 17, 2026 18:12
@xperiandri xperiandri requested a review from Copilot May 17, 2026 18:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds CI-driven PR test result publishing by producing TRX test artifacts in the build, uploading them from PR runs, and adding a privileged workflow_run publisher to report results back to PRs.

Changes:

  • Configures dotnet test to emit TRX files into test-results.
  • Uploads event payload and test-result artifacts from the PR workflow.
  • Adds a new workflow to download artifacts and publish test results to PR checks/discussions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
build/Program.fs Adds TRX logger/results directory configuration for the unit test runner.
.github/workflows/pull-request.yml Adds explicit permissions and uploads PR event/test result artifacts.
.github/workflows/publish-test-results.yml Adds workflow-run based test result publishing using downloaded artifacts.

Comment thread build/Program.fs
Comment thread .github/workflows/pull-request.yml
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment on lines +54 to +59
uses: EnricoMi/publish-unit-test-result-action@v2
with:
commit: ${{ github.event.workflow_run.head_sha }}
event_file: ${{ steps.event_file.outputs.path }}
event_name: ${{ github.event.workflow_run.event }}
files: "test-results/**/*.trx"
with:
run_id: ${{ github.event.workflow_run.id }}
path: test-results
pattern: test-results-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish test results into PR

3 participants