Merge ~till-kamppeter/network-manager:master into network-manager:master
Proposed by
Till Kamppeter
Status: | Merged |
---|---|
Merged at revision: | d4ca8bd9d020f82b63afffa6a905a6901d43a7f7 |
Proposed branch: | ~till-kamppeter/network-manager:master |
Merge into: | network-manager:master |
Diff against target: |
143 lines (+69/-12) 1 file modified
debian/tests/nm.py (+69/-12) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Iain Lane | Approve | ||
Review via email: mp+369586@code.launchpad.net |
Commit message
nm.py autopkgtest: Added timers to make the main loops time out if the asynchronous processes do not finish.
Description of the change
This change avoids that in case of failure of the asynchronous operations the script does not get stuck in the main loop making the autopkgtest application killing it after hours and without clue about what went wrong. If the asynchronous operations do not finish withing 5 minutes the main loops which wait for them are stopped by timer.
This does not influence the probability of a test passing or failing due to tasks completing too slowly. It only improves debuggability.
To post a comment you must log in.
Thanks for working on this.
I've seen this kind of timeout go wrong when a machine is slow but the test is legitimately proceeding. Then you get a lot of "bump timeout"-style changes and the timeout gets in the way.
Do you know that autopkgtest has various "--timeout" options (notably "--timeout-test"). If you're having problems when iterating to debug the tests failing for another reason, have you considered setting that for yourself instead?
Do you know which operations are hanging and why? Would it be possible to stop that happening?
I'll give you some specific review comments inline.