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 1124543006: Telemetry: Update exception handling in FastNavigationProfileExtender. (Closed)

Created:
5 years, 7 months ago by erikchen
Modified:
5 years, 7 months ago
Reviewers:
nednguyen, dtu
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Telemetry: Update exception handling in FastNavigationProfileExtender. When FastNavigationProfileExtender was first written, it was intended to navigate to the top 10,000 sites in Alexa. Many of these sites would fail to load for unexpected reasons. Furthermore, the exceptions raised by Telemetry when these errors occured were frequently less than useful. As a result, FastNavigationProfileExtender was catching many fatal exceptions but treating them as non-fatal exceptions. When FastNavigationProfileExtender is used on Windows, and Chrome crashes in a way that invokes the Windows Error dialog, attempts by Telemetry to communicate with the crashed instance of Chrome can cause Python to stall. I did not investigate the details, but I suspect this is related to the implementation of the thirdparty websocket library that Telemetry uses. This CL makes the FastNavigationProfileExtender treat fatal exceptions appropriately, instead of ignoring them. BUG=477375 Committed: https://crrev.com/b07222926f5b8cb3f43cd57ff22c87772a6cac64 Cr-Commit-Position: refs/heads/master@{#329488}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 11

Patch Set 4 : Comments from nednguyen, dtu. #

Total comments: 11

Patch Set 5 : Comments from nednguyen. #

Patch Set 6 : Comments from nednguyen. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -62 lines) Patch
M tools/perf/profile_creators/fast_navigation_profile_extender.py View 1 2 3 4 5 9 chunks +70 lines, -62 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
erikchen
dtu: Please review. https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode55 tools/perf/profile_creators/fast_navigation_profile_extender.py:55: self.VerifyProfileWasExtended() I'm intentionally omitting my implementation ...
5 years, 7 months ago (2015-05-05 22:16:46 UTC) #2
erikchen
On 2015/05/05 22:16:46, erikchen wrote: > dtu: Please review. > > https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py > File tools/perf/profile_creators/fast_navigation_profile_extender.py ...
5 years, 7 months ago (2015-05-07 21:15:15 UTC) #3
dtu
In the past, when we've had stalling behavior, it was generally because a timeout was ...
5 years, 7 months ago (2015-05-07 21:50:36 UTC) #4
nednguyen
https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode55 tools/perf/profile_creators/fast_navigation_profile_extender.py:55: self.VerifyProfileWasExtended() On 2015/05/05 22:16:45, erikchen wrote: > I'm intentionally ...
5 years, 7 months ago (2015-05-07 22:39:20 UTC) #6
erikchen
dtu, nednguyen: PTAL https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode55 tools/perf/profile_creators/fast_navigation_profile_extender.py:55: self.VerifyProfileWasExtended() On 2015/05/07 22:39:20, nednguyen wrote: ...
5 years, 7 months ago (2015-05-08 19:47:58 UTC) #8
erikchen
On 2015/05/08 19:47:58, erikchen wrote: > dtu, nednguyen: PTAL > > https://codereview.chromium.org/1124543006/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py > File tools/perf/profile_creators/fast_navigation_profile_extender.py ...
5 years, 7 months ago (2015-05-12 00:36:47 UTC) #9
nednguyen
https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode89 tools/perf/profile_creators/fast_navigation_profile_extender.py:89: def _AddNewTab(self): The content of this method can just ...
5 years, 7 months ago (2015-05-12 16:07:43 UTC) #10
erikchen
nednguyen: PTAL https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode89 tools/perf/profile_creators/fast_navigation_profile_extender.py:89: def _AddNewTab(self): On 2015/05/12 16:07:43, nednguyen (slow ...
5 years, 7 months ago (2015-05-12 18:43:49 UTC) #11
nednguyen
lgtm https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode129 tools/perf/profile_creators/fast_navigation_profile_extender.py:129: if seconds_to_wait <= 0: On 2015/05/12 18:43:48, erikchen ...
5 years, 7 months ago (2015-05-12 19:37:57 UTC) #12
erikchen
https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/1124543006/diff/80001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode141 tools/perf/profile_creators/fast_navigation_profile_extender.py:141: def _WaitForTabToBeReady(self, tab, end_time): On 2015/05/12 19:37:57, nednguyen (slow ...
5 years, 7 months ago (2015-05-12 19:44:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124543006/120001
5 years, 7 months ago (2015-05-12 19:45:23 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 7 months ago (2015-05-12 21:08:48 UTC) #17
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 21:11:04 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b07222926f5b8cb3f43cd57ff22c87772a6cac64
Cr-Commit-Position: refs/heads/master@{#329488}

Powered by Google App Engine
This is Rietveld 408576698