Bug 69938

Summary: stop spamming 'stopping test driver timed out, killing it' when running rwt
Product: WebKit Reporter: Tony Chang <tony>
Component: New BugsAssignee: Tony Chang <tony>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dpranke, thestig, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing none

Tony Chang
Reported 2011-10-12 10:02:44 PDT
stop spamming 'stopping test driver timed out, killing it' when running rwt
Attachments
Patch (1.95 KB, patch)
2011-10-12 10:04 PDT, Tony Chang
no flags
Patch (2.32 KB, patch)
2011-10-12 10:09 PDT, Tony Chang
no flags
Patch for landing (2.27 KB, patch)
2011-10-12 11:11 PDT, Tony Chang
no flags
Tony Chang
Comment 1 2011-10-12 10:04:48 PDT
Tony Chang
Comment 2 2011-10-12 10:05:12 PDT
Comment on attachment 110694 [details] Patch Oh, I have a better idea.
Tony Chang
Comment 3 2011-10-12 10:09:40 PDT
Dirk Pranke
Comment 4 2011-10-12 10:44:36 PDT
Comment on attachment 110695 [details] Patch So the intent is to give wait half as long as the default timeout, right? options.time_out_ms is always non-zero (see run_webkit_tests.py:139). You could just as easily do: kill_timeout_seconds = self._port.get_option('time_out_ms') / 2000.
Tony Chang
Comment 5 2011-10-12 10:56:00 PDT
(In reply to comment #4) > (From update of attachment 110695 [details]) > So the intent is to give wait half as long as the default timeout, right? I was trying to wait 3 sec by default, regardless of what the default timeout is.
Dirk Pranke
Comment 6 2011-10-12 11:01:33 PDT
(In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 110695 [details] [details]) > > So the intent is to give wait half as long as the default timeout, right? > > I was trying to wait 3 sec by default, regardless of what the default timeout is. I see. Well, the 'else' branch won't ever execute, because of the previously cited code, so I don't think you can easily get that behavior. Per the discussion in bug 68026, it seems to me like half of the timeout value is a reasonable heuristic to use, though.
Tony Chang
Comment 7 2011-10-12 11:11:49 PDT
Created attachment 110708 [details] Patch for landing
Tony Chang
Comment 8 2011-10-12 11:14:03 PDT
(In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > (From update of attachment 110695 [details] [details] [details]) > > > So the intent is to give wait half as long as the default timeout, right? > > > > I was trying to wait 3 sec by default, regardless of what the default timeout is. > > I see. Well, the 'else' branch won't ever execute, because of the previously cited code, so I don't think you can easily get that behavior. Per the discussion in bug 68026, it seems to me like half of the timeout value is a reasonable heuristic to use, though. I've removed the else branch, but don't understand what you mean by not being able to easily get the behavior of defaulting to 3 sec. Any value for Manager.DEFAULT_TEST_TIMEOUT_MS should give us a 3 sec timeout.
Dirk Pranke
Comment 9 2011-10-12 11:21:53 PDT
(In reply to comment #8) > (In reply to comment #6) > > (In reply to comment #5) > > > (In reply to comment #4) > > > > (From update of attachment 110695 [details] [details] [details] [details]) > > > > So the intent is to give wait half as long as the default timeout, right? > > > > > > I was trying to wait 3 sec by default, regardless of what the default timeout is. > > > > I see. Well, the 'else' branch won't ever execute, because of the previously cited code, so I don't think you can easily get that behavior. Per the discussion in bug 68026, it seems to me like half of the timeout value is a reasonable heuristic to use, though. > > I've removed the else branch, but don't understand what you mean by not being able to easily get the behavior of defaulting to 3 sec. Any value for Manager.DEFAULT_TEST_TIMEOUT_MS should give us a 3 sec timeout. Oh, sorry, I think I was parsing your sentence differently. I was interpreting you to be saying that you wanted the kill value to default to 3 seconds regardless of whether someone had passed in a value via --time-out-ms, and I was saying that there was no way for you to tell if someone had used the command line switch or not. Of course, you couldn't have wanted that behavior, since the whole point of the prior change was to scale the kill value to the flag, and there isn't a way to specify the value directly, so fixing at that 3 seconds "by default" wouldn't have made sense. My mistake. And you are correct that kill_timeout will be set to 3 regardless of the value of Manager.DEFAULT_TEST_TIMEOUT_MS.
WebKit Review Bot
Comment 10 2011-10-12 13:24:02 PDT
Comment on attachment 110708 [details] Patch for landing Clearing flags on attachment: 110708 Committed r97293: <http://trac.webkit.org/changeset/97293>
WebKit Review Bot
Comment 11 2011-10-12 13:24:06 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.