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

Issue 3001873002: [Telemetry] Add CanRunOnPlatform to story_runner and benchmark class. (Closed)

Created:
3 years, 4 months ago by rnephew (Reviews Here)
Modified:
3 years, 3 months ago
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Telemetry] Add CanRunOnPlatform to story_runner and benchmark class. We use use decorators.enabled and decorators.disabled to convey if the platform was intended on certain platforms. (mobile only benchmarks as an example). This adds a variable to benchmarks, SUPPORTED_PLATFORMS, that defaults to ALL. Benchmark owners can override this declaration in their own benchmarks to enable the benchmark only on certain platforms. This effort will reuse the work from StoryExpectations and will use TestConditions to mark which platforms we wish to support. BUG=chromium:713222 Review-Url: https://codereview.chromium.org/3001873002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/10b772bb112d592fd2f393af628c2195bb93e0fe

Patch Set 1 #

Patch Set 2 : unit tests #

Total comments: 2

Patch Set 3 : Make Method Private #

Total comments: 6

Patch Set 4 : Charlies comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -2 lines) Patch
M telemetry/telemetry/benchmark.py View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M telemetry/telemetry/benchmark_unittest.py View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/story_runner.py View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M telemetry/telemetry/internal/story_runner_unittest.py View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M telemetry/telemetry/story/expectations.py View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
rnephew (Reviews Here)
3 years, 4 months ago (2017-08-18 20:45:34 UTC) #2
nednguyen
Seems fine to me. Though you may want to check with Ashley about what json ...
3 years, 4 months ago (2017-08-18 23:46:53 UTC) #5
rnephew (Reviews Here)
On 2017/08/18 23:46:53, nednguyen wrote: > Seems fine to me. Though you may want to ...
3 years, 4 months ago (2017-08-21 00:08:24 UTC) #6
ashleymarie1
On 2017/08/21 00:08:24, rnephew (Reviews Here) wrote: > On 2017/08/18 23:46:53, nednguyen wrote: > > ...
3 years, 4 months ago (2017-08-21 12:28:24 UTC) #7
rnephew (Reviews Here)
On 2017/08/21 12:28:24, ashleymarie1 wrote: > On 2017/08/21 00:08:24, rnephew (Reviews Here) wrote: > > ...
3 years, 4 months ago (2017-08-21 16:26:58 UTC) #8
rnephew (Reviews Here)
https://codereview.chromium.org/3001873002/diff/20001/telemetry/telemetry/benchmark.py File telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/3001873002/diff/20001/telemetry/telemetry/benchmark.py#newcode86 telemetry/telemetry/benchmark.py:86: def CanRunOnPlatform(self, platform, finder_options): On 2017/08/18 23:46:53, nednguyen wrote: ...
3 years, 4 months ago (2017-08-21 16:30:32 UTC) #9
ashleymarie1
On 2017/08/21 16:26:58, rnephew (Reviews Here) wrote: > On 2017/08/21 12:28:24, ashleymarie1 wrote: > > ...
3 years, 4 months ago (2017-08-21 17:57:31 UTC) #14
rnephew (Reviews Here)
On 2017/08/21 17:57:31, ashleymarie1 wrote: > On 2017/08/21 16:26:58, rnephew (Reviews Here) wrote: > > ...
3 years, 4 months ago (2017-08-21 18:02:05 UTC) #15
nednguyen
that looks right to me, lgtm but please wait for Charlie
3 years, 4 months ago (2017-08-21 18:02:50 UTC) #16
ashleymarie1
On 2017/08/21 18:02:05, rnephew (Reviews Here) wrote: > On 2017/08/21 17:57:31, ashleymarie1 wrote: > > ...
3 years, 4 months ago (2017-08-21 18:03:00 UTC) #17
charliea (OOO until 10-5)
https://codereview.chromium.org/3001873002/diff/40001/telemetry/telemetry/benchmark.py File telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/3001873002/diff/40001/telemetry/telemetry/benchmark.py#newcode92 telemetry/telemetry/benchmark.py:92: if p.ShouldDisable(platform, finder_options): I understand why this works the ...
3 years, 3 months ago (2017-08-22 17:22:18 UTC) #18
charliea (OOO until 10-5)
lgtm after chatting w/ Randy offline and him saying that he'll add comments addressing my ...
3 years, 3 months ago (2017-08-22 17:32:31 UTC) #19
rnephew (Reviews Here)
https://codereview.chromium.org/3001873002/diff/40001/telemetry/telemetry/benchmark.py File telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/3001873002/diff/40001/telemetry/telemetry/benchmark.py#newcode92 telemetry/telemetry/benchmark.py:92: if p.ShouldDisable(platform, finder_options): On 2017/08/22 17:22:18, charliea wrote: > ...
3 years, 3 months ago (2017-08-22 17:33:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/3001873002/60001
3 years, 3 months ago (2017-08-22 17:34:07 UTC) #23
commit-bot: I haz the power
3 years, 3 months ago (2017-08-22 18:00:48 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698