Skip to content

Make patched testing debug logs xdist-safe#45639

Open
oleksii-tumanov wants to merge 2 commits intohuggingface:mainfrom
oleksii-tumanov:fix/testing-utils-xdist-captured-info
Open

Make patched testing debug logs xdist-safe#45639
oleksii-tumanov wants to merge 2 commits intohuggingface:mainfrom
oleksii-tumanov:fix/testing-utils-xdist-captured-info

Conversation

@oleksii-tumanov
Copy link
Copy Markdown

Fixes #45561

Patched testing debug logs. Instead of having all workers write to the same captured_info.txt file, each worker now writes to its own file, while non-xdist runs keep the existing captured_info.txt behavior. Resetting the logs now clears only the current worker's file (replaced TODO).

I didn't find an existing PR covering this fix.

python test and style passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] pytest-xdist workers race on captured_info.txt in patched testing utils

1 participant