gecko-dev/taskcluster/taskgraph/transforms/openh264.py
Sebastian Hengst a23651529b Bug 1620610 - Remove coalescing for tasks. r=catlee
Bug 1602446 disabled coalescing for tasks which was designed to reduce load on
the pools which ran those tasks by skipping some of them. After coalescing was
affecting almost no tasks, it started to coalesce more tasks in November 2019
(bug 1602446) up to a level for which too few tasks ran and test coverage was
impacted. Coalescing got disabled and the conclusion is that coalescing is
currently not needed.

Differential Revision: https://phabricator.services.mozilla.com/D65733

--HG--
extra : moz-landing-system : lando
2020-03-06 15:52:51 +00:00

28 lines
929 B
Python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
This transform is used to help populate mozharness options for openh264 jobs
"""
from __future__ import absolute_import, print_function, unicode_literals
from taskgraph.transforms.base import TransformSequence
transforms = TransformSequence()
@transforms.add
def set_mh_options(config, jobs):
"""
This transform sets the 'openh264_rev' attribute.
"""
for job in jobs:
repo = job.pop('repo')
rev = job.pop('revision')
attributes = job.setdefault('attributes', {})
attributes['openh264_rev'] = rev
run = job.setdefault('run', {})
options = run.setdefault('options', [])
options.extend(['repo={}'.format(repo), 'rev={}'.format(rev)])
yield job