-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Smoke test pytest-rerunfailures #7805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, once it's green of course.
Rebased to trigger a new build because a fixed pytest-rerunfailures 9.1.1 has just been released which supports newest pytest 6.1: |
@hugovk I think it fails now because the pytest version in master is like |
Yes, that must be it, rerunfailures has: PYTEST_GTE_61 = pkg_resources.parse_version(
pytest.__version__
) >= pkg_resources.parse_version("6.1") And with pytest >>> import pytest
>>> import pkg_resources
>>>
>>> pytest.__version__
'6.0.1.dev223+gcd67c2a8c'
>>> pkg_resources.parse_version(
... pytest.__version__
... ) >= pkg_resources.parse_version("6.1")
False
>>> pkg_resources.parse_version(
... pytest.__version__
... ) >= pkg_resources.parse_version("6.0")
True It sounds like a good idea in general to have tags on master as well. Would this be possible? And update the release checklist? (This sort of thing has caused problems with pre-commit recently: PyCQA/isort#1371 + cheshirekow/cmake-format-precommit#3) |
The lack of tag on master also has a side effect that the released 6.1.0 is considered newer than master,
|
We can merge the 6.1.0 tag but it doesn't seem like a great solution to me. To be consistent we'll need to merge also the patch tags which is something we wanted to get away from. Besides, master is really work for the next version, so having it say 6.1.* is misleading. I can't think of a good solution other than stopping to use scm-setuptools or somehow tricking it on master... Maybe tag the commit in master after the feature release is branched as Other suggestions welcome |
We can set the SETUPTOOLS_SCM_PRETEND_VERSION environment variable to trick setuptools scm to use |
Due to pytest-rerunfailures latest version requiring 6.1.0, which is not tagged on master.
@hugovk feel free to do the honors of merging. 😁 |
Thanks! |
This adds pytest-rerunfailures to the plugin smoke tests.
It will currently fail, because of the 6.1.0 removals: pytest-dev/pytest-rerunfailures#128, which has affected at least pip (pypa/pip#8925) and matplotlib (matplotlib/matplotlib#18593).
But once it's been fixed, this can be merged and hopefully catch the next removals.