pytest-xdist icon indicating copy to clipboard operation
pytest-xdist copied to clipboard

Allow other plugins to use xdist's channels for communication

Open amezin opened this issue 2 years ago • 1 comments

rerunfailures plugin uses its own sockets for communication between master and worker nodes. Because of hardcoded localhost I assume it won't work in an actual distributed setup.

If I'm not mistaken, I've seen at least one more plugin doing something similar, but can't find it right now.

Could xdist provide some interface for other plugins to perform communication?

Currently my guess is that some form of "execute this function on the master node (and optionally get the result)" should cover most cases. At least, it will be enough for rerunfailures.

amezin avatar Mar 09 '23 15:03 amezin

+1 on this one

RonnyPfannschmidt avatar Mar 09 '23 16:03 RonnyPfannschmidt