Intermittent "Unable to locate build via Github Actions API"

Description

Most jobs triggered by the same commit fail to upload coverage with “Unable to locate build via Github Actions API”, while a few succeed.

Commit: 50dccf63d88684b84cea7fc7916abe9a6fd78738
Repo: GitHub - rollbear/trompeloeil: Header only C++14 mocking framework
Build: Removed hitcount badge from README · rollbear/trompeloeil@50dccf6 · GitHub

Uploader is GithubActions codecov/codecov-action@v1

Upload error is:

==> Uploading to Codecov
++ curl -X POST --data-binary @/tmp/codecov.ltzaDz.gz --retry 5 --retry-delay 2 --connect-timeout 2 -H 'Content-Type: text/plain' -H 'Content-Encoding: gzip' -H 'X-Content-Encoding: gzip' -H 'Accept: text/plain' 'https://codecov.io/upload/v2?package=github-action-1.0.2&token=&branch=master&commit=50dccf63d88684b84cea7fc7916abe9a6fd78738&build=911106713&build_url=http%3A%2F%2Fgithub.com%2Frollbear%2Ftrompeloeil%2Factions%2Fruns%2F911106713&name=Linux%20GCC%205%20C%2B%2B17&tag=&slug=rollbear%2Ftrompeloeil&service=github-actions&flags=&pr=&job=CI&cmd_args=n,F,Q,Z,f,s,v&attempt=woff|eot|otf|gif|png|jpg|jpeg|psd|ptt|pptx|numbers|pages|md|txt|xlsx|docx|doc|pdf|csv|.gitignore|html|yml|yaml'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 28297  100   171  100 28126    627   100k --:--:-- --:--:-- --:--:--  100k
+ res='{'\''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'\'')}'
++ echo '{'\''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'\'')}'
++ head -1
++ cut '-d ' -f2
+ status='ErrorDetail(string='\''Unable'
+ '[' 'ErrorDetail(string='\''Unable' = '' ']'
+ '[' 'ErrorDetail(string='\''Unable' = 200 ']'
+ say '    \033[0;32m{'\''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'\'')}\033[0m'
+ echo -e '    \033[0;32m{'\''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'\'')}\033[0m'
+ exit 1
    {'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')}
Error: Codecov failed with the following error: The process '/bin/bash' failed with exit code 1
4 Likes

Within the last hour we’ve started seeing this on all builds for GitHub - pyca/cryptography: cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.

1 Like

Hi. We’ve also had this issue for a couple of days at GitHub - python-telegram-bot/python-telegram-bot: We have made you a wrapper you can't refuse. However, not all comits are affected, if they are it’s not always all builds & sometimes re-running the jobs helps.

1 Like

We are also seeing this issue which has just started happening:

{'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')}

[49](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:49)404

[50](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:50)==> Uploading to Codecov

[51](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:51) % Total % Received % Xferd Average Speed Time Time Time Current

[52](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:52) Dload Upload Total Spent Left Speed

[53](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:53)

[54](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:54) 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

[55](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:55)100 673k 100 171 100 673k 1110 4374k --:--:-- --:--:-- --:--:-- 4375k

[56](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:56) {'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')}

[57](https://github.com/mautic/mautic/runs/2763346323?check_suite_focus=true#step:11:57)Error: Codecov failed with the following error: The process '/usr/bin/bash' failed with exit code 1
1 Like

I’m still getting this error today in our org.

1 Like

Looks like it’s a common issue that happens from time to time: sometimes after fail I do a rerun, and it works (sometimes several reruns are needed).

1 Like

It seems to be working now. ¯\(ツ)

Hi all, this was an issue the past few days that we were tracking here. I apologize that we weren’t more transparent with it, but we believe the issue to be resolved now.

2 Likes

It fails again with the same issue

@AenBleidd could you open a new ticket with your issue in particular? I could use some more details to debug what’s going on for you.

1 Like

Ok, I’ll create a new ticket when I see this next time! Thanks

1 Like

@AlekSi responded on the issue you posted, but if you have installed the Codecov GitHub app, the only reason I can think of for getting that message is that the access token used is hitting a GitHub rate limit. Do you use any other GitHub apps or know why that might be?