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

Issue 100443007: telemetry: handle tests that are not supported on a platform. (Closed)

Created:
7 years ago by ernstm
Modified:
6 years, 8 months ago
Reviewers:
dtu, vmpstr, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

telemetry: handle tests that are not supported on a platform. When a test or measurement was not supported on a platform, we used to print a warning and call sys.exit(0). This caused problems with unittests, because it was considered a failure (for page measurements it was not a failure). This patch introduces the page_test.TestNotSupportedOnPlatformFailure exception. Tests and measurements throw this exception if they can't run on a platform. PageTestRunner and unit tests catch these exceptions and print a warning, but they don't consider it an error. R=tonyg@chromium.org, dtu@chromium.org, vmpstr@chromium.org BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260475

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase and fixes for run_benchmark case. #

Total comments: 3

Patch Set 3 : Removed comments #

Total comments: 6

Patch Set 4 : Clean-ups #

Patch Set 5 : Catch new exception in TestTracingCleanedUp. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -16 lines) Patch
M tools/perf/measurements/rasterize_and_record.py View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M tools/perf/measurements/rasterize_and_record_micro.py View 1 2 4 chunks +7 lines, -6 lines 0 comments Download
M tools/perf/measurements/rasterize_and_record_micro_unittest.py View 1 2 chunks +9 lines, -1 line 0 comments Download
M tools/perf/measurements/rasterize_and_record_unittest.py View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/page/page_measurement_unittest_base.py View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/page/page_runner.py View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/page_test.py View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/page_test_runner.py View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/test.py View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
dtu
https://codereview.chromium.org/100443007/diff/1/tools/telemetry/telemetry/page/page_test_runner.py File tools/telemetry/telemetry/page/page_test_runner.py (right): https://codereview.chromium.org/100443007/diff/1/tools/telemetry/telemetry/page/page_test_runner.py#newcode45 tools/telemetry/telemetry/page/page_test_runner.py:45: except page_test_module.TestNotSupportedOnPlatformFailure as failure: Not here. There's a big ...
7 years ago (2013-12-20 19:28:01 UTC) #1
vmpstr
rasterize_and_record_micro* lgtm with nits https://codereview.chromium.org/100443007/diff/1/tools/perf/measurements/rasterize_and_record_micro.py File tools/perf/measurements/rasterize_and_record_micro.py (right): https://codereview.chromium.org/100443007/diff/1/tools/perf/measurements/rasterize_and_record_micro.py#newcode44 tools/perf/measurements/rasterize_and_record_micro.py:44: # Check if the we ...
7 years ago (2013-12-20 23:20:10 UTC) #2
ernstm
https://codereview.chromium.org/100443007/diff/1/tools/telemetry/telemetry/page/page_test_runner.py File tools/telemetry/telemetry/page/page_test_runner.py (right): https://codereview.chromium.org/100443007/diff/1/tools/telemetry/telemetry/page/page_test_runner.py#newcode45 tools/telemetry/telemetry/page/page_test_runner.py:45: except page_test_module.TestNotSupportedOnPlatformFailure as failure: On 2013/12/20 19:28:01, dtu wrote: ...
7 years ago (2013-12-20 23:25:59 UTC) #3
dtu
On 2013/12/20 23:25:59, Manfred Ernst wrote: > https://codereview.chromium.org/100443007/diff/1/tools/telemetry/telemetry/page/page_test_runner.py > File tools/telemetry/telemetry/page/page_test_runner.py (right): > > https://codereview.chromium.org/100443007/diff/1/tools/telemetry/telemetry/page/page_test_runner.py#newcode45 ...
7 years ago (2013-12-21 00:07:14 UTC) #4
ernstm
> A few gotchas here: > - run_measurement and run_benchmark currently have different code paths ...
6 years, 9 months ago (2014-03-11 17:08:06 UTC) #5
ernstm
Ping
6 years, 9 months ago (2014-03-14 00:42:29 UTC) #6
tonyg
lgtm https://codereview.chromium.org/100443007/diff/90001/tools/perf/measurements/rasterize_and_record.py File tools/perf/measurements/rasterize_and_record.py (right): https://codereview.chromium.org/100443007/diff/90001/tools/perf/measurements/rasterize_and_record.py#newcode64 tools/perf/measurements/rasterize_and_record.py:64: # Throw and exception if threaded forced compositing ...
6 years, 9 months ago (2014-03-14 01:32:49 UTC) #7
ernstm
Dave, does the TestNotSupportedOnPlatformFailure belong into test.py or page_test.py? https://codereview.chromium.org/100443007/diff/90001/tools/perf/measurements/rasterize_and_record.py File tools/perf/measurements/rasterize_and_record.py (right): https://codereview.chromium.org/100443007/diff/90001/tools/perf/measurements/rasterize_and_record.py#newcode64 tools/perf/measurements/rasterize_and_record.py:64: ...
6 years, 9 months ago (2014-03-24 22:27:21 UTC) #8
dtu
On 2014/03/24 22:27:21, ernstm wrote: > Dave, does the TestNotSupportedOnPlatformFailure belong into test.py or > ...
6 years, 9 months ago (2014-03-27 23:21:59 UTC) #9
dtu
lgtm with nits https://codereview.chromium.org/100443007/diff/110001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/100443007/diff/110001/tools/telemetry/telemetry/page/page_runner.py#newcode484 tools/telemetry/telemetry/page/page_runner.py:484: raise failure Python shorthand: 483 except ...
6 years, 9 months ago (2014-03-27 23:22:09 UTC) #10
ernstm
https://codereview.chromium.org/100443007/diff/110001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/100443007/diff/110001/tools/telemetry/telemetry/page/page_runner.py#newcode484 tools/telemetry/telemetry/page/page_runner.py:484: raise failure On 2014/03/27 23:22:10, dtu wrote: > Python ...
6 years, 9 months ago (2014-03-28 17:54:04 UTC) #11
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 9 months ago (2014-03-28 17:55:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/100443007/130001
6 years, 9 months ago (2014-03-28 17:56:30 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 19:24:24 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-28 19:24:25 UTC) #15
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 9 months ago (2014-03-28 20:22:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/100443007/150001
6 years, 9 months ago (2014-03-28 20:25:03 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 23:44:45 UTC) #18
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-28 23:44:46 UTC) #19
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 9 months ago (2014-03-29 00:28:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/100443007/150001
6 years, 9 months ago (2014-03-29 00:30:54 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-29 02:04:12 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-29 02:04:12 UTC) #23
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 8 months ago (2014-03-29 05:30:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/100443007/150001
6 years, 8 months ago (2014-03-29 05:31:33 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-29 07:06:01 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-03-29 07:06:02 UTC) #27
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 8 months ago (2014-03-30 04:39:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/100443007/150001
6 years, 8 months ago (2014-03-30 04:39:21 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-30 05:59:38 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-03-30 05:59:38 UTC) #31
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 8 months ago (2014-03-30 20:21:25 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/100443007/150001
6 years, 8 months ago (2014-03-30 20:21:35 UTC) #33
commit-bot: I haz the power
6 years, 8 months ago (2014-03-31 00:43:59 UTC) #34
Message was sent while issue was closed.
Change committed as 260475

Powered by Google App Engine
This is Rietveld 408576698