Skip to content
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

actions: Fix interaction between start-method and pytest-xdist #1265

Conversation

zmedico
Copy link
Member

@zmedico zmedico commented Feb 13, 2024

Use portage.test.TestCase setUp method to setup the multiprocessing start method if needed. It needs to be done relatively late in order to work with the pytest-xdist plugin due to execnet usage.

Bug: https://bugs.gentoo.org/914876

@zmedico zmedico marked this pull request as draft February 13, 2024 00:51
@zmedico zmedico marked this pull request as ready for review February 13, 2024 01:21
@zmedico zmedico force-pushed the bug_914876_actions_Fix_interaction_between_start-method_and_pytest-xdist branch from 805b5ef to e695186 Compare February 13, 2024 01:27
Use portage.test.TestCase setUp method to setup the multiprocessing
start method if needed. It needs to be done relatively late in order
to work with the pytest-xdist plugin due to execnet usage.

Bug: https://bugs.gentoo.org/914876
Signed-off-by: Zac Medico <zmedico@gentoo.org>
@zmedico zmedico force-pushed the bug_914876_actions_Fix_interaction_between_start-method_and_pytest-xdist branch from e695186 to 3110ec3 Compare February 13, 2024 05:04
@gentoo-bot gentoo-bot merged commit 3110ec3 into gentoo:master Feb 13, 2024
12 checks passed
@zmedico zmedico deleted the bug_914876_actions_Fix_interaction_between_start-method_and_pytest-xdist branch February 13, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants