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

Commit

Permalink
Bug 1402457 - Actually schedule periodic file updates. r=dustin
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: BJsNs86kNJu
  • Loading branch information
Callek committed Sep 25, 2017
1 parent 077d421 commit 0a6c6dc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,18 @@ jobs:
by-project:
mozilla-central: [{hour: 10, minute: 0}]
# No default

- name: periodic-update
job:
type: decision-task
treeherder-symbol: Nfile
target-tasks-method: nightly_file_update
run-on-projects:
- mozilla-central
when:
by-project:
# No default branch
mozilla-central:
# Buildbot start time is 10:02am UTC, until we are able to
# disable buildbot scheduling, use +12h
- {hour: 22, minute: 0}
10 changes: 10 additions & 0 deletions taskcluster/taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,13 @@ def filter(task):
platform = task.attributes.get('build_platform', '')
return platform.endswith('-dmd')
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]


@_target_task('nightly_file_update')
def target_tasks_file_update(full_task_graph, parameters):
"""Select the set of tasks required to perform nightly in-tree file updates
"""
def filter(task):
# For now any task in the repo-update kind is ok
return task.kind not in ['repo-update']
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
2 changes: 0 additions & 2 deletions taskcluster/taskgraph/transforms/job/buildbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def mozharness_on_buildbot_bridge(config, job, taskdesc):
branch = config.params['project']
product = run['product']

worker.pop('env', None)

buildername = run['buildername'].format(branch=branch)

worker.update({
Expand Down

0 comments on commit 0a6c6dc

Please sign in to comment.