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
Enhance support.reap_children() #75343
Comments
Attached PR enhances the support.reap_children() function:
|
The GCC job of Travis CI failed with ENV_CHANGED: Test wait() behavior when waitpid returns WIFSTOPPED; bpo-29335. ... I tested and... WOW! When run in a loop, this test leaks 100 MB per second. It creates a lot of processes. |
Ooops, in fact it was a macOS job: The GCC job failed with much more errors: --- 0:14:22 load avg: 136.67 [282/403/1] test_select 0:16:00 load avg: 110.41 [297/403/1] test_socketserver 0:18:36 load avg: 105.94 [333/403/1] test_thread For test_socketserver, see bpo-31151. |
This change introduced a regression: ====================================================================== Traceback (most recent call last):
File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_builtin.py", line 1624, in test_input_no_stdout_fileno
lines = self.run_child(child, b"quux\r")
File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_builtin.py", line 1573, in run_child
self.assertEqual(status, 0)
AssertionError: 1 != 0 |
bpo-31173 fixed a leaked child process in test_subprocess. |
bpo-31151 fixed test_socketserver. |
I pushed the most important change: reap_children() now makes tests fail with ENV_CHANGED on warning, so I close the issue. |
With PR19263 The AIX bots are now red. ====================================================================== Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_builtin.py", line 1952, in test_input_no_stdout_fileno
lines = self.run_child(child, b"quux\r")
File "/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_builtin.py", line 1898, in run_child
support.wait_process(pid, exitcode=0)
File "/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/support/__init__.py", line 3432, in wait_process
os.kill(pid, signal.SIGKILL)
NameError: name 'signal' is not defined Ran 101 tests in 30.348s +++++++++++++++ Buildbot URL: https://buildbot.python.org/all/ Worker for this Build: edelsohn-aix-ppc64 |
Ah - great. Sorry for the noise then. |
It's not noise, it is useful :-) |
I think something is not yet what it needs to be: the bots both finish test with: test_zip_pickle (test.test_builtin.BuiltinTest) ... ok And the bot status is still FAIL (aka red): failed test (failure) uploading test-results.xml (failure) |
https://buildbot.python.org/all/#/builders/227/builds/571 build failed but it has my commit 16d7567. Ok, something failed. Please open a new issue. This one is closed. |
Pablo Galindo opened bpo-40140, let's use this one. |
Note: Oops, Batuhan created it, Pablo only commented. |
test_builtin
from hanging on AIX, Solaris and maybe others. #19308Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: