-
Notifications
You must be signed in to change notification settings - Fork 38.7k
test: don't try and use os.killpg() on Windows #22936
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
Conversation
os.killpg and os.getpgid are Unix only. https://docs.python.org/3.6/library/os.html#os.killpg
|
Just curious, why do functional tests pass in the current master (after #22922)? UPDATE: nm, I see the reason. |
|
Related: #22249 (review) |
maflcko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An alternative would be to just not fix it. I mean who uses Windows anyway (to run the functional tests with --failfast).
At least with the error message, it well be clear that something went wrong. With this patch it will leave them dangling.
|
@fanquake I'm not familiar with how windows processes work. So what's the behaviour with this patch? Will the tests continue to run and exit normally? Will the tests be killed by OS after the test runner finished? Or something else entirely? |
|
|
We can just leave this for now. |
|
How should I handle a PR that seems to be failing CI because of this? Restart the job? Ignore it? Is this a race condition? I didn't read through all the related issues but I can't figure out from discussion above what seems to make this problem happen only sometimes or how to handle it. The failure is https://github.com/bitcoin/bitcoin/pull/22937/checks?check_run_id=3646048735 in #22937. |
|
The error from https://cirrus-ci.com/task/4664491330764800?logs=functional_tests#L148 is |
|
The error from https://cirrus-ci.com/task/5711752030584832?logs=functional_tests#L0 is (You need to download the full log to see it) |
That looks like a perfectly valid use case. I think #23085 is a legit issue. Of course that doesn't mean that any "non Windows heads" at all Cheers! |
|
I think this is worth merging if it would clarify underlying failures, e.g. in https://github.com/bitcoin/bitcoin/pull/23289/checks?check_run_id=3955413522 the presence of this error seems to be obscuring the actual issue (#23303). |
|
It might be better to introduce a new option (Or an undocumented ENV var, if the overhead of a new option would be too much) |
that's great, simple, clean, traditional, and produces code easy to read |
os.killpg and os.getpgid are Unix only. Seen in at least #20744: