Skip to content

Commit

Permalink
Bug 1357112 - Add win64 nightly to Taskgraph. r=dustin
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 1ZCjVE53gSe

--HG--
extra : rebase_source : 3e4b59eb0821c9c1d4d462c6e6cca153feccced0
  • Loading branch information
Callek committed May 1, 2017
1 parent c90cf49 commit 23bef11
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ jobs:
- date
when: [] # never (hook only)

- name: nightly-desktop-win64
job:
type: decision-task
treeherder-symbol: Nd-Win64
triggered-by: nightly
target-tasks-method: nightly_win64
run-on-projects:
- date
when: [] # never (hook only)

- name: nightly-android
job:
type: decision-task
Expand Down
3 changes: 3 additions & 0 deletions taskcluster/ci/build-signing/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ kind-dependencies:

only-for-attributes:
- nightly

not-for-build-platforms:
- win64-nightly/opt
24 changes: 24 additions & 0 deletions taskcluster/ci/build/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,30 @@ win64/opt:
config:
- builds/taskcluster_firefox_windows_64_opt.py

win64-nightly/opt:
description: "Win64 Nightly"
index:
product: firefox
job-name: win64-opt
type: nightly
attributes:
nightly: true
treeherder:
platform: windows2012-64/opt
symbol: tc(N)
tier: 2
worker-type: aws-provisioner-v1/gecko-{level}-b-win2012
worker:
implementation: generic-worker
max-run-time: 7200
run:
using: mozharness
script: mozharness/scripts/fx_desktop_build.py
config:
- builds/taskcluster_firefox_windows_64_opt.py
- disable_signing.py
- taskcluster_nightly.py

win64/pgo:
description: "Win64 Opt PGO"
index:
Expand Down
19 changes: 17 additions & 2 deletions taskcluster/taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def filter(task):
if platform not in ['linux64']:
return False
if task.attributes.get('unittest_suite'):
if not (task.attributes['unittest_suite'].startswith('mochitest')
or 'xpcshell' in task.attributes['unittest_suite']):
if not (task.attributes['unittest_suite'].startswith('mochitest') or
'xpcshell' in task.attributes['unittest_suite']):
return False
return True
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
Expand Down Expand Up @@ -318,3 +318,18 @@ def filter(task):
if platform in ('macosx64-nightly', ):
return task.attributes.get('nightly', False)
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]


# nightly_win64 should be refactored to be nightly_all once
# https://bugzilla.mozilla.org/show_bug.cgi?id=1267425 dependent bugs are
# implemented
@_target_task('nightly_win64')
def target_tasks_nightly_win64(full_task_graph, parameters):
"""Select the set of tasks required for a nightly build of win64. The
nightly build process involves a pipeline of builds, signing,
and, eventually, uploading the tasks to balrog."""
def filter(task):
platform = task.attributes.get('build_platform')
if platform in ('win64-nightly', ):
return task.attributes.get('nightly', False)
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]

0 comments on commit 23bef11

Please sign in to comment.