neurogenomics / rworkflows

Continuous integration for R packages. 🔀 Automates testing ✅, documentation website building 📦, & containerised deployment 🐳.
https://neurogenomics.github.io/rworkflows/
75 stars 7 forks source link

Codecov upload fails #115

Closed bschilder closed 12 months ago

bschilder commented 12 months ago

Not sure if this is :

https://github.com/neurogenomics/HPOExplorer/actions/runs/6786093696/job/18445819354#step:4:1657

Run covr::codecov()
  covr::codecov()
  shell: Rscript {0}
  env:
    RGL_USE_NULL: TRUE
    R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
    RSPM: 
    TZ: UTC
    NOT_CRAN: false
    GITHUB_TOKEN: ***
Request failed [404]. Retrying in 1.4 seconds...
Request failed [404]. Retrying in 3.1 seconds...
$detail
[1] "Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue."
bschilder commented 12 months ago

This seems to be the source of the issue:

The short-term solution is to have each user add a CODECOV_TOKEN GH secret to each repo. But I really don't like this approach as it's manual and not scalable.

Moving this issue to rworkflows repo.

bschilder commented 12 months ago

I think HPOExplorer/MultiEWCE are especially susceptible to this bc:

Simply rerunning the same HPOExplorer GHA job seemed to resolve the issue on its own, confirming that this is an intermittent issue that seems to stem from problems with GH API limits (or at least how codecov interacts with them).

bschilder commented 12 months ago

Will close this for now, but to summarise,

the current solutions are:

In the future, it may be worth looking into using the official action. I probably tried it at some point, so not sure if there's a specific reason why I haven't implemented it already: