Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Improve CI reliability #219

Merged
merged 4 commits into from
May 11, 2020
Merged

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented May 11, 2020

I see two failures frequently: PyPy3 hangs, and coverage upload failures. I had two PRs, but each PR failed because it did not have the fix from the other one!

The Codecov code handles retries correctly, but the GitHub Actions sometimes fails to fetch it: codecov/codecov-action#71

Trio has found a way to fetch the code that works reliably, so let's use it. As a bonus, the job names in Codecov now make sense.

@codecov
Copy link

codecov bot commented May 11, 2020

Codecov Report

Merging #219 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #219   +/-   ##
=======================================
  Coverage   98.82%   98.82%           
=======================================
  Files          22       22           
  Lines        3233     3233           
=======================================
  Hits         3195     3195           
  Misses         38       38           

The Codecov code handles retries correctly, but the GitHub Actions
sometimes fails to fetch it. Trio has found a way to fetch the code that
works reliably, so let's use it.
@pquentin pquentin changed the title Try harder at uploading coverage Improve CI reliability May 11, 2020
@pquentin pquentin closed this May 11, 2020
@pquentin pquentin reopened this May 11, 2020
Copy link
Member

@RatanShreshtha RatanShreshtha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest everything looks fine.

name: codecov-umbrella
yml: ./codecov.yml
fail_ci_if_error: true
run: ./_travis/upload_coverage.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion, we should put our CI script like upload_coverage.sh in a folder maybe named ci.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RatanShreshtha I renamed _travis/ to ci/, please take another look

@@ -1287,6 +1288,7 @@ def socket_handler(listener):
finally:
timed_out.set()

@skipPyPy3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for keeping our CI reliable :)

@pquentin pquentin merged commit 76c4626 into python-trio:master May 11, 2020
@pquentin pquentin deleted the curl-harder-codecov branch May 11, 2020 12:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants