-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Remove MarkInfo #4564
Remove MarkInfo #4564
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.
Thanks @RonnyPfannschmidt, this looked painful! 👍
Please update deprecations.rst
and add a CHANGELOG entry following the format used by the other removal
entries.
Codecov Report
@@ Coverage Diff @@
## features #4564 +/- ##
============================================
+ Coverage 95.71% 95.73% +0.02%
============================================
Files 111 111
Lines 24863 24663 -200
Branches 2449 2442 -7
============================================
- Hits 23797 23612 -185
+ Misses 751 740 -11
+ Partials 315 311 -4
Continue to review full report at Codecov.
|
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.
Please also update deprecations.rst
and add a CHANGELOG entry. 👍
Rebasing/merging on the latest |
13186ac
to
d0afc85
Compare
now comes the task of actually collecting all the different issues with the removals and correctly reffering them ^^ |
You mean for the CHANGELOG? hehehe yeah, after that this is good to merge. 👍 |
9743190
to
7da2d4a
Compare
keywords are still a big issue
9b1c22e
to
134641f
Compare
Hehehe I was just solving the conflicts myself. 😁 |
i found that kdiff3 is epic-ally better than github at resolving them (my rebase needed no work at all) |
💥 |
We are ready to release |
…d upstream as mentioned here: pytest-dev/pytest#4606 (comment) Quoted here incase that link breaks in the future: "We have removed item.get_marker, users should use item.get_closest_marker now (it's a long history, this was not an arbitrary change). Indeed I suspect pytest-cov might need to be updated." item.get_marker was removed in this PR pytest-dev/pytest#4564
…d upstream as mentioned here: pytest-dev/pytest#4606 (comment) Quoted here incase that link breaks in the future: "We have removed item.get_marker, users should use item.get_closest_marker now (it's a long history, this was not an arbitrary change). Indeed I suspect pytest-cov might need to be updated." item.get_marker was removed in this PR pytest-dev/pytest#4564
* Replace item.get_marker with item.get_closest_marker as it was removed upstream as mentioned here: pytest-dev/pytest#4606 (comment) Quoted here incase that link breaks in the future: "We have removed item.get_marker, users should use item.get_closest_marker now (it's a long history, this was not an arbitrary change). Indeed I suspect pytest-cov might need to be updated." item.get_marker was removed in this PR pytest-dev/pytest#4564 * Determine security mode of the cluster by querying the cluster instead of a local environment-variable. * Remove underscores from services names, this breaks for scenarios such as 'nonessential_tasks' where underscores are not allowed in task names. * Update frameworks/helloworld/tests/scale/test_scale.py Co-Authored-By: kaiwalyajoshi <[email protected]> * Address comments from code-review * Add support for soack configuration and custom service names, this can be used to differentiate the various hello-worlds. ie --service-name='orchestration/hello-world'
Starting from `pytest` version 4.1.0, `Node.get_marker()` has been removed, and hence our tests break when running with newer versions of `pytest`. It was deprecated since a while back but it has recently been removed completely. Use `get_closest_marker()` as a replacement that is suggested in the changelog, and seems to work fine for our use case. See pytest-dev/pytest#4564 for more context on the upstream issue. One way of verifying this change is that this should fix the recently added `tests-fedora-update-deps` job, that was failing before due to this issue. (cherry picked from commit c91784a)
this removes marker info in various ways
a) no more legacy marker objects on functions (this has surprising effects)
b) keywords are changes in a backward incompatible way as markerinfo goes away
c) plugin hook parsing needs an additional compatibility hack, i registered #4562
d) mark finding got a bit tighter to sort out mistakes in prior normalization
e) gruesome bugs in parameterize and fixture handling have been resolved by switching from attributes to definition markers
fixes #3515
fixes #3537 (removes legacy marker transfer which triggers the error)
fixes #891
fixes #4546