Bug 1563296 - Run android power tests once a week with cron. r=perftest-reviewers,AlexandruIonescu,tomprince

With this patch, all android power tests (idle, idle-bg, and speedometer) will only run once a week, through cron, on saturday.

Differential Revision: https://phabricator.services.mozilla.com/D36827

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gregory Mierzwinski 2019-07-04 17:38:12 +00:00
Родитель 0bde9bbef6
Коммит e6c7c808a0
3 изменённых файлов: 39 добавлений и 12 удалений

Просмотреть файл

@ -94,6 +94,17 @@ jobs:
when:
- {weekday: 'Saturday', hour: 5, minute: 0}
- name: android-power-tests
job:
type: decision-task
treeherder-symbol: apt
target-tasks-method: android_power
include-push-tasks: true
run-on-projects:
- mozilla-central
when:
- {weekday: 'Saturday', hour: 17, minute: 0}
- name: searchfox-index
job:
type: decision-task

Просмотреть файл

@ -1587,10 +1587,7 @@ raptor-speedometer-geckoview-power:
try-name: raptor-speedometer-geckoview-power
treeherder-symbol: Rap(sp-p)
target: geckoview_example.apk
run-on-projects:
by-test-platform:
android-hw.*/pgo: ['try', 'mozilla-central']
default: ['try']
run-on-projects: ['try']
max-run-time: 1800
mozharness:
extra-options:
@ -1648,10 +1645,7 @@ raptor-scn-power-idle-geckoview:
try-name: raptor-scn-power-idle-geckoview
treeherder-symbol: Rap(idl-p)
target: geckoview_example.apk
run-on-projects:
by-test-platform:
android-hw.*/pgo: ['try', 'mozilla-central']
default: ['try']
run-on-projects: ['try']
tier: 3
max-run-time: 1800
mozharness:
@ -1733,10 +1727,7 @@ raptor-scn-power-idle-bg-geckoview:
try-name: raptor-scn-power-idle-bg-geckoview
treeherder-symbol: Rap(idlbg-p)
target: geckoview_example.apk
run-on-projects:
by-test-platform:
android-hw.*/pgo: ['try', 'mozilla-central']
default: ['try']
run-on-projects: ['try']
tier: 3
max-run-time: 1800
mozharness:

Просмотреть файл

@ -498,6 +498,31 @@ def target_tasks_fennec_v64(full_task_graph, parameters, graph_config):
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
@_target_task('android_power')
def target_tasks_android_power(full_task_graph, parameters, graph_config):
"""
Select tasks required for running android power tests
"""
def filter(task):
platform = task.attributes.get('build_platform')
attributes = task.attributes
if platform and 'android' not in platform:
return False
if attributes.get('unittest_suite') != 'raptor':
return False
try_name = attributes.get('raptor_try_name')
if 'geckoview' not in try_name:
return False
if '-power' in try_name and 'pgo' in platform:
if '-speedometer-' in try_name:
return True
if '-scn-power-idle' in try_name:
return True
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
def make_desktop_nightly_filter(platforms):
"""Returns a filter that gets all nightly tasks on the given platform."""
def filter(task, parameters):