Skip to content

Fix test coverage tracking by uploading artifacts on failure#13706

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-tests-yet-again
Feb 4, 2026
Merged

Fix test coverage tracking by uploading artifacts on failure#13706
pelikhan merged 2 commits intomainfrom
copilot/fix-tests-yet-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 4, 2026

The canary_go job reported 137 missing tests because test result artifacts were not uploaded when test jobs failed, causing coverage analysis to incorrectly conclude tests were never executed.

Changes

  • Added if: always() to unit and integration test result artifact uploads in .github/workflows/ci.yml
- name: Upload integration test results
  if: always()  # Upload even if tests fail so canary_go can track coverage
  uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4

This ensures test execution data is captured regardless of test outcomes, allowing accurate coverage tracking across all CI jobs.

Note

The "CLI Completion & Other" integration job shows package-level failure despite all individual tests passing. This test infrastructure issue requires separate investigation.

Original prompt

Reference: https://github.com/github/gh-aw/actions/runs/21670975766/job/62478467484#step:8:1

Fix tests


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

🔍 PR Triage Results

Category: test | Risk: low | Priority: 52/100

Scores Breakdown

  • Impact: 35/50 - Test fix addressing CI failures; no code changes yet (WIP); when implemented will improve test reliability; affects test suite quality
  • Urgency: 10/30 - Created 0.1 hours ago (very recent); draft status (not ready for review); 0 comments (brand new); CI pending; test fixes are important for code quality but not critical
  • Quality: 7/20 - CI pending (no failures yet); draft status with minimal description; no actual changes yet (0 additions/deletions); waiting for implementation

📋 Recommended Action: defer

This is a WIP PR with no actual code changes yet. The PR is in draft mode and appears to be in the planning phase. Should be deferred until actual test fixes are implemented and the draft status is removed.


Triaged by PR Triage Agent on 2026-02-04T12:20:43Z

AI generated by PR Triage Agent

The canary_go job checks test coverage by analyzing test result artifacts.
When integration tests fail, the artifact upload was skipped, causing
canary_go to report missing test coverage.

This fix adds `if: always()` to both unit and integration test result
uploads to ensure artifacts are created even when tests fail, allowing
canary_go to accurately track which tests are being executed.

Fixes the 137 missing tests issue in CI.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing tests in the codebase Fix test coverage tracking by uploading artifacts on failure Feb 4, 2026
Copilot AI requested a review from pelikhan February 4, 2026 12:46
@pelikhan pelikhan marked this pull request as ready for review February 4, 2026 12:47
Copilot AI review requested due to automatic review settings February 4, 2026 12:47
@pelikhan pelikhan merged commit 505f3c3 into main Feb 4, 2026
@pelikhan pelikhan deleted the copilot/fix-tests-yet-again branch February 4, 2026 12:47
Copy link
Contributor

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

This PR fixes test coverage tracking in the CI pipeline by ensuring test result artifacts are uploaded even when tests fail. Previously, the canary_go job reported 137 missing tests because artifacts weren't uploaded from failed test jobs, causing incorrect coverage analysis.

Changes:

  • Added if: always() condition to unit test result artifact upload step
  • Added if: always() condition to integration test result artifact upload step

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants