Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(47)

Issue 1169433005: Try Yet Again to handle the output we get from android in run-webkit-tests. (Closed)

Created:
4 years, 11 months ago by Dirk Pranke
Modified:
4 years, 11 months ago
CC:
blink-reviews, Ken Russell (switch to Gerrit), jochen (gone - plz use gerrit), jsbell
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Try Yet Again to handle the output we get from android in run-webkit-tests. We're seeing more crashes logging debug output (adb logcat) on the bots. We had been assuming that the stdout and stderr from the subprocess were regular binary pipes, but it turns out the android port (and only the android port) was actually setting universal_newlines=True when launching the subprocess (this is apparently needed because 'adb shell' does implicit linefeed conversion). This has the nasty side effect of making the file objects unicode instead of bytestrs, which was causing us to crash down the road when we tried to .decode('ascii') a unicode string (.decode() only works on bytes). This patch fixes the bug and adds some more assertions and comments. R=peter@chromium.org, wangxianzhu@chromium.org, joelo@chromium.org BUG=386343, 496983 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196605

Patch Set 1 : patch for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -3 lines) Patch
M Tools/Scripts/webkitpy/layout_tests/port/android.py View 2 chunks +14 lines, -1 line 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 chunk +13 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Dirk Pranke
Joel, please tell me if this change is relatively understandable to someone new to the ...
4 years, 11 months ago (2015-06-05 01:47:56 UTC) #4
leviw_travelin_and_unemployed
On 2015/06/05 at 01:47:56, dpranke wrote: > Joel, please tell me if this change is ...
4 years, 11 months ago (2015-06-05 03:04:17 UTC) #5
Xianzhu
lgtm. I vaguely remember zhenghao@ ever put encode('utf8') somewhere perhaps to fix a similar issue ...
4 years, 11 months ago (2015-06-05 04:15:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169433005/40001
4 years, 11 months ago (2015-06-05 19:43:43 UTC) #8
joelo
lgtm dpranke@: Yup, looks grokkable to me. Thanks!!
4 years, 11 months ago (2015-06-05 20:37:17 UTC) #9
Ken Russell (switch to Gerrit)
Very nice diagnosis Dirk. LGTM FWIW.
4 years, 11 months ago (2015-06-05 20:57:54 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2015-06-05 21:07:50 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196605

Powered by Google App Engine
This is Rietveld 408576698