-
-
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
hook specs are not set for other plugin hooks #1062
Comments
as far as i can tell we need a way to propperly install dependencies into pytest on remotes |
how exactly? |
for example creating a virtualenv with the correct python + dependencies and then providing that as the python argument to the xspec propper remote virtualenv orchestration is a hard topic that we dont want to solve prematurely/broken if possible |
im about running pytest with xdist with just -n (so popen, no need of the dependencies) |
that means we changed the pluginmanager construction sequence and it leaves out setuptools, thats a hard one , will take a look this afternoon |
@RonnyPfannschmidt any chance for you to look at it? |
i think i can manage saturday/sunday |
Any news? |
unfortunately i couldnt work on it, my own computer broke down |
So currently xdist does not work with pytest 2.8+ if environment contains plugins with custom hooks and there's no workaround, is that correct? |
im affraid you're correct On 14 November 2015 at 07:03, Gleb Dubovik notifications@github.com wrote:
Anatoly Bubenkov |
We got something merged to feature which Contains a potential fix Can someone try |
@RonnyPfannschmidt No, looks like it's still broken with latest pytest (features branch) and latest xdist (master): |
I'll look into details after my replacement PC is finished |
@RonnyPfannschmidt sorry for confusion, started debugging when understood that I might have installed pytest master branch instead of features. Either this or something else got fixed, now it works for me. Thank you! Do you know when can we expect the release? |
If you tried |
@nicoddemus tried, doesn't work, master doesn't work either |
Duh sorry, my bad, late night here... if it's in |
That's a pity. We have a set of conventions around the use of the test runner as well as some integration code with internal systems (bugtracker, result reporting, style checking, etc.) - all of that wrapped in shared pytest plugins. Parallel test execution was one of the features why we chose pytest in the first place. Loosing either is a major regression for us. I guess we'll probably have to stick with 2.7. Is there any chance of backporting the fix to 2.8 series? After all, regression was introduced in 2.8. |
I'm actually not sure what the fix was. Perhaps @RonnyPfannschmidt can answer that. |
Not sure if that's a good idea over starting a timely 2.9 instead, we do want to try and stick to semver after all |
Could you point me to the PR for this change? I have missed it somehow. Em qui, 26 de nov de 2015 03:48, Ronny Pfannschmidt <
|
Well, I would suggest that this is rather a bug fix vs a new feature. But I don't know what feature we're talking about here, but is it possible to Finally, most important question, to the best of your knowledge, what would On Wednesday, November 25, 2015, Ronny Pfannschmidt <
|
its includes a necessary api change thats required to propperly handle the case, so its not something easily backported |
Oh that change was related to this? Thanks @RonnyPfannschmidt Well I completely agree that we shouldn't break semver and that should be released into
Those are all doable in a short time frame, we would just have to agree on them for a 2.9 milestone and start working. (I just realized this is getting out of topic, should we move this to a separate issue?) |
im considering being less conservative about feature releases, but a discussion is needed in the end - a normal issue tracker is unsuitable for that |
What do you mean? That you don't have a problem to release them more often? |
yes - but but that also has downsides, @hpk42 and me weight those different and i#d like to arrive at a shared conclusion before ending up doing something rash |
I see. Well, created an issue at #1195, let's move the discussion there for now until we have a better place for it. |
By the way, I think this can be closed since it is already fixed in |
Hey, A quick announcement of a small plugin I just published to PyPI, Pytest by default will collect all tests from directories or files given
Tests from This plugin is intended for the cases where the user wants to run all tests This plugin was born from the discussion taken in #1187[1]. It was also a chance to try the amazing cookicutter[2] and [1] #1187 Cheers, |
Did #1124 fix this? I am running version 2.8.5 and just got:
|
Looks like something fixed it, cause if I install the latest commit from |
@saulshanabrook the pr was indeed against the features branch - a fix will be released in 2.9 |
@RonnyPfannschmidt shouldn't we close this? It is fixed in |
Yes, we should also aim for a 2.9 before February |
…s strictly necessary (never is for xdist).
In pytest-bdd we have custom hooks, and they are regstered via:
this works fine for non-xdist runs
but with xdist we get this:
so looks like hook specs are not parsed and set when xdist's remote run happens
The text was updated successfully, but these errors were encountered: