Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Issue 1635903003: [Devil] Add timeout to logcat record thread join. (Closed)

Created:
4 years, 11 months ago by mikecase (-- gone --)
Modified:
4 years, 11 months ago
Reviewers:
jbudorick
CC:
catapult-reviews_chromium.org
Base URL:
https://github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Devil] Add timeout to logcat record thread join. Currently, the logcat monitor thread can hang if nothing is being output by adb logcat after you try to join the recorder thread. Adding timeout to join to prevent the thread from hanging for too long. Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/030581d641bc56121c37b89f91bda25c4bc0b94f

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix syntax error. #

Total comments: 2

Patch Set 4 : Add timeout to join. #

Total comments: 13

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -20 lines) Patch
M devil/devil/android/logcat_monitor.py View 1 2 3 4 5 7 chunks +26 lines, -20 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
mikecase (-- gone --)
Do you have any ideas for a better solution than this. "for data in self._adb.Logcat" ...
4 years, 11 months ago (2016-01-26 19:13:31 UTC) #2
mikecase (-- gone --)
On 2016/01/26 at 19:13:31, mikecase wrote: > Do you have any ideas for a better ...
4 years, 11 months ago (2016-01-26 19:16:10 UTC) #3
jbudorick
On 2016/01/26 19:13:31, mikecase wrote: > Do you have any ideas for a better solution ...
4 years, 11 months ago (2016-01-26 19:18:04 UTC) #4
jbudorick
On 2016/01/26 19:16:10, mikecase wrote: > On 2016/01/26 at 19:13:31, mikecase wrote: > > Do ...
4 years, 11 months ago (2016-01-26 19:18:41 UTC) #5
mikecase (-- gone --)
On 2016/01/26 at 19:18:41, jbudorick wrote: > On 2016/01/26 19:16:10, mikecase wrote: > > On ...
4 years, 11 months ago (2016-01-26 23:03:10 UTC) #6
jbudorick
https://codereview.chromium.org/1635903003/diff/40001/devil/devil/android/logcat_monitor.py File devil/devil/android/logcat_monitor.py (right): https://codereview.chromium.org/1635903003/diff/40001/devil/devil/android/logcat_monitor.py#newcode160 devil/devil/android/logcat_monitor.py:160: @decorators.WithExplicitTimeoutAndRetries( This decorator is here to check a condition ...
4 years, 11 months ago (2016-01-26 23:13:19 UTC) #7
jbudorick
https://codereview.chromium.org/1635903003/diff/40001/devil/devil/android/logcat_monitor.py File devil/devil/android/logcat_monitor.py (right): https://codereview.chromium.org/1635903003/diff/40001/devil/devil/android/logcat_monitor.py#newcode160 devil/devil/android/logcat_monitor.py:160: @decorators.WithExplicitTimeoutAndRetries( On 2016/01/26 23:13:19, jbudorick wrote: > This decorator ...
4 years, 11 months ago (2016-01-26 23:32:37 UTC) #8
mikecase (-- gone --)
I think this is a pretty good fix. PTAL https://codereview.chromium.org/1635903003/diff/60001/devil/devil/android/logcat_monitor.py File devil/devil/android/logcat_monitor.py (right): https://codereview.chromium.org/1635903003/diff/60001/devil/devil/android/logcat_monitor.py#newcode157 devil/devil/android/logcat_monitor.py:157: ...
4 years, 11 months ago (2016-01-27 02:43:48 UTC) #9
jbudorick
race race race https://codereview.chromium.org/1635903003/diff/60001/devil/devil/android/logcat_monitor.py File devil/devil/android/logcat_monitor.py (right): https://codereview.chromium.org/1635903003/diff/60001/devil/devil/android/logcat_monitor.py#newcode165 devil/devil/android/logcat_monitor.py:165: self._record_file.write(data + '\n') This should now ...
4 years, 11 months ago (2016-01-27 16:17:37 UTC) #10
mikecase (-- gone --)
The join is no longer in a lock like you suggested. (which could have made ...
4 years, 11 months ago (2016-01-27 18:13:48 UTC) #13
jbudorick
Are any of the logcat monitor tests affected by this? https://codereview.chromium.org/1635903003/diff/80001/devil/devil/android/logcat_monitor.py File devil/devil/android/logcat_monitor.py (right): https://codereview.chromium.org/1635903003/diff/80001/devil/devil/android/logcat_monitor.py#newcode200 ...
4 years, 11 months ago (2016-01-27 18:15:33 UTC) #14
mikecase (-- gone --)
No tests are effected by this change. https://codereview.chromium.org/1635903003/diff/80001/devil/devil/android/logcat_monitor.py File devil/devil/android/logcat_monitor.py (right): https://codereview.chromium.org/1635903003/diff/80001/devil/devil/android/logcat_monitor.py#newcode200 devil/devil/android/logcat_monitor.py:200: with self._record_file_lock: ...
4 years, 11 months ago (2016-01-27 18:21:02 UTC) #15
jbudorick
lgtm
4 years, 11 months ago (2016-01-27 18:32:40 UTC) #16
jbudorick
On 2016/01/27 18:32:40, jbudorick wrote: > lgtm be sure to port this to chromium plz
4 years, 11 months ago (2016-01-27 18:32:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1635903003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1635903003/100001
4 years, 11 months ago (2016-01-27 18:40:46 UTC) #19
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 18:53:14 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698