Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run codecov in subshell to prevent blocking build #363

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

yanokwa
Copy link
Contributor

@yanokwa yanokwa commented Sep 10, 2019

Codecov's upload to S3 sometimes fails with the following error:
Error: HTTPSConnectionPool(host='codecov.io', port=443): Max retries exceeded with url

I considered using the hacky approach at codecov/codecov-python#158 (comment) but that would have resulted in a pretty messy command for us.

for i in 1 2 3; do /home/circleci/.local/bin/codecov --required -X search gcov pycov -f coverage.xml && break || sleep 30; done seems like it'd be better, but I guess I don't think we need to hammer codecov's servers. I don't think code coverage reports are that important anyway.

Rather than all these retries, I think we should just run it in a subshell. If it works on the run, great. If not, it doesn't block the build. I got the idea from mapbox/mapbox-gl-native#15248.

I don't have a great way to confirm the subshell command works on master, but it's a safe merge.

@lognaturel lognaturel merged commit 635d19d into XLSForm:master Sep 11, 2019
@yanokwa yanokwa deleted the nonblocking-codecov branch September 20, 2019 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants