Bug 1513000 - Create action to trigger Openh264. r=tomprince
authorJustin Wood <Callek@gmail.com>
Fri, 01 Mar 2019 02:18:42 +0000
changeset 519730 26021d8ebb2772d070b99969757ef22b73a1d21f
parent 519729 81a50b35b482f6a24a3231ffcd7766381012035a
child 519731 60128088f86203d665367e195c5fafefd94fe6e7
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstomprince
bugs1513000
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1513000 - Create action to trigger Openh264. r=tomprince Differential Revision: https://phabricator.services.mozilla.com/D20850
taskcluster/taskgraph/actions/openh264.py
new file mode 100644
--- /dev/null
+++ b/taskcluster/taskgraph/actions/openh264.py
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+
+# 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/.
+
+from __future__ import absolute_import, print_function, unicode_literals
+
+from .registry import register_callback_action
+
+from .util import (
+    create_tasks,
+    fetch_graph_and_labels,
+)
+
+
+@register_callback_action(
+    name='openh264',
+    title='OpenH264 Binaries',
+    symbol='h264',
+    description="Action to prepare openh264 binaries for shipping",
+    kind='hook',
+    context=[],
+)
+def openh264_action(parameters, graph_config, input, task_group_id, task_id):
+    decision_task_id, full_task_graph, label_to_taskid = fetch_graph_and_labels(
+        parameters, graph_config)
+    to_run = [label
+              for label, entry
+              in full_task_graph.tasks.iteritems() if 'openh264' in entry.kind]
+    create_tasks(to_run, full_task_graph, label_to_taskid, parameters, decision_task_id)