Open mcol opened 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.
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.
testthat::test_local()
. This takes somewhat 90 s to 100 s on my machine and it can be excluded as an issue. It remains interesting. covr::package_coverage(type = "tests")
locally and still got stuck for minutes after the package was built. I interrupted the task; conclusion: it has nothing to do with the tests.Local tests use the following code lines:
Sys.setenv(NOT_CRAN = "true")
system.time(x <- covr::package_coverage(type = "tests"))
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 |
'RCarb'
does not have this problem URL
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:
I'm not sure how to further debug this