-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
GH-130727: test_wmi_query_error test is flaky #134313
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
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant
Conversation
#125315, I went with the former. In that case, I think it doesn't need a news entry, since it is just fixing a flaky test, but I'd happily blurb it if it deems appropriate. |
@chris-eibl Yeah, give it a NEWS entry, since it's a change to the runtime rather than the tests, and so users might see it out in the wild and wonder about the changed behaviour. Before merging, I'd want to confirm that there's no intentional modification of that struct that is supposed to be picked up by the other thread. I suspect not, but I haven't read the code to double-check. |
Misc/NEWS.d/next/Windows/2025-05-20-21-43-20.gh-issue-130727.-69t4D.rst
Outdated
Show resolved
Hide resolved
Thanks @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
… data (pythonGH-134313) (cherry picked from commit e4fbfb1) Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
… data (pythonGH-134313) (cherry picked from commit e4fbfb1) Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
I can reproduce the the "invalid handle" errors which #130727 (comment) under high load (using "Stress CPU" of CPU-Z) running
The reason is, that the main thread calls
CloseHandle
on the still running thread in case of aWAIT_TIMEOUT
, and then the thread dies withand call stack
where
when I debug it in Visual Studio.
This has already been anticipated by #125315 (comment).
Another manifestation of this race results in
which sometimes occur on the build bots, e.g. https://buildbot.python.org/#/builders/1799/builds/20.
Copying the
_query_data
struct in the wmi thread fixes both issues.test_wmi_query_error
test is flaky #130727