ci: enable Codecov Test Analytics across all test jobs#5207
Merged
Conversation
Wire JUnit-XML emission into each stack and add a codecov-action upload step per job with report_type: test_results so Codecov can surface failing-test stack traces in PR comments, detect flaky tests against main, and track per-test runtime/failure-rate over time. Data flows independently of coverage through the same secrets.CODECOV_TOKEN.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5207 +/- ##
============================================
- Coverage 47.15% 47.13% -0.03%
+ Complexity 2348 2343 -5
============================================
Files 1042 1042
Lines 39989 39989
Branches 4260 4260
============================================
- Hits 18855 18847 -8
- Misses 20012 20015 +3
- Partials 1122 1127 +5
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
aglinxinyuan
approved these changes
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Enable Codecov Test Analytics for every stack we already upload coverage from. Each stack now emits JUnit-XML alongside its existing coverage report, and a second
codecov/codecov-actionstep per job uploads it withreport_type: test_results.ThisBuild / Test / testOptions += -u target/test-reportsin the rootbuild.sbt.reporters: ["default", ["junit", { outputFile: ... }]].pythonjob +amber-integrationPython step):--junit-xml=....bun test(agent-service):--reporter=junit --reporter-outfile=junit.xml.Test Analytics ingestion is independent of coverage and shares the same
CODECOV_TOKEN. Once landed, Codecov will start posting failing-test stack traces on PRs, flagging tests that have gone flaky onmain, and tracking per-test runtime / failure-rate over time.Any related issues, documentation, discussions?
Closes #5206.
How was this PR tested?
Ran
sbt scalafmtCheckAllandprettier --checkon the two modifiedvitest.*.config.tsfiles locally; both pass.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.7