"No CI provider detected" on github actions

Description

Since today, uploading to Codecov stopped working for me.

CI/CD

Github Actions

Uploader

Github Actions one, it bash I think.

Codecov Output

2020-08-03T17:38:36.0719242Z ##[section]Starting: Request a runner to run this job
2020-08-03T17:38:36.5753856Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-08-03T17:38:36.5753958Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-08-03T17:38:36.5754015Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-08-03T17:38:36.7771442Z ##[section]Finishing: Request a runner to run this job
2020-08-03T17:38:43.0712171Z Current runner version: '2.272.0'
2020-08-03T17:38:43.0739424Z ##[group]Operating System
2020-08-03T17:38:43.0740061Z Ubuntu
2020-08-03T17:38:43.0740251Z 18.04.4
2020-08-03T17:38:43.0740426Z LTS
2020-08-03T17:38:43.0740629Z ##[endgroup]
2020-08-03T17:38:43.0740830Z ##[group]Virtual Environment
2020-08-03T17:38:43.0741031Z Environment: ubuntu-18.04
2020-08-03T17:38:43.0741171Z Version: 20200726.1
2020-08-03T17:38:43.0741422Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200726.1/images/linux/Ubuntu1804-README.md
2020-08-03T17:38:43.0741652Z ##[endgroup]
2020-08-03T17:38:43.0742678Z Prepare workflow directory
2020-08-03T17:38:43.0896944Z Prepare all required actions
2020-08-03T17:38:43.0907260Z Download action repository 'actions/download-artifact@v2'
2020-08-03T17:38:44.1535048Z Download action repository 'codecov/codecov-action@v1'
2020-08-03T17:38:45.1877589Z ##[group]Run actions/download-artifact@v2
2020-08-03T17:38:45.1877997Z with:
2020-08-03T17:38:45.1878272Z   name: coverage
2020-08-03T17:38:45.1878505Z ##[endgroup]
2020-08-03T17:38:45.8964460Z Starting download for coverage
2020-08-03T17:38:45.8966229Z Directory structure has been setup for the artifact
2020-08-03T17:38:45.8966461Z Total number of files that will be downloaded: 1
2020-08-03T17:38:45.8966863Z Artifact coverage was downloaded to /home/runner/work/schematics-proto3/schematics-proto3
2020-08-03T17:38:45.8968055Z Artifact download has finished successfully
2020-08-03T17:38:45.9034898Z ##[group]Run codecov/codecov-action@v1
2020-08-03T17:38:45.9035111Z with:
2020-08-03T17:38:45.9035798Z   token: ***
2020-08-03T17:38:45.9035984Z   file: ./coverage.xml
2020-08-03T17:38:45.9036140Z   fail_ci_if_error: true
2020-08-03T17:38:45.9036303Z ##[endgroup]
2020-08-03T17:38:46.2124019Z [command]bash codecov.sh -f ./coverage.xml -n  -F  -Z
2020-08-03T17:38:48.2116433Z 
2020-08-03T17:38:48.2128193Z   _____          _
2020-08-03T17:38:48.2128650Z  / ____|        | |
2020-08-03T17:38:48.2128918Z | |     ___   __| | ___  ___ _____   __
2020-08-03T17:38:48.2130565Z | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
2020-08-03T17:38:48.2133211Z | |___| (_) | (_| |  __/ (_| (_) \ V /
2020-08-03T17:38:48.2133424Z  \_____\___/ \__,_|\___|\___\___/ \_/
2020-08-03T17:38:48.2134104Z                               Bash-20200728-9fb7d93
2020-08-03T17:38:48.2134420Z 
2020-08-03T17:38:48.2134604Z 
2020-08-03T17:38:48.2135566Z e[0;31mx>e[0m No CI provider detected.
2020-08-03T17:38:48.2136256Z     Testing inside Docker? e[0;36mhttp://docs.codecov.io/docs/testing-with-dockere[0m
2020-08-03T17:38:49.1299844Z     Testing with Tox? e[0;36mhttps://docs.codecov.io/docs/python#section-testing-with-toxe[0m
2020-08-03T17:38:49.1300402Z     e[0;90mproject root:e[0m .
2020-08-03T17:38:49.1300690Z e[0;90m-->e[0m token set from env
2020-08-03T17:38:49.1301293Z not found!
2020-08-03T17:38:49.1301787Z     e[0;32mYaml not found, that's ok! Learn more ate[0m e[0;36mhttp://docs.codecov.io/docs/codecov-yamle[0m
2020-08-03T17:38:49.1302178Z     e[0;90m->e[0m Found 1 reports
2020-08-03T17:38:49.1302767Z e[0;90m==>e[0m Detecting git/mercurial file structure
2020-08-03T17:38:49.1303058Z e[0;90m==>e[0m Reading reports
2020-08-03T17:38:49.1303536Z     e[0;32m+e[0m ./coverage.xml e[0;90mbytes=15907e[0m
2020-08-03T17:38:49.1304601Z e[0;90m==>e[0m Appending adjustments
2020-08-03T17:38:49.1305470Z     e[0;36mhttps://docs.codecov.io/docs/fixing-reportse[0m
2020-08-03T17:38:49.1306005Z     e[0;90m->e[0m No adjustments found
2020-08-03T17:38:49.1306528Z e[0;90m==>e[0m Gzipping contents
2020-08-03T17:38:49.1307199Z e[0;90m==>e[0m Uploading reports
2020-08-03T17:38:49.1307703Z     e[0;90murl:e[0m https://codecov.io
2020-08-03T17:38:49.1308274Z     e[0;90mquery:e[0m branch=&commit=&build=&build_url=&name=&tag=&slug=&service=&flags=&pr=&job=&cmd_args=f,n,F,Z
2020-08-03T17:38:49.1308759Z e[0;90m->e[0m  Pinging Codecov
2020-08-03T17:38:49.1309370Z https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=&commit=&build=&build_url=&name=&tag=&slug=&service=&flags=&pr=&job=&cmd_args=f,n,F,Z
2020-08-03T17:38:49.1310184Z e[0;90m->e[0m  Uploading to
2020-08-03T17:38:49.1310850Z <!DOCTYPE html>
2020-08-03T17:38:49.1311271Z curl: (3) Host name '<!DOCTYPE html>' contains bad letter
2020-08-03T17:38:49.1311584Z     e[0;31mX>e[0m Failed to upload
2020-08-03T17:38:49.1311862Z e[0;90m==>e[0m Uploading to Codecov
2020-08-03T17:38:49.1312023Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2020-08-03T17:38:49.1312205Z                                  Dload  Upload   Total   Spent    Left  Speed
2020-08-03T17:38:49.1312279Z 
2020-08-03T17:38:49.1312603Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2020-08-03T17:38:49.1312943Z 100  1465  100    57  100  1408   2035  50285 --:--:-- --:--:-- --:--:-- 52321
2020-08-03T17:38:49.1313251Z     e[0;32mHTTP 400
2020-08-03T17:38:49.1313574Z missing required properties: [&#39;commit&#39;]e[0m
2020-08-03T17:38:49.1316107Z ##[error]Codecov failed with the following error: The process 'bash' failed with exit code 1
2020-08-03T17:38:49.1331704Z Cleaning up orphan processes

Additional Information

The weird behaviour starts at “No CI provider detected.”. Earlier, “GitHub Actions detected.” was logged.
Also logged queries seems much shorter than before.

Example logs from previous, working upload:

2020-08-02T18:26:14.9832332Z ##[section]Starting: Request a runner to run this job
2020-08-02T18:26:15.2024138Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-08-02T18:26:15.2024244Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-08-02T18:26:15.2024328Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-08-02T18:26:15.3800691Z ##[section]Finishing: Request a runner to run this job
2020-08-02T18:26:19.4536684Z Current runner version: '2.267.1'
2020-08-02T18:26:19.4564620Z ##[group]Operating System
2020-08-02T18:26:19.4565257Z Ubuntu
2020-08-02T18:26:19.4565447Z 18.04.4
2020-08-02T18:26:19.4565680Z LTS
2020-08-02T18:26:19.4565911Z ##[endgroup]
2020-08-02T18:26:19.4566152Z ##[group]Virtual Environment
2020-08-02T18:26:19.4566431Z Environment: ubuntu-18.04
2020-08-02T18:26:19.4566671Z Version: 20200726.1
2020-08-02T18:26:19.4567010Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200726.1/images/linux/Ubuntu1804-README.md
2020-08-02T18:26:19.4567328Z ##[endgroup]
2020-08-02T18:26:19.4568383Z Prepare workflow directory
2020-08-02T18:26:19.4765992Z Prepare all required actions
2020-08-02T18:26:19.4776914Z Download action repository 'actions/download-artifact@v2'
2020-08-02T18:26:20.4719455Z Download action repository 'codecov/codecov-action@v1'
2020-08-02T18:26:21.5248280Z ##[group]Run actions/download-artifact@v2
2020-08-02T18:26:21.5248662Z with:
2020-08-02T18:26:21.5248847Z   name: coverage
2020-08-02T18:26:21.5248999Z ##[endgroup]
2020-08-02T18:26:22.1529223Z Starting download for coverage
2020-08-02T18:26:22.1530711Z Directory structure has been setup for the artifact
2020-08-02T18:26:22.1545850Z Total number of files that will be downloaded: 1
2020-08-02T18:26:22.1546916Z Artifact coverage was downloaded to /home/runner/work/schematics-proto3/schematics-proto3
2020-08-02T18:26:22.1548253Z Artifact download has finished successfully
2020-08-02T18:26:22.1640671Z ##[group]Run codecov/codecov-action@v1
2020-08-02T18:26:22.1640860Z with:
2020-08-02T18:26:22.1641586Z   token: ***
2020-08-02T18:26:22.1641744Z   file: ./coverage.xml
2020-08-02T18:26:22.1641895Z   fail_ci_if_error: true
2020-08-02T18:26:22.1642050Z ##[endgroup]
2020-08-02T18:26:22.3955591Z [command]bash codecov.sh -f ./coverage.xml -n  -F  -Z
2020-08-02T18:26:24.1322526Z 
2020-08-02T18:26:24.1323158Z   _____          _
2020-08-02T18:26:24.1323553Z  / ____|        | |
2020-08-02T18:26:24.1323844Z | |     ___   __| | ___  ___ _____   __
2020-08-02T18:26:24.1324164Z | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
2020-08-02T18:26:24.1324450Z | |___| (_) | (_| |  __/ (_| (_) \ V /
2020-08-02T18:26:24.1324707Z  \_____\___/ \__,_|\___|\___\___/ \_/
2020-08-02T18:26:24.1325571Z                               Bash-20200728-9fb7d93
2020-08-02T18:26:24.1325788Z 
2020-08-02T18:26:24.1325980Z 
2020-08-02T18:26:24.1389274Z e[0;90m==>e[0m GitHub Actions detected.
2020-08-02T18:26:24.7783138Z     e[0;90mproject root:e[0m .
2020-08-02T18:26:24.7785221Z e[0;90m-->e[0m token set from env
2020-08-02T18:26:24.7786904Z     e[0;32mYaml not found, that's ok! Learn more ate[0m e[0;36mhttp://docs.codecov.io/docs/codecov-yamle[0m
2020-08-02T18:26:24.7787742Z     e[0;90m->e[0m Found 1 reports
2020-08-02T18:26:24.7788846Z e[0;90m==>e[0m Detecting git/mercurial file structure
2020-08-02T18:26:24.7789773Z e[0;90m==>e[0m Reading reports
2020-08-02T18:26:24.7790846Z     e[0;32m+e[0m ./coverage.xml e[0;90mbytes=15833e[0m
2020-08-02T18:26:24.7791243Z e[0;90m==>e[0m Appending adjustments
2020-08-02T18:26:24.7792426Z     e[0;36mhttps://docs.codecov.io/docs/fixing-reportse[0m
2020-08-02T18:26:24.7793342Z     e[0;90m->e[0m No adjustments found
2020-08-02T18:26:24.7795158Z e[0;90m==>e[0m Gzipping contents
2020-08-02T18:26:24.7796475Z e[0;90m==>e[0m Uploading reports
2020-08-02T18:26:24.7797485Z     e[0;90murl:e[0m https://codecov.io
2020-08-02T18:26:24.7798609Z     e[0;90mquery:e[0m branch=refs%2Ftags%2F0.1.1&commit=bad6d6b7cf13349fac9797dc3b5c956ea19a32d5&build=192377632&build_url=http%3A%2F%2Fgithub.com%2Fmlga%2Fschematics-proto3%2Factions%2Fruns%2F192377632&name=&tag=&slug=mlga%2Fschematics-proto3&service=github-actions&flags=&pr=&job=&cmd_args=f,n,F,Z
2020-08-02T18:26:24.7799620Z e[0;90m->e[0m  Pinging Codecov
2020-08-02T18:26:24.7801091Z https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=refs%2Ftags%2F0.1.1&commit=bad6d6b7cf13349fac9797dc3b5c956ea19a32d5&build=192377632&build_url=http%3A%2F%2Fgithub.com%2Fmlga%2Fschematics-proto3%2Factions%2Fruns%2F192377632&name=&tag=&slug=mlga%2Fschematics-proto3&service=github-actions&flags=&pr=&job=&cmd_args=f,n,F,Z
2020-08-02T18:26:24.7802214Z e[0;90m->e[0m  Uploading to
2020-08-02T18:26:24.7803580Z https://storage.googleapis.com/codecov/v4/raw/2020-08-02/70169152A06EC5D9623FCC9246A9022C/bad6d6b7cf13349fac9797dc3b5c956ea19a32d5/a28d2fef-8890-418d-ba78-b6aec0b4ea84.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200802%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200802T182624Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b0d175ed3fb17a2e804b8f626b861f5d20ccb81bc1b5cb13c36503710e0da557
2020-08-02T18:26:24.7804161Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2020-08-02T18:26:24.7804964Z                                  Dload  Upload   Total   Spent    Left  Speed
2020-08-02T18:26:24.7805602Z 
2020-08-02T18:26:24.7806263Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2020-08-02T18:26:24.7807129Z 100  1393    0     0  100  1393      0   7696 --:--:-- --:--:-- --:--:--  7696
2020-08-02T18:26:24.7807933Z     e[0;32m->e[0m View reports at e[0;36mhttps://codecov.io/github/mlga/schematics-proto3/commit/bad6d6b7cf13349fac9797dc3b5c956ea19a32d5e[0m
2020-08-02T18:26:24.7834141Z Cleaning up orphan processes
1 Like

Seeing the same behavior here. It seems as though some the the assumptions about how environment variables are passed to an action are causing the action to fail here: codecov-bash/codecov at 9fb7d93ac9469a80807e239097a013fb8eb61032 · codecov/codecov-bash · GitHub.

Manually passing these values through using an env: key failed as well…

Hi @mlga and @dwillist, this looks like an issue on the GitHub side. We have made a change to the bash uploader to use a different environment variable which should help out here. I’ll update when this has been deployed.

We are expecting this to be resolved by 10AM ET as documented by GitHub

Yep, seems to be working now. Thank you!

1 Like

I’m seeing this issue, any idea?

+ s3target='<!DOCTYPE html>'
+ say '\033[0;90m->\033[0m  Uploading to'
+ echo -e '\033[0;90m->\033[0m  Uploading to'
+ say '<!DOCTYPE html>'
+ echo -e '<!DOCTYPE html>'
->  Uploading to
<!DOCTYPE html>
++ curl -fiX PUT --data-binary @/tmp/codecov.l9tmxG.gz -H 'Content-Type: application/x-gzip' -H 'Content-Encoding: gzip' '<!DOCTYPE html>'
    X> Failed to upload
curl: (3) Host name '<!DOCTYPE html>' contains bad letter
==> Uploading to Codecov
++ true
+ s3=
+ '[' '' '!=' '' ']'
+ say '    \033[0;31mX>\033[0m Failed to upload'
+ echo -e '    \033[0;31mX>\033[0m Failed to upload'
+ say '\033[0;90m==>\033[0m Uploading to Codecov'
+ echo -e '\033[0;90m==>\033[0m Uploading to Codecov'

@mocsharp, this is a different issue, can you please open a new ticket?