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

Question: How could one customize the distributed worker initialization (e.g. running some bash commands on setup)?

Open lebrice opened this issue 2 years ago • 1 comments

Hello there!

I'm still in the process of familiarizing myself with the codebase, sorry if the answer to this is already documented somewhere. From what I've understood, you're using execnet gateways and channels to execute python code on the remote hosts, and you make these different parts inspectable and usable with pytest hooks.

I haven't been able to find a way to specify a set of commands I'd like to run "on remote worker spawn". Is there a way of doing this? For example, I'd like the remote worker to first activate a given Conda environment before running any tests.

Thanks a lot!

lebrice avatar Jan 23 '23 19:01 lebrice

currently there is not work in execnet is needed toenable this use-case - the current timeframe is at best 12-18 months down the line base don my current priorities

RonnyPfannschmidt avatar Jan 23 '23 21:01 RonnyPfannschmidt