New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 867568 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Aug 15
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 865464
issue 865466
issue 865471



Sign in to add a comment

Telemetry should have a way to disable stories that shouldn't run on a certain platform

Project Member Reported by charliea@chromium.org, Jul 25

Issue description

In the system health benchmarks, there are several stories that shouldn't run on certain platforms (e.g. webview) because the story doesn't make sense there (e.g. browse:chrome:newtab).

The expectations.config file isn't the right place to disable these because that file is for short-term disables, not permanent disables that exist for a real and functional reason. 

My proposal is that we add a SUPPORTED_PLATFORMS field to stories that's checked just like the existing one at the Benchmark level.
 
Blocking: 865466
Blocking: 865464
Blocking: 865471
Looks like it's SharedPageState.CanRunOnBrowser, right? I'm trying to remember, are SharedPageStates shared across stories? Either way, It seems very weird that we'd specify what platforms a story can run on through the SharedPageState rather than the story.
#5: that's because each share state holds a collection of commonly shared states that are needed for disabling.

If you want to make it less weird, you can make a default implementation SharedPageState.CanRunOnBrowser of that invokes Page.CanRunOnBrowser(..)
Project Member

Comment 7 by bugdroid1@chromium.org, Aug 15

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/676d68809d3c70bdde04c81d9c87342fb93e38d8

commit 676d68809d3c70bdde04c81d9c87342fb93e38d8
Author: Annie Sullivan <sullivan@chromium.org>
Date: Wed Aug 15 17:15:05 2018

Purposefully disable system health stories that shouldn't run on WebView.

These stories depend on tabs and/or omnibox. The fact that they don't
run on WebView is intentional, not a bug. So remove them from
expectations and clarify that they shouldn't run on WebView in the
code.

Bug:  865464 , 865466 , 865471 , 867568 
Change-Id: I9bbd6a4a87aaa423bdf8d106d3de2d64cf6c8d52
Reviewed-on: https://chromium-review.googlesource.com/1174700
Commit-Queue: Annie Sullivan <sullivan@chromium.org>
Commit-Queue: Juan Antonio Navarro Pérez <perezju@chromium.org>
Reviewed-by: Juan Antonio Navarro Pérez <perezju@chromium.org>
Reviewed-by: Ned Nguyen <nednguyen@google.com>
Cr-Commit-Position: refs/heads/master@{#583292}
[modify] https://crrev.com/676d68809d3c70bdde04c81d9c87342fb93e38d8/tools/perf/expectations.config
[modify] https://crrev.com/676d68809d3c70bdde04c81d9c87342fb93e38d8/tools/perf/page_sets/system_health/chrome_stories.py
[modify] https://crrev.com/676d68809d3c70bdde04c81d9c87342fb93e38d8/tools/perf/page_sets/system_health/long_running_stories.py
[modify] https://crrev.com/676d68809d3c70bdde04c81d9c87342fb93e38d8/tools/perf/page_sets/system_health/system_health_story.py

Status: Fixed (was: Untriaged)
Marking Fixed as the submitted CL shows the current recommended way to do this.
Project Member

Comment 9 by bugdroid1@chromium.org, Jan 3

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/95e86e4632c0f6dbab0a603778bf5034ae86b911

commit 95e86e4632c0f6dbab0a603778bf5034ae86b911
Author: Tom McKee <tommckee@chromium.org>
Date: Thu Jan 03 19:04:39 2019

[tools/perf] Dropping some redundant expectations.config entries.

The 'newtab' and 'omnibox' stories aren't run against Android_Webview
because they don't make sense in that context. Since those stories
don't run against Android_Webview we don't need entries in
expectations.config to disable those stories on that platform.

Bug:  867568 
Change-Id: Ifcd38f0bc5ace5fddc0d883e24b89b06d1f84ef6
Reviewed-on: https://chromium-review.googlesource.com/c/1392734
Commit-Queue: Tom McKee <tommckee@chromium.org>
Reviewed-by: Juan Antonio Navarro Pérez <perezju@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619706}
[modify] https://crrev.com/95e86e4632c0f6dbab0a603778bf5034ae86b911/tools/perf/expectations.config

Comment 10 by benhenry@google.com, Jan 16 (6 days ago)

Components: Test>Telemetry

Comment 11 by benhenry@google.com, Jan 16 (6 days ago)

Components: -Speed>Telemetry

Sign in to add a comment