Skip to content

ci: send test results to Codecov Test Analytics - #769

Merged
CybotTM merged 1 commit into
mainfrom
ci/enable-test-analytics
Aug 2, 2026
Merged

ci: send test results to Codecov Test Analytics#769
CybotTM merged 1 commit into
mainfrom
ci/enable-test-analytics

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 2, 2026

Copy link
Copy Markdown
Member

Follow-up to netresearch/.github#333, which is merged.

Why

Codecov's Test Analytics page for this repo is empty — go-check uploads coverage.out and nothing else, so there is no flaky-test detection, no per-test durations, and no failure history. That is what app.codecov.io/gh/netresearch/ofelia/tests/new shows as unconfigured.

What changes

One input. With enable-test-results: true the shared workflow runs the unit tests through gotestsum — which drives go test -json and writes a JUnit report next to the coverage profile — and uploads it via codecov/codecov-action with report_type: test_results.

Nothing about which tests run changes: the flags, packages and coverage threshold are the same, and the coverage upload is untouched.

template.yaml's drift reason is updated to name the new input, and the e2e count it records is corrected to 11 (one of them browser-driven, added in #767).

Verification

The input exists on the shared workflow's main (go-check.yml:88), so the call resolves. Locally, the invocation the shared workflow now uses produces both artifacts from a single run — a valid JUnit report and the coverage profile the threshold step and the Codecov upload consume.

The proof that matters is on this PR's own CI: the Build & Test job should report the upload, and the Test Analytics page should stop being empty once it lands.

The Codecov Test Analytics page for this repo has no data: go-check
uploads coverage.out and nothing else, so there is no flaky-test
detection, no per-test durations and no failure history.

netresearch/.github#333 added enable-test-results to the shared
workflow, which runs the unit tests through gotestsum and uploads the
JUnit report. Turning it on here is the whole change.

The template.yaml drift reason is updated to name the new input, and
corrects the e2e count it records: 11 tests now, one of them
browser-driven.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings August 2, 2026 09:01
@github-actions github-actions Bot added the ci label Aug 2, 2026
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the repository’s CI configuration to start publishing JUnit-style unit test results to Codecov Test Analytics (in addition to the existing coverage upload), so Codecov can show per-test timing/history and flaky-test signals for this repo.

Changes:

  • Enable enable-test-results: true for the shared go-check reusable workflow invocation.
  • Update .github/template.yaml’s intentional drift note to document the new input and correct the recorded e2e test count to 11.

Reviewed changes

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

File Description
.github/workflows/ci.yml Enables test-results publishing in the shared go-check workflow via enable-test-results: true.
.github/template.yaml Updates the intentional drift reason to include the new CI input and adjusted e2e test count documentation.

@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.72%. Comparing base (659bb36) to head (8e7d9aa).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #769      +/-   ##
==========================================
+ Coverage   87.70%   87.72%   +0.01%     
==========================================
  Files          90       90              
  Lines       12057    12057              
==========================================
+ Hits        10575    10577       +2     
+ Misses       1193     1191       -2     
  Partials      289      289              
Flag Coverage Δ
integration 87.70% <ø> (ø)
unittests 85.25% <ø> (-0.02%) ⬇️

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.

@CybotTM
CybotTM added this pull request to the merge queue Aug 2, 2026
Merged via the queue into main with commit 48b4515 Aug 2, 2026
29 checks passed
@CybotTM
CybotTM deleted the ci/enable-test-analytics branch August 2, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants