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: https://github.com/rollbear/trompeloeil/runs/2756399181
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