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

Issue 2843403005: [Telemetry] Add Expectation module that enables disabling benchmarks/stories (Closed)

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

Description

[Telemetry] Add Expectation module that enables disabling benchmarks/stories This work is for better disabling of telemetry tests. This first CL lays the ground works by creating the story_expectation object and by extending the benchmark class api to include a way to get story expectations. This implements the default behavior of creating an empty expectation set if none is specified. go/StoryExpectationsDD BUG=chromium:711065 Review-Url: https://codereview.chromium.org/2843403005 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/3dc93e28655fd0318f9e35d40e66edadb17adb01

Patch Set 1 #

Patch Set 2 : Add BattOr platform support #

Total comments: 10

Patch Set 3 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 28

Patch Set 4 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 6

Patch Set 5 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 12

Patch Set 6 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 2

Patch Set 7 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 30

Patch Set 8 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 14

Patch Set 9 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 36

Patch Set 10 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 2

Patch Set 11 : 30 -> 50 #

Total comments: 23

Patch Set 12 : [Telemetry] Have benchmarks have story expectations. #

Total comments: 6

Patch Set 13 : [Telemetry] Have benchmarks have story expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -1 line) Patch
M telemetry/telemetry/benchmark.py View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M telemetry/telemetry/benchmark_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
A telemetry/telemetry/story/expectations.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +150 lines, -0 lines 0 comments Download
A telemetry/telemetry/story/expectations_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +157 lines, -0 lines 0 comments Download
M telemetry/telemetry/testing/fakes/__init__.py View 1 2 3 4 5 6 3 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 55 (13 generated)
rnephew (Reviews Here)
3 years, 7 months ago (2017-04-28 19:41:43 UTC) #3
nednguyen
https://codereview.chromium.org/2843403005/diff/40001/telemetry/telemetry/story/story_expectations.py File telemetry/telemetry/story/story_expectations.py (right): https://codereview.chromium.org/2843403005/diff/40001/telemetry/telemetry/story/story_expectations.py#newcode1 telemetry/telemetry/story/story_expectations.py:1: # Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 7 months ago (2017-05-01 18:29:26 UTC) #4
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/40001/telemetry/telemetry/story/story_expectations.py File telemetry/telemetry/story/story_expectations.py (right): https://codereview.chromium.org/2843403005/diff/40001/telemetry/telemetry/story/story_expectations.py#newcode1 telemetry/telemetry/story/story_expectations.py:1: # Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 7 months ago (2017-05-01 21:00:54 UTC) #6
rnephew (Reviews Here)
I should have done git mv instead of renaming then git adding :/ Sorry about ...
3 years, 7 months ago (2017-05-01 21:13:12 UTC) #7
nednguyen
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode76 telemetry/telemetry/story/expectations.py:76: def DisableStory(self, story, platforms, reason=''): s/platforms/conditions/g we should also ...
3 years, 7 months ago (2017-05-02 00:04:02 UTC) #8
perezju
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode6 telemetry/telemetry/story/expectations.py:6: class TestConditions(object): Throwing out for consideration a half-baked idea ...
3 years, 7 months ago (2017-05-02 09:19:52 UTC) #9
nednguyen
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode80 telemetry/telemetry/story/expectations.py:80: self._expectations[str(story)] = [] On 2017/05/02 09:19:52, perezju wrote: > ...
3 years, 7 months ago (2017-05-02 16:44:42 UTC) #11
nednguyen
On 2017/05/02 16:44:42, nednguyen wrote: > https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py > File telemetry/telemetry/story/expectations.py (right): > > https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode80 > ...
3 years, 7 months ago (2017-05-09 13:40:32 UTC) #13
nednguyen
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode76 telemetry/telemetry/story/expectations.py:76: def DisableStory(self, story, platforms, reason=''): On 2017/05/02 09:19:52, perezju ...
3 years, 7 months ago (2017-05-09 16:44:24 UTC) #14
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode6 telemetry/telemetry/story/expectations.py:6: class TestConditions(object): I really like this idea. Done. https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode30 ...
3 years, 7 months ago (2017-05-10 19:45:13 UTC) #15
nednguyen
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode80 telemetry/telemetry/story/expectations.py:80: self._expectations[str(story)] = [] On 2017/05/10 19:45:13, rnephew (Reviews Here) ...
3 years, 7 months ago (2017-05-10 20:01:39 UTC) #16
nednguyen
https://codereview.chromium.org/2843403005/diff/100001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/100001/telemetry/telemetry/story/expectations.py#newcode39 telemetry/telemetry/story/expectations.py:39: def DisableStory(self, story, conditions, reason): On 2017/05/10 20:01:39, nednguyen ...
3 years, 7 months ago (2017-05-10 20:02:14 UTC) #17
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/100001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/100001/telemetry/telemetry/story/expectations.py#newcode39 telemetry/telemetry/story/expectations.py:39: def DisableStory(self, story, conditions, reason): On 2017/05/10 20:02:14, nednguyen ...
3 years, 7 months ago (2017-05-10 20:53:01 UTC) #18
nednguyen
On 2017/05/10 20:53:01, rnephew (Reviews Here) wrote: > https://codereview.chromium.org/2843403005/diff/100001/telemetry/telemetry/story/expectations.py > File telemetry/telemetry/story/expectations.py (right): > > ...
3 years, 7 months ago (2017-05-10 20:54:08 UTC) #19
nednguyen
lgtm with nits Please wait for Juan & CHarlie https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations_unittest.py File telemetry/telemetry/story/expectations_unittest.py (right): https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations_unittest.py#newcode12 telemetry/telemetry/story/expectations_unittest.py:12: ...
3 years, 7 months ago (2017-05-10 21:07:59 UTC) #20
nednguyen
https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations.py#newcode23 telemetry/telemetry/story/expectations.py:23: def DisableBenchmark(self, conditions, reason): Add doc string for this. ...
3 years, 7 months ago (2017-05-10 21:10:57 UTC) #21
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations.py#newcode23 telemetry/telemetry/story/expectations.py:23: def DisableBenchmark(self, conditions, reason): On 2017/05/10 21:10:57, nednguyen wrote: ...
3 years, 7 months ago (2017-05-10 21:28:33 UTC) #22
nednguyen
https://codereview.chromium.org/2843403005/diff/140001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/140001/telemetry/telemetry/story/expectations.py#newcode52 telemetry/telemetry/story/expectations.py:52: def IsBenchmarkDisabled(self, state): Actually this isn't quite right. The ...
3 years, 7 months ago (2017-05-10 21:38:27 UTC) #23
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations_unittest.py File telemetry/telemetry/story/expectations_unittest.py (right): https://codereview.chromium.org/2843403005/diff/120001/telemetry/telemetry/story/expectations_unittest.py#newcode12 telemetry/telemetry/story/expectations_unittest.py:12: class Platform(object): On 2017/05/10 21:07:58, nednguyen wrote: > You ...
3 years, 7 months ago (2017-05-10 21:58:47 UTC) #25
perezju
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode89 telemetry/telemetry/story/expectations.py:89: return reason_for is not None, reason_for On 2017/05/10 19:45:13, ...
3 years, 7 months ago (2017-05-11 10:10:42 UTC) #26
rnephew (Reviews Here)
Will address the rest of the comments in the next patch, just wanted to get ...
3 years, 7 months ago (2017-05-11 15:05:59 UTC) #27
nednguyen
https://codereview.chromium.org/2843403005/diff/180001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/180001/telemetry/telemetry/story/expectations.py#newcode127 telemetry/telemetry/story/expectations.py:127: class _MacTestCondition(_TestCondition): On 2017/05/11 15:05:59, rnephew (Reviews Here) wrote: ...
3 years, 7 months ago (2017-05-11 15:10:32 UTC) #28
perezju
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode89 telemetry/telemetry/story/expectations.py:89: return reason_for is not None, reason_for On 2017/05/11 15:05:58, ...
3 years, 7 months ago (2017-05-11 15:26:53 UTC) #29
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode89 telemetry/telemetry/story/expectations.py:89: return reason_for is not None, reason_for I see your ...
3 years, 7 months ago (2017-05-11 15:42:50 UTC) #30
perezju
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode89 telemetry/telemetry/story/expectations.py:89: return reason_for is not None, reason_for On 2017/05/11 15:42:49, ...
3 years, 7 months ago (2017-05-11 16:14:28 UTC) #31
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/80001/telemetry/telemetry/story/expectations.py#newcode89 telemetry/telemetry/story/expectations.py:89: return reason_for is not None, reason_for On 2017/05/11 16:14:28, ...
3 years, 7 months ago (2017-05-11 17:14:12 UTC) #32
perezju
lgtm, w/ a few final comments. https://codereview.chromium.org/2843403005/diff/200001/common/battor/battor/battor_wrapper_unittest.py File common/battor/battor/battor_wrapper_unittest.py (right): https://codereview.chromium.org/2843403005/diff/200001/common/battor/battor/battor_wrapper_unittest.py#newcode46 common/battor/battor/battor_wrapper_unittest.py:46: self.assertIsInstance(True, bool) left ...
3 years, 7 months ago (2017-05-12 08:15:05 UTC) #33
rnephew (Reviews Here)
I also redid how the TestConditions are defined (when you look at it it should ...
3 years, 7 months ago (2017-05-12 17:49:18 UTC) #34
nednguyen
On 2017/05/12 17:49:18, rnephew (Reviews Here) wrote: > I also redid how the TestConditions are ...
3 years, 7 months ago (2017-05-12 20:28:39 UTC) #35
rnephew (Reviews Here)
> Please consider update the CL title to "Add Expectation module that enable > disabling ...
3 years, 7 months ago (2017-05-12 21:12:09 UTC) #37
charliea (OOO until 10-5)
https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/benchmark.py File telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/benchmark.py#newcode270 telemetry/telemetry/benchmark.py:270: """ Returns a StoryExpectation object. nit: (here and elsewhere) ...
3 years, 7 months ago (2017-05-12 21:30:32 UTC) #39
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/benchmark.py File telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/benchmark.py#newcode270 telemetry/telemetry/benchmark.py:270: """ Returns a StoryExpectation object. On 2017/05/12 21:30:31, charliea ...
3 years, 7 months ago (2017-05-12 22:55:30 UTC) #40
perezju
https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/story/expectations_unittest.py File telemetry/telemetry/story/expectations_unittest.py (right): https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/story/expectations_unittest.py#newcode31 telemetry/telemetry/story/expectations_unittest.py:31: self.assertTrue(e._frozen) On 2017/05/12 22:55:30, rnephew (Reviews Here) wrote: > ...
3 years, 7 months ago (2017-05-15 10:38:21 UTC) #41
nednguyen
On 2017/05/15 10:38:21, perezju wrote: > https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/story/expectations_unittest.py > File telemetry/telemetry/story/expectations_unittest.py (right): > > https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/story/expectations_unittest.py#newcode31 > ...
3 years, 7 months ago (2017-05-15 10:39:50 UTC) #42
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/240001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/240001/telemetry/telemetry/story/expectations.py#newcode85 telemetry/telemetry/story/expectations.py:85: "Story name exceeds limit of 30 characters. This limit ...
3 years, 7 months ago (2017-05-15 16:37:41 UTC) #43
charliea (OOO until 10-5)
https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/220001/telemetry/telemetry/story/expectations.py#newcode168 telemetry/telemetry/story/expectations.py:168: # Example use case for NO_BATTOR test condition: On ...
3 years, 7 months ago (2017-05-15 21:15:42 UTC) #44
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/260001/telemetry/telemetry/benchmark_unittest.py File telemetry/telemetry/benchmark_unittest.py (right): https://codereview.chromium.org/2843403005/diff/260001/telemetry/telemetry/benchmark_unittest.py#newcode168 telemetry/telemetry/benchmark_unittest.py:168: expectations, story_module.expectations.StoryExpectations) On 2017/05/15 21:15:41, charliea wrote: > possible ...
3 years, 7 months ago (2017-05-15 21:36:06 UTC) #45
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/260001/telemetry/telemetry/benchmark_unittest.py File telemetry/telemetry/benchmark_unittest.py (right): https://codereview.chromium.org/2843403005/diff/260001/telemetry/telemetry/benchmark_unittest.py#newcode168 telemetry/telemetry/benchmark_unittest.py:168: expectations, story_module.expectations.StoryExpectations) On 2017/05/15 21:15:41, charliea wrote: > possible ...
3 years, 7 months ago (2017-05-15 21:36:07 UTC) #46
charliea (OOO until 10-5)
lgtm after fixing the story names. Thanks Randy! https://codereview.chromium.org/2843403005/diff/260001/telemetry/telemetry/story/expectations_unittest.py File telemetry/telemetry/story/expectations_unittest.py (right): https://codereview.chromium.org/2843403005/diff/260001/telemetry/telemetry/story/expectations_unittest.py#newcode33 telemetry/telemetry/story/expectations_unittest.py:33: self.assertTrue(expectations.ALL_WIN.ShouldDisable(p)) ...
3 years, 7 months ago (2017-05-16 16:09:28 UTC) #48
rnephew (Reviews Here)
https://codereview.chromium.org/2843403005/diff/300001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2843403005/diff/300001/telemetry/telemetry/story/expectations.py#newcode37 telemetry/telemetry/story/expectations.py:37: """Disable benchmark under given conditions. On 2017/05/16 16:09:27, charliea ...
3 years, 7 months ago (2017-05-16 16:38:44 UTC) #49
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/2843403005/320001
3 years, 7 months ago (2017-05-16 16:38:59 UTC) #52
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 17:02:47 UTC) #55
Message was sent while issue was closed.
Committed patchset #13 (id:320001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698