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

Fix failure to generate worker_id when xdist is not present #4799

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

jlowe
Copy link
Contributor

@jlowe jlowe commented Feb 16, 2022

Fixes #4798.

xdist is optional, so we cannot rely on the typical worker_id fixture to identify the worker ID. This uses a try-to-import approach to leverage an xdist API to retrieve the worker_id from the pytest config, using a static string for the worker ID if xdist fails to import.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added the test Only impacts tests label Feb 16, 2022
@jlowe jlowe added this to the Feb 14 - Feb 25 milestone Feb 16, 2022
@jlowe jlowe self-assigned this Feb 16, 2022
@jlowe
Copy link
Contributor Author

jlowe commented Feb 16, 2022

build

@jlowe jlowe merged commit bdb6e72 into NVIDIA:branch-22.04 Feb 16, 2022
@jlowe jlowe deleted the fix-worker_id-fixture branch February 16, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Integration test builds failing with worker_id not found
3 participants