Commit c457b2b6 authored by Tim Dresser's avatar Tim Dresser Committed by Commit Bot

Improve system_health abridged story set.

Used https://cs.chromium.org/chromium/src/tools/perf/experimental/story_clustering/README.md
to find representative stories.

Bug: 1051558
Change-Id: I2a4169c8549e1ee6ed0b9d78b9ef7819ab791e42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2050735
Commit-Queue: Timothy Dresser <tdresser@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742696}
parent 726757e9
......@@ -44,7 +44,7 @@ class BackgroundFacebookMobileStory2019(_BackgroundStory):
NAME = 'background:social:facebook:2019'
URL = 'https://www.facebook.com/rihanna'
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.YEAR_2019]
TAGS = [story_tags.HEALTH_CHECK, story_tags.YEAR_2019]
class BackgroundNytimesMobileStory2019(browsing_stories.NytimesMobileStory2019):
......
......@@ -261,7 +261,7 @@ class RedditMobileStory2019(_ArticleBrowsingStory):
IS_SINGLE_PAGE_APP = True
ITEM_SELECTOR = '.PostHeader__post-title-line'
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.YEAR_2019]
TAGS = [story_tags.HEALTH_CHECK, story_tags.YEAR_2019]
def _DidLoadDocument(self, action_runner):
# We encountered ads disguised as articles on the Reddit one so far. The
......@@ -287,7 +287,7 @@ class TwitterMobileStory2019(_ArticleBrowsingStory):
ITEM_SELECTOR = ('[class="css-901oao r-hkyrab r-1qd0xha r-1b43r93 r-16dba41 '
'r-ad9z0x r-bcqeeo r-bnwqim r-qvutc0"]')
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.YEAR_2019]
TAGS = [story_tags.HEALTH_CHECK, story_tags.YEAR_2019]
def _WaitForNavigation(self, action_runner):
action_runner.WaitForElement(selector=('[class="css-901oao css-16my406 '
......@@ -908,7 +908,9 @@ class GoogleMapsMobileStory2019(system_health_story.SystemHealthStory):
NAME = 'browse:tools:maps:2019'
URL = 'https://maps.google.com/maps?force=pwa&source=mlpwa'
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.EMERGING_MARKET, story_tags.YEAR_2019]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.EMERGING_MARKET, story_tags.YEAR_2019
]
_MAPS_SEARCH_BOX_SELECTOR = '.ml-searchbox-pwa-textarea'
_MAPS_SEARCH_BOX_FORM = '[id="ml-searchboxform"]'
......@@ -1108,8 +1110,10 @@ class GoogleEarthStory(_BrowsingStory):
_EARTH_BUTTON_SELECTOR = '[aria-labelledby="widget-minimap-caption"]'
_EARTH_ZOOM_IN_SELECTOR = '[aria-label="Zoom in"]'
SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
TAGS = [story_tags.JAVASCRIPT_HEAVY, story_tags.WEBGL,
story_tags.YEAR_2016]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.JAVASCRIPT_HEAVY, story_tags.WEBGL,
story_tags.YEAR_2016
]
def _DidLoadDocument(self, action_runner):
# Zommin three times.
......@@ -1149,7 +1153,9 @@ class GoogleSheetsDesktopStory(system_health_story.SystemHealthStory):
'16jfsJs14QrWKhsbxpdJXgoYumxNpnDt08DTK82Puc2A/' +
'edit#gid=896027318&range=C:C')
SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
TAGS = [story_tags.JAVASCRIPT_HEAVY, story_tags.YEAR_2019]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.JAVASCRIPT_HEAVY, story_tags.YEAR_2019
]
# This map translates page-specific event names to event names needed for
# the reported_by_page:* metric.
......@@ -1439,7 +1445,9 @@ class PinterestMobileStory2019(_InfiniteScrollStory):
NAME = 'browse:social:pinterest_infinite_scroll:2019'
URL = 'https://www.pinterest.co.uk'
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.INFINITE_SCROLL, story_tags.YEAR_2019]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.INFINITE_SCROLL, story_tags.YEAR_2019
]
# TODO(crbug.com/862077): Story breaks if login is skipped during replay.
SKIP_LOGIN = False
......@@ -1451,8 +1459,10 @@ class TumblrStory2018(_InfiniteScrollStory):
NAME = 'browse:social:tumblr_infinite_scroll:2018'
URL = 'https://techcrunch.tumblr.com/'
SCROLL_DISTANCE = 20000
TAGS = [story_tags.INFINITE_SCROLL, story_tags.JAVASCRIPT_HEAVY,
story_tags.YEAR_2018]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.INFINITE_SCROLL,
story_tags.JAVASCRIPT_HEAVY, story_tags.YEAR_2018
]
def _Login(self, action_runner):
tumblr_login.LoginDesktopAccount(action_runner, 'tumblr')
......
......@@ -124,13 +124,15 @@ class LoadVkDesktopStory2018(_LoadingStory):
NAME = 'load:social:vk:2018'
URL = 'https://vk.com/sbeatles'
SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
TAGS = [story_tags.INTERNATIONAL, story_tags.YEAR_2018]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.INTERNATIONAL, story_tags.YEAR_2018
]
class LoadInstagramDesktopStory2018(_LoadingStory):
NAME = 'load:social:instagram:2018'
URL = 'https://www.instagram.com/selenagomez/'
TAGS = [story_tags.YEAR_2018]
TAGS = [story_tags.HEALTH_CHECK, story_tags.YEAR_2018]
SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
......@@ -169,7 +171,9 @@ class LoadBbcMobileStory2019(_LoadingStory):
class LoadCnnStory2018(_LoadingStory):
NAME = 'load:news:cnn:2018'
URL = 'https://edition.cnn.com'
TAGS = [story_tags.JAVASCRIPT_HEAVY, story_tags.YEAR_2018]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.JAVASCRIPT_HEAVY, story_tags.YEAR_2018
]
class LoadFlipboardDesktopStory(_LoadingStory):
......@@ -381,7 +385,7 @@ class LoadGmailStory2019(_LoadingStory):
NAME = 'load:tools:gmail:2019'
# Needs to be http and not https.
URL = 'http://mail.google.com/'
TAGS = [story_tags.YEAR_2019]
TAGS = [story_tags.HEALTH_CHECK, story_tags.YEAR_2019]
SKIP_LOGIN = False
def _Login(self, action_runner):
......@@ -436,7 +440,9 @@ class LoadDropboxStory2019(_LoadingStory):
class LoadWeatherStory2019(_LoadingStory):
NAME = 'load:tools:weather:2019'
URL = 'https://weather.com/en-GB/weather/today/l/USCA0286:1:US'
TAGS = [story_tags.JAVASCRIPT_HEAVY, story_tags.YEAR_2019]
TAGS = [
story_tags.HEALTH_CHECK, story_tags.JAVASCRIPT_HEAVY, story_tags.YEAR_2019
]
class LoadDriveStory2019(_LoadingStory):
......
......@@ -94,7 +94,7 @@ class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase):
class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase):
NAME = 'long_running:tools:gmail-foreground'
TAGS = [story_tags.YEAR_2016]
TAGS = [story_tags.HEALTH_CHECK, story_tags.YEAR_2016]
class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase):
......
......@@ -57,7 +57,7 @@ class GooglePlayMusicDesktopStory(_MediaStory):
"""Browse the songs list in music.google.com, then play a song."""
NAME = 'play:media:google_play_music'
URL = 'https://music.google.com'
TAGS = [story_tags.YEAR_2016]
TAGS = [story_tags.HEALTH_CHECK, story_tags.YEAR_2016]
PLAY_SELECTOR = '.x-scope.paper-fab-0'
STOP_SELECTOR = '.style-scope.sj-play-button'
......
......@@ -4,7 +4,7 @@ Story,Description,Platforms,Tags
background:media:imgur:2019,,mobile,"2019,health_check"
background:news:nytimes:2019,,mobile,"2019,javascript_heavy"
background:search:google:2019,,mobile,"2019,health_check"
background:social:facebook:2019,,mobile,2019
background:social:facebook:2019,,mobile,"2019,health_check"
background:tools:gmail:2019,,mobile,"2019,health_check"
browse:chrome:newtab:2019,Story that loads new tab page and performs searches.,mobile,"2019,emerging_market"
browse:chrome:omnibox:2019,Story that peforms search by using omnibox search provider,mobile,"2019,emerging_market"
......@@ -27,7 +27,7 @@ browse:news:nytimes:2018,The third top website in http://www.alexa.com/topsites/
browse:news:nytimes:2019,The third top website in http://www.alexa.com/topsites/category/News,mobile,2019
browse:news:qq:2019,,mobile,"2019,health_check,international"
browse:news:reddit:2018,The top website in http://www.alexa.com/topsites/category/News,desktop,2018
browse:news:reddit:2019,,mobile,2019
browse:news:reddit:2019,,mobile,"2019,health_check"
browse:news:toi:2019,,mobile,"2019,emerging_market"
browse:news:washingtonpost:2019,Progressive website,mobile,2019
browse:search:amp:2018,Story for Google's Accelerated Mobile Pages (AMP).,mobile,2018
......@@ -41,16 +41,16 @@ browse:shopping:lazada:2019,,mobile,"2019,emerging_market"
browse:social:facebook:2019,,mobile,"2019,emerging_market"
browse:social:facebook_infinite_scroll:2018,,"desktop,mobile","2018,infinite_scroll"
browse:social:instagram:2019,,mobile,"2019,emerging_market"
browse:social:pinterest_infinite_scroll:2019,,mobile,"2019,infinite_scroll"
browse:social:tumblr_infinite_scroll:2018,,"desktop,mobile","2018,infinite_scroll,javascript_heavy"
browse:social:pinterest_infinite_scroll:2019,,mobile,"2019,health_check,infinite_scroll"
browse:social:tumblr_infinite_scroll:2018,,"desktop,mobile","2018,health_check,infinite_scroll,javascript_heavy"
browse:social:twitter:2018,,desktop,2018
browse:social:twitter:2019,,mobile,2019
browse:social:twitter:2019,,mobile,"2019,health_check"
browse:social:twitter_infinite_scroll:2018,,desktop,"2018,infinite_scroll"
browse:tech:discourse_infinite_scroll:2018,,"desktop,mobile","2018,infinite_scroll"
browse:tools:docs_scrolling,Google Docs scrolling story:,desktop,"2020,javascript_heavy"
browse:tools:earth,Google Earth story:,desktop,"2016,javascript_heavy,webgl"
browse:tools:maps:2019,Google maps story:,"desktop,mobile","2019,emerging_market,javascript_heavy,webgl"
browse:tools:sheets:2019,,desktop,"2019,javascript_heavy"
browse:tools:earth,Google Earth story:,desktop,"2016,health_check,javascript_heavy,webgl"
browse:tools:maps:2019,Google maps story:,"desktop,mobile","2019,emerging_market,health_check,javascript_heavy,webgl"
browse:tools:sheets:2019,,desktop,"2019,health_check,javascript_heavy"
browse_accessibility:media:youtube,Tests interacting with the YouTube home page.,desktop,"2016,accessibility,keyboard_input"
browse_accessibility:tech:codesearch:2018,Tests scrolling an element within a page.,desktop,"2018,accessibility,scroll"
load:chrome:blank,Story that loads the about:blank page.,"desktop,mobile","2016,health_check"
......@@ -70,7 +70,7 @@ load:media:soundcloud:2018,,"desktop,mobile",2018
load:media:youtube:2018,,"desktop,mobile","2018,emerging_market,health_check"
load:news:bbc:2018,,desktop,2018
load:news:bbc:2019,,mobile,2019
load:news:cnn:2018,,"desktop,mobile","2018,javascript_heavy"
load:news:cnn:2018,,"desktop,mobile","2018,health_check,javascript_heavy"
load:news:flipboard,,desktop,2016
load:news:hackernews:2018,,desktop,2018
load:news:irctc:2019,,mobile,"2019,emerging_market,health_check"
......@@ -92,23 +92,23 @@ load:search:taobao:2018,,desktop,"2018,international"
load:search:taobao:2019,,mobile,"2019,health_check,international"
load:search:yahoo:2018,,"desktop,mobile",2018
load:search:yandex:2018,,"desktop,mobile","2018,international"
load:social:instagram:2018,,desktop,2018
load:social:instagram:2018,,desktop,"2018,health_check"
load:social:instagram:2019,,mobile,2019
load:social:pinterest:2019,,"desktop,mobile","2019,javascript_heavy"
load:social:twitter:2019,,mobile,2019
load:social:vk:2018,,desktop,"2018,international"
load:social:vk:2018,,desktop,"2018,health_check,international"
load:tools:chat:2020,,desktop,2020
load:tools:docs:2019,Load a typical google doc page (2019).,"desktop,mobile","2019,health_check"
load:tools:drive:2019,,"desktop,mobile","2019,javascript_heavy"
load:tools:dropbox:2019,,mobile,2019
load:tools:gmail:2019,,"desktop,mobile",2019
load:tools:gmail:2019,,"desktop,mobile","2019,health_check"
load:tools:stackoverflow:2018,Load a typical question & answer page of stackoverflow.com,"desktop,mobile","2018,health_check"
load:tools:weather:2019,,"desktop,mobile","2019,javascript_heavy"
load:tools:weather:2019,,"desktop,mobile","2019,health_check,javascript_heavy"
load_accessibility:media:wikipedia:2018,"Wikipedia page on Accessibility. Long, but very simple, clean layout.",desktop,"2018,accessibility"
load_accessibility:shopping:amazon:2018,Amazon results page. Good example of a site with a data table.,desktop,"2018,accessibility"
long_running:tools:gmail-background,,"desktop,mobile",2016
long_running:tools:gmail-foreground,,"desktop,mobile",2016
long_running:tools:gmail-foreground,,"desktop,mobile","2016,health_check"
multitab:misc:typical24,"Load 24 different web sites in 24 tabs, then cycle through each tab.",desktop,"2016,tabs_switching"
multitab:misc:typical24:2018,"Load 24 different web sites in 24 tabs, then cycle through each tab.",desktop,"2018,international,tabs_switching"
play:media:google_play_music,"Browse the songs list in music.google.com, then play a song.",desktop,2016
play:media:google_play_music,"Browse the songs list in music.google.com, then play a song.",desktop,"2016,health_check"
play:media:soundcloud:2018,"Load soundcloud.com, search for ""Smooth Jazz"", then play a song.",desktop,2018
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment