Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1357867 - Land in progress OSX cross compile nightly support. r=d…
Browse files Browse the repository at this point in the history
…ustin

This commit adds the target_tasks method to trigger nightlies, and the unscheduled cron entry.

MozReview-Commit-ID: ELcZcUGPg2T
  • Loading branch information
Callek committed Apr 18, 2017
1 parent 144dc07 commit c9465cc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
mozilla-aurora: [{hour: 7, minute: 45}] # Buildbot uses minute 40
# No default

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

- name: nightly-android
job:
type: decision-task
Expand Down
15 changes: 15 additions & 0 deletions taskcluster/taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,18 @@ def filter(task):
return False
return True
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
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 ('macosx64-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 c9465cc

Please sign in to comment.