bug 1384794 - single hook for tc desktop nightlies (unify buildids) r=callek DONTBUILD

MozReview-Commit-ID: A0yzLvh9x3U

--HG--
extra : rebase_source : f67f2692101070d71dea82ada2d14f94b95e7c11
extra : histedit_source : 2a3e1eee7da54e612ff94fde8efe4b388f490bcc
This commit is contained in:
Aki Sasaki 2017-07-27 09:23:41 -07:00
parent 302794ab83
commit e36db901ee
3 changed files with 26 additions and 14 deletions

View File

@ -7,7 +7,7 @@ jobs:
job:
type: decision-task
treeherder-symbol: Nd
target-tasks-method: nightly_linux
target-tasks-method: nightly_desktop
run-on-projects:
- mozilla-central
- date
@ -18,6 +18,16 @@ jobs:
mozilla-central: [{hour: 10, minute: 0}]
# No default
- name: nightly-desktop-linux
job:
type: decision-task
treeherder-symbol: Nd-Ln
target-tasks-method: nightly_linux
run-on-projects:
- mozilla-central
- date
when: [] # never (hook only)
- name: nightly-desktop-osx
job:
type: decision-task
@ -26,12 +36,7 @@ jobs:
run-on-projects:
- mozilla-central
- date
when:
by-project:
# Match buildbot starts for now
date: [{hour: 15, minute: 0}]
mozilla-central: [{hour: 10, minute: 0}]
# No default
when: [] # never (hook only)
- name: nightly-desktop-win
job:

View File

@ -291,9 +291,6 @@ def target_tasks_pine(full_task_graph, parameters):
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
# nightly_linux should be refactored to be nightly_all once
# https://bugzilla.mozilla.org/show_bug.cgi?id=1267425 dependent bugs are
# implemented
@_target_task('nightly_macosx')
def target_tasks_nightly_macosx(full_task_graph, parameters):
"""Select the set of tasks required for a nightly build of macosx. The
@ -306,11 +303,8 @@ def target_tasks_nightly_macosx(full_task_graph, parameters):
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
# nightly_win should be refactored to be nightly_all once
# https://bugzilla.mozilla.org/show_bug.cgi?id=1267428 dependent bugs are
# implemented
@_target_task('nightly_win')
def target_tasks_nightly_win64(full_task_graph, parameters):
def target_tasks_nightly_win(full_task_graph, parameters):
"""Select the set of tasks required for a nightly build of win32 and win64.
The nightly build process involves a pipeline of builds, signing,
and, eventually, uploading the tasks to balrog."""
@ -323,6 +317,18 @@ def target_tasks_nightly_win64(full_task_graph, parameters):
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
@_target_task('nightly_desktop')
def target_tasks_nightly_desktop(full_task_graph, parameters):
"""Select the set of tasks required for a nightly build of linux, mac,
windows."""
# Avoid duplicate tasks.
return list(
set(target_tasks_nightly_win(full_task_graph, parameters))
| set(target_tasks_nightly_macosx(full_task_graph, parameters))
| set(target_tasks_nightly_linux(full_task_graph, parameters))
)
# Opt DMD builds should only run nightly
@_target_task('nightly_dmd')
def target_tasks_dmd(full_task_graph, parameters):

View File

@ -100,6 +100,7 @@ BEETMOVER_SCOPE_ALIAS_TO_TARGET_TASK = [[
'nightly_linux',
'nightly_macosx',
'nightly_win',
'nightly_desktop',
'mozilla_beta_tasks',
'mozilla_release_tasks',
])