-
Notifications
You must be signed in to change notification settings - Fork 192
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
Dependencies: update requirement pytest~=6.0
and use pyproject.toml
#4410
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.
Looks like there are some issues with this update since the CI tests are failing: https://github.com/aiidateam/aiida-core/pull/4410/checks?check_run_id=1172693876
Did you already have a look at this? Is this a pytest incompatibility?
It seems to be a problem with |
I believe that |
I believe it resolves some issues but not all - some tests will continue to fail even if you run them N times in a row since the failure is related to some hidden state in the environment. I don't have time now, but it would be interesting to gather some statistics from the travis logs on how often flaky tests are being successfully rerun by I would suggest to keep it and limit the pytest version instead until the mentioned issue is fixed (unless we really need pytest v6.1) |
8dcb5b5
to
fbcfdb5
Compare
FYI, |
Good call, I actually just updated the PR to put an upper limit. I even checked the issue but somehow didn't notice it had been closed 🤦♂️ Will revert the change |
2655260
to
1bc0e1c
Compare
Codecov Report
@@ Coverage Diff @@
## develop #4410 +/- ##
========================================
Coverage 79.22% 79.22%
========================================
Files 475 475
Lines 34826 34826
========================================
Hits 27589 27589
Misses 7237 7237
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Starting from v6.0, `pytest` supports using the `pyproject.toml` instead of a `pytest.ini` to define its configuration. Given that this is quickly becoming the Python packaging standard and allows us to reduce the number of configuration files in the top level of the repository, we increase the version requirement of `pytest`. Note that we also require `pytest-rerunfailures>=9.1.1` because lower versions are broken in combination with `pytest==6.1`. See the following: pytest-dev/pytest-rerunfailures#128 for details.
1bc0e1c
to
456115a
Compare
@csadorf this is ready for review. |
Fixes #4340
Starting from v6.0,
pytest
supports using thepyproject.toml
insteadof a
pytest.ini
to define its configuration. Given that this isquickly becoming the Python packaging standard and allows us to reduce
the number of configuration files in the top level of the repository, we
increase the version requirement of
pytest
.