Skip to content

Update dependencies and other minor changes #270

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

Merged
merged 6 commits into from
Mar 15, 2020
Merged

Update dependencies and other minor changes #270

merged 6 commits into from
Mar 15, 2020

Conversation

KingDarBoja
Copy link
Contributor

This PR should bring back coverall CI reports.

Also, provide a range for gevent dependency by allowing fetching latest pre-releases.

@KingDarBoja
Copy link
Contributor Author

@Cito I see you have re-enabled coveralls, shall I close this PR?

@Cito
Copy link
Member

Cito commented Mar 15, 2020

@KingDarBoja Sorry, did not see you already created a PR for this. You made a few more changes which look reasonable, so we should merge it. Maybe just revert the change to tox.ini since I added coverage already there. I run it only for one Python version to make it faster since coveralls is only using one result anyway.

@KingDarBoja
Copy link
Contributor Author

Based on your comment, this does mean we should do the same thing for every other graphql-python that makes use of coveralls to speed up the Travis CI, right?

@Cito Cito changed the title Enable Coveralls Update dependencies and other minor changes Mar 15, 2020
@Cito Cito merged commit 26b0fc0 into graphql-python:master Mar 15, 2020
@Cito
Copy link
Member

Cito commented Mar 15, 2020

Based on your comment, this does mean we should do the same thing for every other graphql-python that makes use of coveralls to speed up the Travis CI, right?

Actually, I'm not really sure what's considered best practice here. But tox tests can be pretty slow when all of them run with coverage. I also noticed that branch coverage is sometimes lower with newer Python versions, since coverage does not cope with clever optimizations built into these versions. Sometimes there are also code parts that are only needed in certain Python versions, these would then decrease coverage in the other versions even though they are not necessary there. So coverage should be probably measured with one of the newer Python versions, but not the newest one. Finally, some projects have already switched to codecover instead of coveralls which looks newer and seems to have some advantages.

In graphql-core 3 I reached 100% coverage, but I needed to add many pragma hints and rules to help coverage ignore the mentioned optimizations. Here I measure coverage with all Python versions, and create an error if it is below 100% in any of these versions.

@KingDarBoja KingDarBoja deleted the fix-coverage branch March 16, 2020 02:40
@KingDarBoja
Copy link
Contributor Author

Thanks for the explanation @Cito ! It really helps a lot for someone to explain things like that instead of blindly implementing that feature because any other repository does.

Once again, I do really appreciate the feedback 💯

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.

2 participants