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

Issue 755323012: [Telemetry] Stop execution for unexpected exceptions (Closed)

Created:
6 years ago by slamm
Modified:
6 years ago
Reviewers:
nednguyen, chrishenry
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Stop execution for unexpected exceptions like KeyboardInterrupt... We "white list" some exceptions which user story runner can continue running the rest of user stories even if they are raised during the test run. Those exceptions are: page_test.Failure util.TimeoutException exceptions.LoginException exceptions.ProfilingException page_action.PageActionNotSupported exceptions.AppCrashException (except if this is thrown inside shared_user_story_state.state.TearDownState(), which indicates a failure of recovering the test state) BUG=437735 Committed: https://crrev.com/68084e84746b6eebd9103be0f441c4e6441fbd15 Cr-Commit-Position: refs/heads/master@{#308258}

Patch Set 1 #

Patch Set 2 : Return TracingTimelineData without events #

Patch Set 3 : Handle multiple exceptions #

Patch Set 4 : another iteration #

Total comments: 6

Patch Set 5 : Handle AppGoneException without additional member in shared_user_story_state. #

Patch Set 6 : Tweak style. #

Patch Set 7 : Rebase #

Total comments: 15

Patch Set 8 : Add tests. Address review comments. #

Total comments: 2

Patch Set 9 : Address review comments #

Patch Set 10 : Tweak text #

Patch Set 11 : Tweak more text #

Patch Set 12 : Fix failing unit test. #

Patch Set 13 : Fix another unit test by merging recent changes to new code. #

Patch Set 14 : Fix unit tests on Linux #

Total comments: 2

Patch Set 15 : Really fix screenshot exception. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -63 lines) Patch
M tools/perf/measurements/rasterize_and_record_micro_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/measurements/screenshot.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/measurements/screenshot_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -3 lines 0 comments Download
M tools/perf/measurements/smoothness_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -2 lines 0 comments Download
M tools/telemetry/telemetry/benchmark.py View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/page/page_test.py View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -9 lines 0 comments Download
M tools/telemetry/telemetry/page/page_test_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/unittest_util/page_test_test_case.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/user_story/user_story_runner.py View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +60 lines, -28 lines 0 comments Download
M tools/telemetry/telemetry/user_story/user_story_runner_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +52 lines, -13 lines 0 comments Download

Messages

