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

Resolve coverage dependency conflict #4191

Merged
merged 3 commits into from
Aug 18, 2021

Conversation

bblommers
Copy link
Collaborator

@bblommers bblommers commented Aug 18, 2021

Reverts #4083

Fixes #4190

Relates to pypa/pip#10201

Our coverage-dependency was unresolvable, with pytest-cov requiring coverage>5, but because of the XRay SDK we required coverage<5.
Before, pip would complain about it, but leave it up to us to figure it out. The new Pip resolver thinks it can fix it, but then takes literal hours trying to find a compatible set of dependencies.

Downgrading pytest-cov leads to an even bigger dependency hell, as it is quite tightly coupled with pytest itself.

Installing the old version of coverage separately when running the CI is IMO the least-impactful solution.

Contributors would not normally run make test-coverage anyway - just make test - so this should not impact anyone.

@bblommers bblommers force-pushed the resolve-coverage-dep-conflict branch 2 times, most recently from fca7cbe to 37abb53 Compare August 18, 2021 07:30
@bblommers bblommers force-pushed the resolve-coverage-dep-conflict branch from 37abb53 to bb9c103 Compare August 18, 2021 07:31
@codecov-commenter
Copy link

Codecov Report

Merging #4191 (bb9c103) into master (547a184) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4191      +/-   ##
==========================================
- Coverage   95.07%   95.07%   -0.01%     
==========================================
  Files         480      480              
  Lines       52892    53031     +139     
==========================================
+ Hits        50288    50419     +131     
- Misses       2604     2612       +8     
Flag Coverage Δ
servertests 55.26% <ø> (-0.06%) ⬇️
unittests 95.00% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
moto/s3/exceptions.py 90.47% <0.00%> (-0.58%) ⬇️
moto/s3/responses.py 95.65% <0.00%> (-0.31%) ⬇️
moto/iot/responses.py 98.87% <0.00%> (+0.01%) ⬆️
moto/ec2/utils.py 92.47% <0.00%> (+0.02%) ⬆️
moto/s3/models.py 94.28% <0.00%> (+0.05%) ⬆️
moto/iot/models.py 90.48% <0.00%> (+0.07%) ⬆️
moto/s3/utils.py 90.99% <0.00%> (+2.70%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 547a184...bb9c103. Read the comment docs.

@bblommers bblommers merged commit c296a94 into getmoto:master Aug 18, 2021
@bblommers bblommers added this to the 2.2.4 milestone Aug 18, 2021
@github-actions
Copy link
Contributor

This is now part of moto >= 2.2.4.dev5

@bblommers bblommers deleted the resolve-coverage-dep-conflict branch August 18, 2021 10:42
sahilshah6196 pushed a commit to EBSCOIS/moto that referenced this pull request Dec 20, 2021
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.

Stuck while installing requirements using make init
2 participants