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

Issue 694893004: telemetry: Report error correctly on connection timeout (Closed)

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

Description

telemetry: Report error correctly on connection timeout When we hit the 30s timeout, we would continue to run the test, then report a success, then attempt to dump the stdio and stacktrace. Instead re-raise the exception and remove the finally block to stop the test from going through its paces BUG=424024 Committed: https://crrev.com/2a25d5052fa4be1c9930775ac792ec53af13a4e5 Cr-Commit-Position: refs/heads/master@{#302577}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Continue to run on a browser timeout but report as failed #

Total comments: 1

Patch Set 3 : Added unit test and addressed review comments #

Total comments: 1

Patch Set 4 : Shorten the function name #

Patch Set 5 : remove unused vars #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
M tools/telemetry/telemetry/page/page_runner.py View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/page/page_runner_unittest.py View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
hendrikw
PTAL - keep in mind my python knowledge is zero :) Thanks!
6 years, 1 month ago (2014-10-31 22:53:06 UTC) #2
Ken Russell (switch to Gerrit)
CC'ing others. What's the behavioral change here? Does it abort the test run if an ...
6 years, 1 month ago (2014-10-31 23:11:04 UTC) #3
hendrikw
On 2014/10/31 23:11:04, Ken Russell wrote: > CC'ing others. > > What's the behavioral change ...
6 years, 1 month ago (2014-10-31 23:34:50 UTC) #4
hendrikw
> (in the finalize). I guess it's actually at the top of the loop. No ...
6 years, 1 month ago (2014-10-31 23:36:38 UTC) #5
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/694893004/diff/1/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/694893004/diff/1/tools/telemetry/telemetry/page/page_runner.py#newcode399 tools/telemetry/telemetry/page/page_runner.py:399: raise Per our offline discussion: I think it would ...
6 years, 1 month ago (2014-10-31 23:44:02 UTC) #6
ernstm
Ned has recently tried to remove the retries entirely. He would be the best reviewer ...
6 years, 1 month ago (2014-11-01 00:04:44 UTC) #8
nednguyen
https://codereview.chromium.org/694893004/diff/1/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/694893004/diff/1/tools/telemetry/telemetry/page/page_runner.py#newcode394 tools/telemetry/telemetry/page/page_runner.py:394: try: try: DoX() except: raise Why not just DoX()? ...
6 years, 1 month ago (2014-11-03 16:42:54 UTC) #9
hendrikw
We are now reporting these tests as failed if we don't connect to the browser, ...
6 years, 1 month ago (2014-11-03 17:27:12 UTC) #10
Ken Russell (switch to Gerrit)
On 2014/11/03 16:42:54, nednguyen wrote: > Restarting the browser does affect performance characteristics of subsequent ...
6 years, 1 month ago (2014-11-03 17:35:58 UTC) #11
nednguyen
Yes, correct error reporting is the right thing. Can you add unittest to verify this ...
6 years, 1 month ago (2014-11-03 17:39:27 UTC) #12
hendrikw
Hi, PTAL Added the unittest to test this failure + extra unit test for a ...
6 years, 1 month ago (2014-11-03 23:11:25 UTC) #13
Ken Russell (switch to Gerrit)
LGTM again -- tests look good. https://codereview.chromium.org/694893004/diff/40001/tools/telemetry/telemetry/page/page_runner_unittest.py File tools/telemetry/telemetry/page/page_runner_unittest.py (right): https://codereview.chromium.org/694893004/diff/40001/tools/telemetry/telemetry/page/page_runner_unittest.py#newcode191 tools/telemetry/telemetry/page/page_runner_unittest.py:191: def testHandlingOfTestThatRaisesBrowserGoneExceptionFromRestartBrowserBeforeEachPage(self): That's ...
6 years, 1 month ago (2014-11-03 23:20:23 UTC) #14
nednguyen
LGTM, please find a better naming for the tests as Ken suggests.
6 years, 1 month ago (2014-11-04 00:00:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694893004/60001
6 years, 1 month ago (2014-11-04 00:22:45 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21927)
6 years, 1 month ago (2014-11-04 00:31:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694893004/80001
6 years, 1 month ago (2014-11-04 01:14:20 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-04 05:56:51 UTC) #22
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 05:57:38 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2a25d5052fa4be1c9930775ac792ec53af13a4e5
Cr-Commit-Position: refs/heads/master@{#302577}

Powered by Google App Engine
This is Rietveld 408576698