Serialization hooks (requires pytest 4.4)#426
Conversation
f687434 to
955f93d
Compare
955f93d to
d1a2787
Compare
6b257ae to
89d07a5
Compare
|
Rebased and ready for review. 👍 |
|
@blueyed would appreciate a Ness review when you get the chance. 👍 |
blueyed
left a comment
There was a problem hiding this comment.
Too bad there is no coverage report..
Co-Authored-By: nicoddemus <nicoddemus@gmail.com>
|
Thanks! |
|
@nicoddemus could this be published as RC instead of latest release? at least until the required pytest version is stable? requiring pytest>=4.4 in a minor release version of this pytest plugin and publishing it doesn't seem very sensible when 4.4 is still experimental and the change will likely break a lot of things which don't have this package pinned |
|
Hi @alexanderscott,
Why do you say 4.4 is still experimental? It is a normal pytest release. What is experimental are the hooks, in the sense that users should use it with caution because we reserve the right to change them later or even remove them completely. Other than that, the hook implementations have been moved quite literally from About pinning, Are you having problems or just a general concern? I appreciate the concern btw. |
|
thanks for the quick reply @nicoddemus . was able to fix my problem but was concerned others may experience similar
This logic makes sense but isn't what I experienced for some reason. Had several different versions of pytest pinned to microservices (for ex/ Might just be an issue specific to my setup (in which case please ignore), but this dependency mismatch hasn't occurred for me before with |
|
Hi @alexanderscott, Thanks for the description. Hmm the problem is probably pip's dependency solver, which is long standing issue: pypa/pip#988. Unfortunately our hands are tied for two reasons: if the dependency solver is not doing it's job correctly, then it wouldn't matter in which version we released this change, it would still not honor the version restrictions even if we released pytest-xdist as 2.0.0 or RC. 😞 The other reason is that we can't really change the release once it is out, the best we can do is make another release pulling back this change, but I fear this might even add more confusion to the mix. Let's see if more people manifest this problem. Again, thanks for reaching out, it is important to have this kind of dialog to ensure our expectations are on the same page. 👍 |
|
No problem, and thanks for the info and your thorough reply @nicoddemus . Keep up the good work! |
Replaces xdist's own serialization code with pytest's 4.4 serialization hooks.
This also means that the next pytest-xdist release will require
pytest>=4.4.