Total messages: 53 (13 generated)
slamm
Is it possible to return None from StopTracing?
6 years ago (2014-12-02 00:27:51 UTC) #1
slamm
Return TracingTimelineData without events
6 years ago (2014-12-02 00:39:19 UTC) #2
nednguyen
On 2014/12/02 00:39:19, slamm wrote: > Return TracingTimelineData without events It seems to me that ...
6 years ago (2014-12-02 01:45:33 UTC) #3
slamm
Handle multiple exceptions
6 years ago (2014-12-03 23:45:46 UTC) #4
slamm
another iteration
6 years ago (2014-12-04 00:05:00 UTC) #5
nednguyen
6 years ago (2014-12-04 04:51:24 UTC) #7
nednguyen
https://codereview.chromium.org/755323012/diff/60001/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py (right): https://codereview.chromium.org/755323012/diff/60001/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py#newcode313 tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py:313: return tracing_timeline_data.TracingTimelineData(event_data) Can you drop this change? If browser ...
6 years ago (2014-12-04 05:05:08 UTC) #8
slamm
Handle AppGoneException without additional member in shared_user_story_state.
6 years ago (2014-12-04 17:38:44 UTC) #9
slamm
Tweak style.
6 years ago (2014-12-04 17:48:01 UTC) #10
slamm
I could write a context manager to handle the extra try-except blocks. However, I am ...
6 years ago (2014-12-04 17:57:45 UTC) #11
slamm
Rebase
6 years ago (2014-12-04 18:43:37 UTC) #12
chrishenry
On 2014/12/04 17:57:45, slamm wrote: > I could write a context manager to handle the ...
6 years ago (2014-12-05 01:47:23 UTC) #13
chrishenry
https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py File tools/telemetry/telemetry/user_story/user_story_runner.py (left): https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py#oldcode89 tools/telemetry/telemetry/user_story/user_story_runner.py:89: nit: Please re-add this blank line. https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py#oldcode99 tools/telemetry/telemetry/user_story/user_story_runner.py:99: raise ...
6 years ago (2014-12-05 01:57:02 UTC) #14
slamm
Ned asked me to make this a priority (over PageTest use in user_story_runner). https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py File ...
6 years ago (2014-12-12 00:48:49 UTC) #15
chrishenry
lgtm, but please wait for Ned. https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py File tools/telemetry/telemetry/user_story/user_story_runner.py (left): https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py#oldcode99 tools/telemetry/telemetry/user_story/user_story_runner.py:99: raise On 2014/12/12 ...
6 years ago (2014-12-12 00:59:25 UTC) #16
nednguyen
https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py File tools/telemetry/telemetry/user_story/user_story_runner.py (left): https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py#oldcode99 tools/telemetry/telemetry/user_story/user_story_runner.py:99: raise On 2014/12/12 00:59:25, chrishenry wrote: > On 2014/12/12 ...
6 years ago (2014-12-12 03:03:24 UTC) #17
nednguyen
LGTM with nits
6 years ago (2014-12-12 03:04:05 UTC) #18
nednguyen
On 2014/12/12 03:04:05, nednguyen wrote: > LGTM with nits I also updated the description a ...
6 years ago (2014-12-12 03:13:26 UTC) #19
slamm
Review comments
6 years ago (2014-12-12 18:40:56 UTC) #20
slamm
comment tweaks
6 years ago (2014-12-12 18:47:33 UTC) #21
slamm
Another comment tweak
6 years ago (2014-12-12 18:58:34 UTC) #22
slamm
Ready to go. https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py File tools/telemetry/telemetry/user_story/user_story_runner.py (left): https://codereview.chromium.org/755323012/diff/120001/tools/telemetry/telemetry/user_story/user_story_runner.py#oldcode99 tools/telemetry/telemetry/user_story/user_story_runner.py:99: raise On 2014/12/12 03:03:23, nednguyen wrote: ...
6 years ago (2014-12-12 19:00:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/200001
6 years ago (2014-12-12 19:08:56 UTC) #25
slamm
On 2014/12/12 19:08:56, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years ago (2014-12-12 20:05:55 UTC) #27
slamm
Raise a Failure to have it caught
6 years ago (2014-12-12 20:12:05 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/220001
6 years ago (2014-12-12 20:13:47 UTC) #30
slamm
Use DummyLocalUserSTory for app crash test.
6 years ago (2014-12-12 22:16:13 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/240001
6 years ago (2014-12-12 22:18:08 UTC) #33
slamm
Fix unit tests on Linux
6 years ago (2014-12-13 00:02:14 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/260001
6 years ago (2014-12-13 00:03:49 UTC) #36
nednguyen
https://codereview.chromium.org/755323012/diff/260001/tools/perf/measurements/smoothness_unittest.py File tools/perf/measurements/smoothness_unittest.py (right): https://codereview.chromium.org/755323012/diff/260001/tools/perf/measurements/smoothness_unittest.py#newcode178 tools/perf/measurements/smoothness_unittest.py:178: except exceptions.IntentionalException: I am pretty sure that this is ...
6 years ago (2014-12-13 00:20:23 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/260001
6 years ago (2014-12-13 00:29:48 UTC) #40
nednguyen
https://codereview.chromium.org/755323012/diff/260001/tools/perf/measurements/smoothness_unittest.py File tools/perf/measurements/smoothness_unittest.py (right): https://codereview.chromium.org/755323012/diff/260001/tools/perf/measurements/smoothness_unittest.py#newcode178 tools/perf/measurements/smoothness_unittest.py:178: except exceptions.IntentionalException: On 2014/12/13 00:20:23, nednguyen wrote: > I ...
6 years ago (2014-12-13 00:33:12 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/260001
6 years ago (2014-12-13 00:34:50 UTC) #44
slamm
Really fix screenshot exception.
6 years ago (2014-12-13 01:22:25 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/280001
6 years ago (2014-12-13 01:25:04 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/14518)
6 years ago (2014-12-13 04:33:34 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755323012/280001
6 years ago (2014-12-13 07:04:42 UTC) #51
commit-bot: I haz the power
Committed patchset #15 (id:280001)
6 years ago (2014-12-13 08:13:46 UTC) #52
commit-bot: I haz the power
6 years ago (2014-12-13 08:14:24 UTC) #53
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/68084e84746b6eebd9103be0f441c4e6441fbd15
Cr-Commit-Position: refs/heads/master@{#308258}

Powered by Google App Engine
This is Rietveld 408576698