<div dir="ltr">I'll play with that, thanks, it might be good to have cycle_timeout configurable in avocado config.<div><br></div><div>-</div><div>Vincent</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 3:35 AM, Lukáš Doktor <span dir="ltr"><<a href="mailto:ldoktor@redhat.com" target="_blank">ldoktor@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dne 25.3.2017 v 18:38 Vincent Matossian napsal(a):<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I intermittently see tests erroring out with reason<br>
<br>
"fail_reason": "Test reported status but did not finish"<br>
<br>
Unfortunately I don't have a reliable reproduction case, but was<br>
wondering if it was a known issue?<br>
<br>
I didn't deep dive in the code but looking at avocado/core/runner.py's<br>
run_test method, could it be that the queue ends up empty before the<br>
process is actually deemed gone?<br>
<br>
wait.wait_for(lambda: not queue.empty() or not proc.is_alive(),<br>
cycle_timeout, first, step)<br>
<br>
Any thoughts?<br>
<br>
Thanks<br>
<br>
Vincent<br>
<br>
</blockquote>
<br></div></div>
Dear Vincent,<br>
<br>
the description says it all, the test process reported the status:<br>
<br>
    avocado.core.runner:L323<br>
    queue.put(state)<br>
<br>
but then the process did not finish, which could be because:<br>
<br>
1. the machine is too busy, timeout is 2s<br>
2. the test spawned some threads/processes which prevent it from finishing<br>
<br>
Do you also get the "Killing hanged test process ..." messages in the main `job.log`? If not it's likely the (1), otherwise it could be any of those.<br>
<br>
Perhaps you could try increasing the timeout in:<br>
<br>
    avocado.core.runner:L437<br>
    test_state = test_status.finish(proc, time_started, cycle_timeout,<br>
<br>
replace the `cycle_timeout` with a number, I'd go with 10s or so and let us know whether it solved your issue. We can be probably a bit more lenient...<span class="HOEnZb"><font color="#888888"><br>
<br>
Lukáš<br>
<br>
</font></span></blockquote></div><br></div>