Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

HTTP 400 while uploading to s3 with python codecov #251

Closed

Description

@Borda

We have a public repo which is built on Drone.io and everything was fine until yesterday...
According to the Codecov commit history the reports start failing about 24h ago without any change in Codecov config or CI configuration...
It seems to be strictly failing on uploading to S3, see the error:

+ codecov --token $CODECOV_TOKEN
--
1765 | find: unknown predicate `-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**''
1766 |  
1767 | _____          _
1768 | / ____\|        \| \|
1769 | \| \|     ___   __\| \| ___  ___ _____   __
1770 | \| \|    / _ \ / _  \|/ _ \/ __/ _ \ \ / /
1771 | \| \|___\| (_) \| (_\| \|  __/ (_\| (_) \ V /
1772 | \_____\___/ \____\|\___\|\___\___/ \_/
1773 | v2.0.22
1774 |  
1775 | ==> Detecting CI provider
1776 | -> Got branch from git/hg
1777 | -> Got sha from git/hg
1778 | ==> Preparing upload
1779 | ==> Processing gcov (disable by -X gcov)
1780 | Executing gcov (['find', '/drone/src', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+'])
1781 | Error running `['find', '/drone/src', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+']`: Command '['find', '/drone/src', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+']' returned non-zero exit status 1.
1782 | ==> Collecting reports
1783 | Generating coverage xml reports for Python
1784 | + /drone/src/coverage.xml bytes=175982
1785 | ==> Uploading
1786 | .url https://codecov.io
1787 | .query commit=07b61c36d7ed5d6a731cd06096f967b85d1a2b92&branch=master&token=<secret>&yaml=.codecov.yml&package=py2.0.22
1788 | Pinging Codecov...
1789 | Uploading to S3...
1790 | Error: 400 Client Error: Bad Request for url: https://storage.googleapis.com/codecov/v4/raw/2020-05-17/58A692D2985A264F96A68126BE73B9B0/07b61c36d7ed5d6a731cd06096f967b85d1a2b92/8e03c21c-d0d8-4fc3-91c7-805790ffbff4.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200517T212109Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=8d778eb999bad1df2ef43dd5d9eef1ae407b032f69162876568618cf8469bbad
1791 |  
1792 | Tip: See all example repositories: https://github.com/codecov?query=example
1793 | Support channels:
1794 | Email:   [email protected]
1795 | IRC:     #codecov
1796 | Gitter:  https://gitter.im/codecov/support
1797 | Twitter: @codecov

see: http://35.192.60.23/PyTorchLightning/pytorch-lightning/2962/1/2
the very same issue was also reported on support by others:
https://community.codecov.io/t/http-400-while-uploading-to-s3-with-python-codecov-from-travis/1428

Activity

  1. enmatt commented on May 17, 2020

    @enmatt

    Same here. I saw on their status page that they did storage infrastructure maintenance Saturday morning.

  2. knutster commented on May 18, 2020

    @knutster

    Same here from a circleci build

  3. hootener commented on May 18, 2020

    @hootener

    @ThiagoCodecov has submitted a fix in #253 . We'll get that merged today, along with #252

  4. Borda commented on May 18, 2020

    @Borda
    Author

    by the PRs' name it does not look very relevant... so is it fixed now in master?

  5. eric-wieser commented on May 18, 2020

    @eric-wieser

    This looks merged, but it'll need a release to PyPI to help people using CI.

  6. Borda commented on May 18, 2020

    @Borda
    Author

    it seems that it is working now, so some temporary S3 issue...

  7. kmpaul commented on May 22, 2020

    @kmpaul

    It is not working for me on circleci or directly from my laptop. Did the merge above not get released?

  8. kmpaul commented on May 22, 2020

    @kmpaul

    Ok. Sorry for the noise. I verified that I can indeed get codecov to work properly if I install from the master branch (instead of the latest release).

  9. interDist commented on May 24, 2020

    @interDist

    @Borda looks like the issue is resolved.

    I had to update in project dependencies (requirements) the version of codecov to 2.1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions