Skip to content

Fix false Codecov project coverage drops by uploading R and JS reports together (#254) - #344

Open
Nishita-shah1 wants to merge 2 commits into
masterfrom
fix/254-codecov-failure
Open

Fix false Codecov project coverage drops by uploading R and JS reports together (#254)#344
Nishita-shah1 wants to merge 2 commits into
masterfrom
fix/254-codecov-failure

Conversation

@Nishita-shah1

Copy link
Copy Markdown

Fixes #254

Summary

  • Codecov project was failing on documentation-only commits because R and JS coverage were uploaded separately. If the JS job failed, an R-only report became the baseline, so the next full R+JS upload looked like a coverage drop.
  • Coverage jobs now save artifacts instead of uploading immediately. A follow-up job uploads both reports together, and only if both R and JS jobs succeed.
  • CRAN checks stay in their own job. Texlive is installed only there.

Test plan

  • Confirm CI runs R_coverage and JS_coverage in parallel, then Upload combined coverage to Codecov.
  • Confirm the combined upload job is skipped if either coverage job fails.
  • Confirm CRAN still runs independently.
  • On the PR, Codecov patch and project should not fail just because one coverage job failed on a previous commit.

@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.79%. Comparing base (f265a03) to head (c923918).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
- Coverage   72.88%   72.79%   -0.09%     
==========================================
  Files         164      164              
  Lines        8868     9429     +561     
==========================================
+ Hits         6463     6864     +401     
- Misses       2405     2565     +160     
Flag Coverage Δ
javascript ?
r ?

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tdhock

tdhock commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

@ANAMASGARD please review?

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.

incorrect codecov failures

2 participants