Bug 1882083 - combine desktop and android nightly hooks. r=RyanVM,releng-reviewers,taskgraph-reviewers,bhearsum DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D202720
This commit is contained in:
Julien Cristau 2024-03-19 17:02:43 +00:00
parent ca1465e265
commit af1c02eb33
2 changed files with 37 additions and 15 deletions

View file

@ -19,6 +19,19 @@ jobs:
- {weekday: 'Wednesday', hour: 13, minute: 0}
- {weekday: 'Friday', hour: 13, minute: 0}
- name: nightly-all
job:
type: decision-task
treeherder-symbol: N
target-tasks-method: nightly_all
include-push-tasks: true
run-on-projects:
- mozilla-central
when:
by-project:
mozilla-central: [{hour: 10, minute: 0}, {hour: 22, minute: 0}]
# No default
- name: nightly-desktop
job:
type: decision-task
@ -27,10 +40,7 @@ jobs:
include-push-tasks: true
run-on-projects:
- mozilla-central
when:
by-project:
mozilla-central: [{hour: 10, minute: 0}, {hour: 22, minute: 0}]
# No default
when: [] # never (hook only)
- name: nightly-desktop-linux
job:
@ -82,6 +92,17 @@ jobs:
- mozilla-central
when: [] # never (hook only)
- name: nightly-android
job:
type: decision-task
treeherder-symbol: Na
target-tasks-method: nightly-android
include-push-tasks: true
run-on-projects:
- mozilla-central
- oak
when: [] # hook only
- name: ship-geckoview
job:
type: decision-task
@ -389,17 +410,6 @@ jobs:
when:
- {hour: 0, minute: 0}
- name: nightly-android
job:
type: decision-task
treeherder-symbol: Na
target-tasks-method: nightly-android
include-push-tasks: true
run-on-projects:
- mozilla-central
- oak
when: [] # hook only
- name: android-l10n-import
job:
type: decision-task

View file

@ -1079,6 +1079,18 @@ def target_tasks_nightly_desktop(full_task_graph, parameters, graph_config):
)
@_target_task("nightly_all")
def target_tasks_nightly_all(full_task_graph, parameters, graph_config):
from android_taskgraph.target_tasks import (
target_tasks_nightly as target_tasks_nightly_android,
)
return list(
set(target_tasks_nightly_desktop(full_task_graph, parameters, graph_config))
| set(target_tasks_nightly_android(full_task_graph, parameters, graph_config))
)
# Run Searchfox analysis once daily.
@_target_task("searchfox_index")
def target_tasks_searchfox(full_task_graph, parameters, graph_config):