Description
Cannot upload to codecov using bash or CircleCI integration. Upload was working prior to upgrade to 0.2.8, forced because the old version of the gem was yanked. Bash upload was not attempted prior to this upgrade. FWIW, when I catch the s3 link before it expires, I get a bad signature error:
<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.</Message>
<StringToSign>AWS4-HMAC-SHA256 20200825T210637Z 20200825/US/s3/aws4_request 9659cf192fd48f05eea588eec6315f05125b08adf1f3a72b041e794308ac1464</StringToSign>
<CanonicalRequest>GET /codecov/v4/raw/2020-08-25/173FB0B63EE4AA9D7A802BC2222A0FA6/f0cb8dbb48b106864893f7e2181021d40a0b0b76/63cdbd10-8270-4d5f-ac51-ab393ea09b96.txt X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200825%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200825T210637Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host host:storage.googleapis.com host UNSIGNED-PAYLOAD</CanonicalRequest>
</Error>
Repository
Private
CI/CD
CircleCI
Uploader
CircleCI orb and bash uploader
Commit SHAs
Ex a879d0df0ab64feb85df77469d3761b90c32177e
Codecov YAML
Not using
Codecov Output
#!/bin/bash -eo pipefail
curl -s https://codecov.io/bash | bash -s –
-f “coverage/.resultset.json”
-t “${CODECOV_TOKEN}”
-n “${CIRCLE_BUILD_NUM}”
-F “”
-Z || echo ‘Codecov upload failed’
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-20200728-9fb7d93
==> Circle CI detected.
project root: .
Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
-> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
+ coverage/.resultset.json bytes=199649
==> Appending adjustments
https://docs.codecov.io/docs/fixing-reports
+ Found adjustments
==> Gzipping contents
==> Uploading reports
url: https://codecov.io
query: branch=fix%2Fcodecov-experiment&commit=b91ef056db7b5a81078cee9db648b9bc583ba583&build=2921&build_url=&name=2921&tag=&slug=majority-labs%2Ffuture-majority&service=circleci&flags=&pr=&job=0&cmd_args=f,t,n,F,Z
-> Pinging Codecov
https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=fix%2Fcodecov-experiment&commit=b91ef056db7b5a81078cee9db648b9bc583ba583&build=2921&build_url=&name=2921&tag=&slug=majority-labs%2Ffuture-majority&service=circleci&flags=&pr=&job=0&cmd_args=f,t,n,F,Z
-> Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-08-25/173FB0B63EE4AA9D7A802BC2222A0FA6/b91ef056db7b5a81078cee9db648b9bc583ba583/e21f1d4c-4c86-4818-8276-699240433b8a.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200825%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200825T173334Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=38c22f9f45fd18618d5367b366cc0c151ceab88e8a76b920014b09ab16bfa5a8
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 102k 0 0 100 102k 0 258k --:--:-- --:--:-- --:--:-- 259k
-> View reports at https://codecov.io/github/majority-labs/future-majority/commit/b91ef056db7b5a81078cee9db648b9bc583ba583
CircleCI received exit code 0
Steps to Reproduce
-
Run CircleCI build with Codecov orb upload step that uploads .resultset.json
OR -
bash <(curl -s https://codecov.io/bash) -f coverage/.resultset.json -t XXXXXXXXX
Expected behavior: Reports visible on codecov
Actual behavior: There was an error processing coverage reports.
Flakiness? Always, since update
Additional Information
Please let me know what else I can include to help troubleshoot. Thank you!