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

Issue 1376473006: Associate threads in reraiser_thread.RunAsync with the calling ThreadGroup (Closed)

Created:
5 years, 2 months ago by agrieve
Modified:
5 years, 2 months ago
Reviewers:
jbudorick
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Associate threads in reraiser_thread.RunAsync with the calling ThreadGroup This mainly affects devil.android.decorators. Before the change a decorated method called by a RunAsync thread would have a separate timeout created for it. With this change, methods within RunAsync detect that there already exists an outer timeout thread, and do not have a separate timeout applied to them. BUG= Committed: https://crrev.com/1ddba0da5c8684a016f0ff853614d1dd6d9d178e Cr-Commit-Position: refs/heads/master@{#351947}

Patch Set 1 #

Total comments: 13

Patch Set 2 : added a will_block #

Patch Set 3 : add Exception to exepct #

Patch Set 4 : rebase due to patch failure on win bot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -97 lines) Patch
M build/android/PRESUBMIT.py View 1 chunk +1 line, -0 lines 0 comments Download
M build/android/devil/android/decorators.py View 2 chunks +2 lines, -3 lines 0 comments Download
M build/android/devil/android/sdk/adb_wrapper.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/devil/utils/reraiser_thread.py View 9 chunks +65 lines, -28 lines 0 comments Download
M build/android/devil/utils/timeout_retry.py View 1 2 5 chunks +53 lines, -53 lines 0 comments Download
M build/android/devil/utils/timeout_retry_unittest.py View 2 chunks +37 lines, -12 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (11 generated)
agrieve
On 2015/10/01 14:58:41, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:jbudorick@chromium.org plz review. Tested ...
5 years, 2 months ago (2015-10-01 14:59:24 UTC) #2
jbudorick
https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/reraiser_thread.py File build/android/devil/utils/reraiser_thread.py (right): https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/reraiser_thread.py#newcode124 build/android/devil/utils/reraiser_thread.py:124: self.blocked_parent_thread_group = CurrentThreadGroup() sanity check: calling CurrentThreadGroup() here should ...
5 years, 2 months ago (2015-10-01 19:28:45 UTC) #3
agrieve
https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/reraiser_thread.py File build/android/devil/utils/reraiser_thread.py (right): https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/reraiser_thread.py#newcode124 build/android/devil/utils/reraiser_thread.py:124: self.blocked_parent_thread_group = CurrentThreadGroup() On 2015/10/01 19:28:44, jbudorick wrote: > ...
5 years, 2 months ago (2015-10-01 19:44:28 UTC) #4
jbudorick
lgtm w/ nits https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/timeout_retry.py File build/android/devil/utils/timeout_retry.py (right): https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/timeout_retry.py#newcode158 build/android/devil/utils/timeout_retry.py:158: thread_group.StartAll() On 2015/10/01 19:44:27, agrieve wrote: ...
5 years, 2 months ago (2015-10-01 20:37:13 UTC) #5
agrieve
https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/timeout_retry.py File build/android/devil/utils/timeout_retry.py (right): https://codereview.chromium.org/1376473006/diff/1/build/android/devil/utils/timeout_retry.py#newcode167 build/android/devil/utils/timeout_retry.py:167: # Timeouts already get their stacks logged. On 2015/10/01 ...
5 years, 2 months ago (2015-10-02 00:19:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376473006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376473006/20001
5 years, 2 months ago (2015-10-02 00:20:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376473006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376473006/40001
5 years, 2 months ago (2015-10-02 00:25:27 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/90636)
5 years, 2 months ago (2015-10-02 00:34:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376473006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376473006/40001
5 years, 2 months ago (2015-10-02 01:08:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376473006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376473006/60001
5 years, 2 months ago (2015-10-02 01:11:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/115503)
5 years, 2 months ago (2015-10-02 01:21:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376473006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376473006/60001
5 years, 2 months ago (2015-10-02 02:22:30 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-02 03:09:10 UTC) #24
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 03:09:48 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1ddba0da5c8684a016f0ff853614d1dd6d9d178e
Cr-Commit-Position: refs/heads/master@{#351947}

Powered by Google App Engine
This is Rietveld 408576698