Skip to content

Combine upload of R and JS coverage - #260

Open
suhaani-agarwal wants to merge 24 commits into
masterfrom
coverage-upload
Open

Combine upload of R and JS coverage#260
suhaani-agarwal wants to merge 24 commits into
masterfrom
coverage-upload

Conversation

@suhaani-agarwal

Copy link
Copy Markdown
Contributor

Fixes #254

@tdhock

tdhock commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

https://app.codecov.io/github/animint/animint2/commit/d4edb31a1006db559fcebcc95197c4b52269f11d says There is an error processing the coverage reports

https://github.com/animint/animint2/actions/runs/18722037868/job/53399754297?pr=260 says

[2025-10-22T16:22:06.870Z] ['info'] Detected GitHub Actions as the CI provider.
[2025-10-22T16:22:07.198Z] ['info'] ->  Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0

@codecov

codecov Bot commented Oct 26, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.98%. Comparing base (a112290) to head (e4975b4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #260      +/-   ##
==========================================
- Coverage   73.07%   72.98%   -0.10%     
==========================================
  Files         165      165              
  Lines        8933     9494     +561     
==========================================
+ Hits         6528     6929     +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.

@suhaani-agarwal
suhaani-agarwal marked this pull request as ready for review October 26, 2025 09:15
Comment on lines +18 to +20
- name: install and update texlive
run: /usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt update -y -qq
- run: /usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt install tidy texlive texlive-fonts-extra -y

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

these are only required for CRAN checks, not testing, so please remove.

runs-on: ubuntu-latest
name: CRAN checks
env:
TEST_SUITE: CRAN

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

would it be better if this job be moved to a separate file?

Comment thread .github/workflows/tests.yaml Outdated
Comment on lines +35 to +41
Rscript -e "if (!requireNamespace('covr', quietly=TRUE)) install.packages('covr'); cov <- covr::package_coverage(type='tests', test_files = "tests/testthat.R"); covr::to_cobertura(cov, file='r-coverage.xml')"

- name: Normalize R coverage paths
run: |
if [ -f "r-coverage.xml" ]; then
perl -0777 -pe "s|<sources>.*?</sources>|<sources><source>.</source></sources>|s" -i r-coverage.xml
sed -i 's|\\\\|/|g' r-coverage.xml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can these two please be combined into a single R script?
instead of perl and sed, I think you want gsub() in R?

@tdhock tdhock left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks very much! Can you please see comments and revise if necessary?

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

3 participants