File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed
mozillavpn_taskgraph/transforms Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ workers:
105
105
implementation : beetmover-import-from-gcs-to-artifact-registry
106
106
os : scriptworker
107
107
worker-type : ' mozillavpn-{level}-beetmover'
108
+ shipit :
109
+ provisioner : scriptworker-k8s
110
+ implementation : scriptworker-shipit
111
+ os : scriptworker
112
+ worker-type : ' mozillavpn-{level}-shipit'
108
113
succeed :
109
114
provisioner : built-in
110
115
implementation : succeed
@@ -126,3 +131,6 @@ release-promotion:
126
131
- fetch
127
132
- toolchain
128
133
- toolchain-openssl
134
+
135
+ shipit :
136
+ scope-prefix : project:mozillavpn:releng:ship-it
Original file line number Diff line number Diff line change
1
+ # This Source Code Form is subject to the terms of the Mozilla Public
2
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ ---
5
+ loader : taskgraph.loader.transform:loader
6
+
7
+ transforms :
8
+ - taskgraph.transforms.from_deps
9
+ - mozillavpn_taskgraph.transforms.set_name
10
+ - mozilla_taskgraph.transforms.scriptworker.shipit.mark_as_shipped
11
+ - taskgraph.transforms.task
12
+
13
+ kind-dependencies :
14
+ - beetmover-ship
15
+
16
+ tasks :
17
+ mark-as-shipped :
18
+ worker-type : shipit
19
+ from-deps :
20
+ group-by :
21
+ attribute : shipping-phase
22
+ copy-attributes : true
23
+ unique-kinds : false
24
+ set-name : false
25
+ shipit-product :
26
+ by-build-type :
27
+ addons/opt : mozilla-vpn-addons
28
+ default : mozilla-vpn-client
29
+ run-on-tasks-for : [action]
Original file line number Diff line number Diff line change
1
+ from taskgraph .transforms .base import TransformSequence
2
+ from taskgraph .util .dependencies import get_primary_dependency
3
+
4
+
5
+ transforms = TransformSequence ()
6
+
7
+
8
+ @transforms .add
9
+ def set_name (config , tasks ):
10
+ for task in tasks :
11
+ if config .kind == "mark-as-shipped" :
12
+ dep = get_primary_dependency (config , task )
13
+ assert dep
14
+
15
+ product = (
16
+ "addons" if dep .attributes ["build-type" ] == "addons/opt" else "client"
17
+ )
18
+ task ["name" ] = f"mark-as-shipped-{ product } "
19
+
20
+ yield task
You can’t perform that action at this time.
0 commit comments