Please search for similar issues before creating a ticket.
All fields below are required.
Description
Using bitrise for our CI for an Android app written in Kotlin. Trying to use the bitrise codecov step to upload the, I get an 400 error saying there’s something wrong with the request. I have tried it from my local machine using bash <(curl -s https://codecov.io/bash)
and it works, so not a problem with the set up I don’t think (although I could be wrong)
(I also raised it on github as an issue: Codecov step failing on bitrise · Issue #10 · codecov/codecov-bitrise · GitHub)
Commit SHAs
54065a3db2a9eac5049e4160d3eec4b0d3853759
Repository
CI/CD or Build URL
Bitrise with the Codecov Step
Uploader
Whatever the Codecov bitrise step uses
Codecov Output
+------------------------------------------------------------------------------+
| (13) codecov@3 |
+------------------------------------------------------------------------------+
| id: codecov |
| version: 3.0.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2021-09-07T14:24:13Z |
+------------------------------------------------------------------------------+
| |
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/trustedkeys.gpg' created
100 3187 100 3187 0 0 20561 0 --:--:-- --:--:-- --:--:-- 20561
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpgv: can't allocate lock for '/root/.gnupg/trustedkeys.gpg'
gpgv: Signature made Tue 24 Aug 2021 08:58:39 PM UTC
gpgv: using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpgv: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>"
codecov: OK
[2021-09-07T14:24:15.093Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.0
[2021-09-07T14:24:15.098Z] ['info'] => Project root located at: /bitrise/src
[2021-09-07T14:24:15.099Z] ['info'] -> Token found by environment variables
[2021-09-07T14:24:15.189Z] ['info'] Searching for coverage files...
[2021-09-07T14:24:15.341Z] ['info'] => Found 2 possible coverage files:
codecov.SHA256SUM
codecov.SHA256SUM.sig
[2021-09-07T14:24:15.341Z] ['info'] Processing /bitrise/src/codecov.SHA256SUM...
[2021-09-07T14:24:15.343Z] ['info'] Processing /bitrise/src/codecov.SHA256SUM.sig...
[2021-09-07T14:24:15.353Z] ['info'] Detected Local as the CI provider.
[2021-09-07T14:24:15.360Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=bitrise-step-3.0.0-uploader-0.1.0&token=*******&branch=HEAD&build=&build_url=&commit= 18832323a83445c00f5e3bcf17b8abad9bab6157&job=&pr=&service=&slug=//git@bitbucket.org/*****/*****-android&name=&tag=&flags=&parent=
[2021-09-07T14:24:15.542Z] ['error'] Error POSTing to https://codecov.io: 400 Invalid request parameters
[2021-09-07T14:24:15.543Z] ['error'] Error: Error uploading to https://codecov.io: Error: Bad Request
WARN[14:24:15] Step (codecov@3) failed, but was marked as skippable
| |
+---+---------------------------------------------------------------+----------+
| ! | codecov@3 (exit code: 255) | 2.75 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://community.codecov.io |
| Source: https://github.com/codecov/codecov-bitrise |
+---+---------------------------------------------------------------+----------+
Expected Results
Coverage reports to be uploaded to Codecov
Actual Results
[2021-09-07T14:24:15.542Z] [‘error’] Error POSTing to https://codecov.io: 400 Invalid request parameters
[2021-09-07T14:24:15.543Z] [‘error’] Error: Error uploading to https://codecov.io: Error: Bad Request
Additional Information
Section of our bitrise.yml
- codecov@3.0:
inputs:
- OS: linux
- CODECOV_TOKEN: $CODECOV_TOKEN