Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump mozilla-taskgraph from 1.5.0 to 2.0.3 in /taskcluster #252

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions taskcluster/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ workers:
implementation: beetmover-import-from-gcs-to-artifact-registry
os: scriptworker
worker-type: 'mozillavpn-{level}-beetmover'
shipit:
provisioner: scriptworker-k8s
implementation: scriptworker-shipit
os: scriptworker
worker-type: 'mozillavpn-{level}-shipit'
succeed:
provisioner: built-in
implementation: succeed
Expand All @@ -126,3 +131,6 @@ release-promotion:
- fetch
- toolchain
- toolchain-openssl

shipit:
scope-prefix: project:mozillavpn:releng:ship-it
29 changes: 29 additions & 0 deletions taskcluster/kinds/mark-as-shipped/kind.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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/.
---
loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.from_deps
- mozillavpn_taskgraph.transforms.set_name
- mozilla_taskgraph.transforms.scriptworker.shipit.mark_as_shipped
- taskgraph.transforms.task

kind-dependencies:
- beetmover-ship

tasks:
mark-as-shipped:
worker-type: shipit
from-deps:
group-by:
attribute: shipping-phase
copy-attributes: true
unique-kinds: false
set-name: false
shipit-product:
by-build-type:
addons/opt: mozilla-vpn-addons
default: mozilla-vpn-client
run-on-tasks-for: [action]
20 changes: 20 additions & 0 deletions taskcluster/mozillavpn_taskgraph/transforms/set_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from taskgraph.transforms.base import TransformSequence
from taskgraph.util.dependencies import get_primary_dependency


transforms = TransformSequence()


@transforms.add
def set_name(config, tasks):
for task in tasks:
if config.kind == "mark-as-shipped":
dep = get_primary_dependency(config, task)
assert dep

product = (
"addons" if dep.attributes["build-type"] == "addons/opt" else "client"
)
task["name"] = f"mark-as-shipped-{product}"

yield task
6 changes: 3 additions & 3 deletions taskcluster/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ mozilla-repo-urls==0.1.1 \
--hash=sha256:30510d3519479aa70211145d0ac9cf6e2fadcb8d30fa3b196bb957bd773502ba \
--hash=sha256:7364da790751db2a060eb45adbf1d7db89a145ed279ba235f3425db9dd255915
# via taskcluster-taskgraph
mozilla-taskgraph==1.5.0 \
--hash=sha256:7399b51a0b25dc9d2617fc10aa1fca656a08b4198918f7a7d15a75c4353e45ef \
--hash=sha256:f472faf8705402ead88dae4f439da1d80def25eb60bfa69c4911a04f57075e34
mozilla-taskgraph==2.0.3 \
--hash=sha256:4a5d1eb2682e61b2956b0bf26098acd96638a362f594110637eb5f9b43c7d93b \
--hash=sha256:92705caf3636afcc4e4ac45b3b80154ecad3a0ee0cb0cd209190155cd65555fa
# via -r requirements.in
pygments==2.17.2 \
--hash=sha256:b27c2826c47d0f3219f29554824c30c5e8945175d888647acd804ddd04af846c \
Expand Down