-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Poll if process is still alive in Test.py #2290
Conversation
In some cases this script did not detect properly that the subprocess is already terminated. The "append" loop afterwards caused memory to fill up and the script to fail eventually.
Jenkins Build SummaryBuilt from this commit Built at 20171206 - 22:13:36 Test Results
|
Codecov Report
@@ Coverage Diff @@
## develop #2290 +/- ##
===========================================
- Coverage 70.96% 70.89% -0.07%
===========================================
Files 691 691
Lines 51663 51120 -543
===========================================
- Hits 36661 36241 -420
+ Misses 15002 14879 -123
Continue to review full report at Codecov.
|
Hi @MarkusTeufelberger. Thanks for the submission. Can you explain a bit more about what's happening when the subprocess termination is not detected? I can't really tell from that Travis link. Is there an infinite loop situation happening? Perhaps the Which "append" loop are you talking about? Does this happen often? Are you seeing any data that shows this change actually fixes your issue? |
This is already running in verbose mode I'm afraid... So far this only seems to happen mainly on ArchLinux - my suspicion is that breaking the iteration at Yes, I'm talking about the See the travis builds in https://github.com/MarkusTeufelberger/rippled-distrotest for details, especially the archlinux ones. |
Looked at it again and realized I made a stupid mistake (https://docs.python.org/3.7/library/subprocess.html#subprocess.Popen.poll returns And yes, the build actually starts and works with this fix on Archlinux. |
Anything you still need? I can't really add or suggest reviewers unfortunately, since there's no public overview of who is responsible for what in the rippled team. |
In 0.90.0-b3 |
In some cases this script did not detect properly that the subprocess is already terminated. The "append" loop afterwards caused memory to fill up and the script to fail eventually.
Example for this behaviour: https://travis-ci.org/MarkusTeufelberger/rippled-distrotest/jobs/310261175