Closed mgeisler closed 6 months ago
Right, I saw this yesterday. I could not find a definitive answer but it might be resolved by using a project specific token instead of tokenless authentication. To implement it, somebody in google
Github org needs to copy the token from here into repository secrets here. The name of the secret should be CODECOV_TOKEN
. Once that is done, I can adjust the workflow file to test it.
The name of the secret should be
CODECOV_TOKEN
. Once that is done, I can adjust the workflow file to test it.
Thanks, I added the repository secret.
I merged the PR for using the new token. I am not sure if it will resolve this issue. Let's monitor for several weeks and can resolve this if the pipeline is stable.
Sounds good, thanks for looking into this so quickly!
There was another failure. The error message is
[2024-01-22T21:51:51.270Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
According to this article, adding the token should improve the situation but will not guarantee 100% success rate.
Researching this further, I found this comment which implies that tokens/secrets are not available for PR runners from forked repositories to prevent abuse/secret theft. Very surprising.
From the last link, this article describes a way to use secrets. It is a bit verbose and requires creation of a separate workflow but doable. I will try to implement it this week.
From the last link, this article describes a way to use secrets. It is a bit verbose and requires creation of a separate workflow but doable. I will try to implement it this week.
Oh nice! I think this could also be used to comment on Comprehensive Rust PRs with timing information like @djmitche tried to do recently: https://github.com/google/comprehensive-rust/pull/1576.
The PR I merged does not seem to work as expected - codecov reports are executed against the main branch instead of PR branch. Might be something wrong with env vars or I did not copy them properly. It was working for me on my own fork yesterday. I will take another look at this later today.
Hi @kdarkhan, I've seen a few Codecov uploads fail. An example is in this run. The error is
Do you have any idea what could trigger this?