Skip to content

Commit

Permalink
Bug 1288993 - Run valgrind-mochitest twice a day as a Tier 2 job. r=d…
Browse files Browse the repository at this point in the history
…ustin

MozReview-Commit-ID: HHGO66lHK0o
  • Loading branch information
jmaher committed Feb 6, 2017
1 parent bb1ed1d commit b48ad7b
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 @@ -25,3 +25,13 @@ jobs:
- date
when: [] # never (temporary)

- name: nightly-mochitest-valgrind
job:
type: decision-task
treeherder-symbol: Vg
target-tasks-method: mochitest_valgrind
run-on-projects:
- mozilla-central
when:
- {hour: 16, minute: 0}
- {hour: 4, minute: 0}
15 changes: 15 additions & 0 deletions taskcluster/taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,21 @@ def filter(task):
return [l for l in filtered_for_project if filter(full_task_graph[l])]


@_target_task('mochitest_valgrind')
def target_tasks_valgrind(full_task_graph, parameters):
"""Target tasks that only run on the cedar branch."""
def filter(task):
platform = task.attributes.get('build_platform')
# only select platforms
if platform not in ['linux64']:
return False
if task.attributes.get('unittest_suite'):
if not (task.attributes['unittest_suite'].startswith('mochitest-valgrind')):
return False
return True
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]


@_target_task('nightly_fennec')
def target_tasks_nightly(full_task_graph, parameters):
"""Select the set of tasks required for a nightly build of fennec. The
Expand Down

0 comments on commit b48ad7b

Please sign in to comment.