Skip to content

Commit

Permalink
Bug 1493071 Rename bouncer_check cron task r=mtabara
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Fraser committed Sep 24, 2018
1 parent 1e6f345 commit 974e9d9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
job:
type: decision-task
treeherder-symbol: Rel
target-tasks-method: bouncer_check
target-tasks-method: cron_bouncer_check
run-on-projects:
- mozilla-beta
- mozilla-release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ job-defaults:
name: bouncer-check
description: bouncer check
run-on-projects: [] # to make sure this never runs as part of CI
shipping-phase: push
worker-type: aws-provisioner-v1/gecko-{level}-b-linux
worker:
max-run-time: 1200
Expand Down
4 changes: 2 additions & 2 deletions taskcluster/docs/kinds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ release-bouncer-aliases
-----------------------
Update Bouncer's (download.mozilla.org) "latest" aliases.

bouncer-check
-------------
cron-bouncer-check
------------------
Checks Bouncer (download.mozilla.org) uptake.

bouncer-locations
Expand Down
4 changes: 2 additions & 2 deletions taskcluster/taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,11 @@ def filter(task):
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]


@_target_task('bouncer_check')
@_target_task('cron_bouncer_check')
def target_tasks_bouncer_check(full_task_graph, parameters, graph_config):
"""Select the set of tasks required to perform bouncer version verification.
"""
def filter(task):
# For now any task in the repo-update kind is ok
return task.kind in ['bouncer-check']
return task.kind in ['cron-bouncer-check']
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
2 changes: 1 addition & 1 deletion taskcluster/taskgraph/transforms/bouncer_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def handle_keyed_by(config, jobs):
for cfg in job["run"]["config"]:
job["run"]["command"].extend(["--config", cfg])

if config.kind == "bouncer-check":
if config.kind == "cron-bouncer-check":
job["run"]["command"].extend([
"--product-field={}".format(job["run"]["product-field"]),
"--products-url={}".format(job["run"]["products-url"]),
Expand Down

0 comments on commit 974e9d9

Please sign in to comment.