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

Issue 2913383005: [Telemetry] Add temporary disabling of benchmark to story expectations. (Closed)

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

Description

[Telemetry] Add temporary disabling of benchmark to story expectations. Before we only supported permanent disabling. This was so that tests that we know cant run on certain platforms (tests that use android specific calls) are not accidently run on other platforms. This adds the ability to disable failing benchmarks on a temporary basis. BUG=chromium:713222

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -24 lines) Patch
M telemetry/telemetry/internal/story_runner.py View 1 chunk +5 lines, -3 lines 0 comments Download
M telemetry/telemetry/internal/story_runner_unittest.py View 6 chunks +70 lines, -13 lines 0 comments Download
M telemetry/telemetry/story/expectations.py View 3 chunks +42 lines, -5 lines 0 comments Download
M telemetry/telemetry/story/expectations_unittest.py View 2 chunks +32 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
rnephew (Reviews Here)
3 years, 6 months ago (2017-06-01 19:14:24 UTC) #2
nednguyen
On 2017/06/01 19:14:24, rnephew (Reviews Here) wrote: Why do we need this?
3 years, 6 months ago (2017-06-01 23:31:14 UTC) #3
rnephew (Reviews Here)
On 2017/06/01 23:31:14, nednguyen wrote: > On 2017/06/01 19:14:24, rnephew (Reviews Here) wrote: > > ...
3 years, 6 months ago (2017-06-02 00:58:36 UTC) #4
rnephew (Reviews Here)
On 2017/06/02 00:58:36, rnephew (Reviews Here) wrote: > On 2017/06/01 23:31:14, nednguyen wrote: > > ...
3 years, 6 months ago (2017-06-02 00:59:45 UTC) #5
nednguyen
On 2017/06/02 00:59:45, rnephew (Reviews Here) wrote: > On 2017/06/02 00:58:36, rnephew (Reviews Here) wrote: ...
3 years, 6 months ago (2017-06-02 01:03:25 UTC) #6
rnephew (Reviews Here)
On 2017/06/02 01:03:25, nednguyen wrote: > On 2017/06/02 00:59:45, rnephew (Reviews Here) wrote: > > ...
3 years, 6 months ago (2017-06-02 01:37:52 UTC) #7
nednguyen
On 2017/06/02 01:37:52, rnephew (Reviews Here) wrote: > On 2017/06/02 01:03:25, nednguyen wrote: > > ...
3 years, 6 months ago (2017-06-02 01:45:50 UTC) #8
rnephew (Reviews Here)
On 2017/06/02 01:45:50, nednguyen wrote: > On 2017/06/02 01:37:52, rnephew (Reviews Here) wrote: > > ...
3 years, 6 months ago (2017-06-02 01:55:39 UTC) #9
nednguyen
On 2017/06/02 01:55:39, rnephew (Reviews Here) wrote: > On 2017/06/02 01:45:50, nednguyen wrote: > > ...
3 years, 6 months ago (2017-06-02 02:11:46 UTC) #10
perezju
On 2017/06/02 at 02:11:46, nednguyen wrote: > On 2017/06/02 01:55:39, rnephew (Reviews Here) wrote: > ...
3 years, 6 months ago (2017-06-02 08:54:26 UTC) #11
nednguyen
On 2017/06/02 08:54:26, perezju wrote: > On 2017/06/02 at 02:11:46, nednguyen wrote: > > On ...
3 years, 6 months ago (2017-06-02 10:39:22 UTC) #12
perezju
On 2017/06/02 at 10:39:22, nednguyen wrote: > 3) Randy wants to have a single area ...
3 years, 6 months ago (2017-06-02 11:16:16 UTC) #13
nednguyen
On 2017/06/02 11:16:16, perezju wrote: > On 2017/06/02 at 10:39:22, nednguyen wrote: > > 3) ...
3 years, 6 months ago (2017-06-02 11:41:04 UTC) #14
perezju
On 2017/06/02 at 11:41:04, nednguyen wrote: > On 2017/06/02 11:16:16, perezju wrote: > > On ...
3 years, 6 months ago (2017-06-02 11:51:37 UTC) #15
rnephew (Reviews Here)
3 years, 6 months ago (2017-06-05 19:00:42 UTC) #17
Message was sent while issue was closed.
On 2017/06/02 11:51:37, perezju wrote:
> On 2017/06/02 at 11:41:04, nednguyen wrote:
> > On 2017/06/02 11:16:16, perezju wrote:
> > > On 2017/06/02 at 10:39:22, nednguyen wrote:
> > > > 3) Randy wants to have a single area of code for the disabling logic, so
> he
> > > put the PermanentlyDisableBenchmark in the expectations module. <-- This
is
> the
> > > controversial part, but I don't have strong feeling about this.
> > > 
> > > Yeah, I would prefer to keep the two systems separate.
> > 
> > There are only 3 cases of permanently benchmark disable I know so far:
mobile
> vs dekstop, battor is available. I also expect that the number of cases there
> won't grow, so I am fine with either way. Maybe we should just keep the
> Benchmark.ShouldDisable method (or rename it to
> Benchmark.ShouldDisablePermanently) as this make a great counterpart to
> Page.CanRunOnBrowser stuff.
> 
> Agreed. We should rename it to Benchmark.CanRunOnBrowser/CanRunOnPlatform;
which
> also avoids some awkward double negatives like "disable if not battor" when
what
> you actually mean is "needs battor to run".
> 
> > > 
> > > Expectations sound find for more ephemeral code, where stories are
> > > constantly being added/removed as needed. And there it's also
> > > bearable, I think, to have some code repetition if we want to
> > > disable the same story on different benchmarks.
> > > 
> > > On the other hand, for permanent "disables" I would very much
> > > prefer to have some say "DesktopBenchmark" which I can subclass
> > > to have something that only ever runs on desktop platforms.
> > > Rather than explicitly having to say ".. and disable this
> > > permanently on android" on all of them.
> > 
> > I agree with the sentiment here. Having a DesktopBenchmark & MobileBenchmark
> subclasses in the base telemetry.benchmark module sgtm.

I'm going ahead and closing this review out since we are not moving on with the
changes in it. I will start the work on removing ShouldDisable, and will move
the other CL to use PermDisableBenchmark for now.

Powered by Google App Engine
This is Rietveld 408576698