Repository navigation
TST: Isolate StringDType leak regression from xdist threads - #33412
Closed
hector2394 wants to merge 2 commits into
Closed
hector2394 wants to merge 2 commits into
hector2394 wants to merge 2 commits into
Conversation
Contributor
Author
|
Could someone please rerun the failed macOS ARM64 check? @ngoldbaum It failed in |
Member
|
Please don't work on newly filed issues in a project you don't regularly contribute to like this. Also please don't ping people like that on a Sunday. I've literally had zero working hours to consider the problem. The fact that another test is failing indicates that there is a wider problem that needs looking at, not just restarting the test. |
Member
|
I'm closing this because it's not the correct solution for the problem. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR summary
Addresses #33409 by running the StringDType buffer-leak regression in a fresh Python subprocess. Its process-wide tracemalloc measurement can include allocations from pytest-xdist's communication threads. A local reproduction attributed the excess memory to execnet.
The existing allocation workload and 1,024-byte limit are preserved. The test uses run_subprocess so failures in the child reach pytest, and skips on platforms without subprocess support.
The StringDType module passed twice under ARM64 emulation with automatic worker selection. Ruff passed. Disabling reference cleanup in a disposable native build still caused the revised test to detect the leak. Patched native ARM64 CI remains pending.
AI Disclosure
Codex assisted with source inspection, CI-log analysis, diagnostic scripts, the subprocess-isolation change and automated validation. I reviewed the final diff.