Skip to content

Skip net48 test result publishing when failed runs have no report - #1756

Draft
lipchev wants to merge 1 commit into
angularsen:masterfrom
lipchev:codex/net48-results-publisher
Draft

lipchev wants to merge 1 commit into
angularsen:masterfrom
lipchev:codex/net48-results-publisher

Conversation

@lipchev

@lipchev lipchev commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Check the triggering .NET Framework run for unexpired test-results and event artifacts before downloading them.
  • Log a notice and skip publication when a failed run has no report. Publish results from failed tests when both artifacts and TRX files are available.
  • Fail explicitly when a successful run has no report or when an available report lacks event metadata. API and download errors still fail the publisher.

Reproduction

Publisher run 43351613227 failed at the test-results download with “Artifact not found.” The triggering PR run 42250362762 finished with zero jobs and zero artifacts. The new check logs a notice for that run and skips the downloads.

Validation

  • Parsed the workflow YAML, checked both Bash steps with bash -n, and ran git diff --check.
  • Ran nine local fixtures covering missing or present artifacts on successful and failed runs, missing event metadata, an API error, and downloaded reports with no TRX files.
  • Ran the extracted check against the GitHub API for run 42250362762 and successful run 43351611128. It skipped the first and found both artifacts for the second. Full GitHub Actions execution remains unverified.

@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98%. Comparing base (a7ef2f3) to head (881a9ce).

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1756   +/-   ##
======================================
  Coverage      98%     98%           
======================================
  Files         518     518           
  Lines       24196   24196           
======================================
  Hits        23798   23798           
  Misses        398     398           
Flag Coverage Δ
net48 97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

1 participant