Bug 188160 - server_process.py should print returncode in debug log if the process crashed
Summary: server_process.py should print returncode in debug log if the process crashed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks: 188036
  Show dependency treegraph
 
Reported: 2018-07-30 02:38 PDT by Fujii Hironori
Modified: 2018-08-01 18:27 PDT (History)
9 users (show)

See Also:


Attachments
Patch (1.52 KB, patch)
2018-07-30 02:41 PDT, Fujii Hironori
Hironori.Fujii: review-
Details | Formatted Diff | Diff
Patch (1.48 KB, patch)
2018-07-31 06:22 PDT, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2018-07-30 02:38:06 PDT
server_process.py should print returncode in debug log if the process crashed
Comment 1 Fujii Hironori 2018-07-30 02:41:43 PDT
Created attachment 346056 [details]
Patch
Comment 2 Fujii Hironori 2018-07-30 18:17:31 PDT
Hi Jonathan, could you review this patch. You seems the best person because you did Bug 160943.
Comment 3 Konstantin Tokarev 2018-07-31 06:10:05 PDT
Comment on attachment 346056 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346056&action=review

> Tools/Scripts/webkitpy/port/server_process.py:326
> +            _log.debug('This test marked as a crash because of failure to poll the server process. (returncode %s)' % self._proc.returncode)

I think it should say 'This test marked as a crash because of failure to poll the server process (return code was %).'
Comment 4 Fujii Hironori 2018-07-31 06:19:26 PDT
Comment on attachment 346056 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346056&action=review

Thank you for the review.

>> Tools/Scripts/webkitpy/port/server_process.py:326
>> +            _log.debug('This test marked as a crash because of failure to poll the server process. (returncode %s)' % self._proc.returncode)
> 
> I think it should say 'This test marked as a crash because of failure to poll the server process (return code was %).'

Make sense. Will Fix.
Comment 5 Fujii Hironori 2018-07-31 06:22:44 PDT
Created attachment 346162 [details]
Patch

* Addressed the review feedback.
Comment 6 WebKit Commit Bot 2018-07-31 11:07:38 PDT
Comment on attachment 346162 [details]
Patch

Clearing flags on attachment: 346162

Committed r234430: <https://trac.webkit.org/changeset/234430>
Comment 7 WebKit Commit Bot 2018-07-31 11:07:39 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-07-31 11:12:12 PDT
<rdar://problem/42779206>
Comment 9 Jonathan Bedard 2018-08-01 09:40:27 PDT
I think this is/was a good idea, but I want to make sure that you're aware of a notable limitation: If we're controlling a device (iOS Simulator is the most notable example of this) we don't have a 'real' Popen object and can't determine what the actual return code is, in which case we will assign a returncode of 1.
Comment 10 Fujii Hironori 2018-08-01 18:27:12 PDT
Thank you for the feedback. I didn't know that. I will check it.