R-Lum / Luminescence

Development of the R package 'Luminescence'
http://r-lum.github.io/Luminescence/
GNU General Public License v3.0
15 stars 7 forks source link

codecov.io page doesn't get updates #144

Open mcol opened 2 months ago

mcol commented 2 months ago

Looking at the codecov.io page for the dev_0.9.x branch the last commit recorded there goes back to 3 months ago. From the most recent github test-coverage results the "Upload test results" step is not run. Also, if you unfold the "Test coverage" line, at the very bottom it says:

[1] "Could not find a repository associated with upload token ***"

I'm not sure how to further debug this

mcol commented 2 months ago

The latest coverage run took 1h 12m but at the end it still failed to upload the tests, this time with some additional printouts:

Request failed [404]. Retrying in 1.8 seconds...
Request failed [404]. Retrying in 1 seconds...
$detail
[1] "Could not find a repository associated with upload token ***"

I've tried running all tests with coverage locally and it took only 4 minutes. Perhaps the github action also runs the examples? But those would be flagged by CRAN if they took more than a couple of minutes, so it's unlikely that they are causing the long execution time.

RLumSK commented 2 months ago

I've managed to run the coverage test including the upload with token stored as GitHub secret locally and upload the results. I will further investigate why the run takes that long.

Updates

More through tests

Local tests use the following code lines:

Sys.setenv(NOT_CRAN = "true")
system.time(x <- covr::package_coverage(type = "tests"))

GitHub Action test runs

OS R Version COVR VERSION RUNTIME TEST COVERAGE SUCCESS LINK
ubuntu-22.04 4.3.3 3.6.4 6:28 min TRUE URL
ubuntu-22.04 4.4.1 3.6.4 79:19 min TRUE URL
ubuntu-22.04 (2024-08-17 r87027) 3.6.4 80:00 min TRUE URL

Other observations