Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaba
fenix
Commits
8c0dc7ff
Unverified
Commit
8c0dc7ff
authored
May 13, 2020
by
Johan Lorenzo
Committed by
GitHub
May 13, 2020
Browse files
Bug 1631839 - part 1: Expose new routes without `project.`" (#10182)
parent
7fc006a5
Changes
3
Show whitespace changes
Inline
Side-by-side
.taskcluster.yml
View file @
8c0dc7ff
...
@@ -8,7 +8,7 @@ tasks:
...
@@ -8,7 +8,7 @@ tasks:
-
$let
:
-
$let
:
taskgraph
:
taskgraph
:
branch
:
taskgraph
branch
:
taskgraph
revision
:
a8366f88fc8b35b284ad550358c89ec10133fb42
revision
:
760d9fb4d3dd59e7cbb2fb224cdbe983d0e5a525
trustDomain
:
mobile
trustDomain
:
mobile
in
:
in
:
$let
:
$let
:
...
@@ -168,11 +168,18 @@ tasks:
...
@@ -168,11 +168,18 @@ tasks:
# staging release promotion on forks.
# staging release promotion on forks.
-
$if
:
'
tasks_for
==
"github-push"'
-
$if
:
'
tasks_for
==
"github-push"'
then
:
then
:
-
index.mobile.v2.${project}.branch.${short_head_branch}.latest.taskgraph.decision
-
index.mobile.v2.${project}.branch.${short_head_branch}.revision.${head_sha}.taskgraph.decision
# TODO Bug 1631839: Remove the following routes once all consumers have migrated
-
index.project.mobile.${project}.v2.branch.${short_head_branch}.latest.taskgraph.decision
-
index.project.mobile.${project}.v2.branch.${short_head_branch}.latest.taskgraph.decision
-
index.project.mobile.${project}.v2.branch.${short_head_branch}.revision.${head_sha}.taskgraph.decision
-
index.project.mobile.${project}.v2.branch.${short_head_branch}.revision.${head_sha}.taskgraph.decision
-
$if
:
'
tasks_for
==
"cron"'
-
$if
:
'
tasks_for
==
"cron"'
then
:
then
:
# cron context provides ${head_branch} as a short one
# cron context provides ${head_branch} as a short one
-
index.mobile.v2.${project}.branch.${head_branch}.latest.taskgraph.decision-${cron.job_name}
-
index.mobile.v2.${project}.branch.${head_branch}.revision.${head_sha}.taskgraph.decision-${cron.job_name}
-
index.mobile.v2.${project}.branch.${head_branch}.revision.${head_sha}.taskgraph.cron.${ownTaskId}
# TODO Bug 1631839: Remove the following routes once all consumers have migrated
-
index.project.mobile.${project}.v2.branch.${head_branch}.latest.taskgraph.decision-${cron.job_name}
-
index.project.mobile.${project}.v2.branch.${head_branch}.latest.taskgraph.decision-${cron.job_name}
-
index.project.mobile.${project}.v2.branch.${head_branch}.revision.${head_sha}.taskgraph.decision-${cron.job_name}
-
index.project.mobile.${project}.v2.branch.${head_branch}.revision.${head_sha}.taskgraph.decision-${cron.job_name}
-
index.project.mobile.${project}.v2.branch.${head_branch}.revision.${head_sha}.taskgraph.cron.${ownTaskId}
-
index.project.mobile.${project}.v2.branch.${head_branch}.revision.${head_sha}.taskgraph.cron.${ownTaskId}
...
...
taskcluster/ci/config.yml
View file @
8c0dc7ff
...
@@ -25,7 +25,7 @@ taskgraph:
...
@@ -25,7 +25,7 @@ taskgraph:
repositories
:
repositories
:
mobile
:
mobile
:
name
:
"
Fenix"
name
:
"
Fenix"
cached-task-prefix
:
project.
mobile.fenix
cached-task-prefix
:
mobile.
v2.
fenix
decision-parameters
:
'
fenix_taskgraph.parameters:get_decision_parameters'
decision-parameters
:
'
fenix_taskgraph.parameters:get_decision_parameters'
workers
:
workers
:
...
@@ -35,24 +35,22 @@ workers:
...
@@ -35,24 +35,22 @@ workers:
implementation
:
docker-worker
implementation
:
docker-worker
os
:
linux
os
:
linux
worker-type
:
'
b-linux'
worker-type
:
'
b-linux'
images
:
provisioner
:
'
mobile-{level}'
implementation
:
docker-worker
os
:
linux
worker-type
:
'
images'
dep-signing
:
dep-signing
:
provisioner
:
scriptworker-k8s
provisioner
:
scriptworker-k8s
implementation
:
scriptworker-signing
implementation
:
scriptworker-signing
os
:
scriptworker
os
:
scriptworker
worker-type
:
mobile-t-signing
worker-type
:
mobile-t-signing
signing
:
images
:
provisioner
:
scriptworker-k8s
provisioner
:
'
mobile-{level}'
implementation
:
scriptworker-signing
implementation
:
docker-worker
os
:
scriptworker
os
:
linux
worker-type
:
worker-type
:
'
images'
by-level
:
# misc is used by taskgraph to generate tasks with more than 10 routes
"
3"
:
mobile-3-signing
misc
:
default
:
mobile-t-signing
provisioner
:
'
mobile-{level}'
implementation
:
docker-worker
os
:
linux
worker-type
:
'
b-linux'
push-apk
:
push-apk
:
provisioner
:
scriptworker-k8s
provisioner
:
scriptworker-k8s
implementation
:
scriptworker-pushapk
implementation
:
scriptworker-pushapk
...
@@ -63,6 +61,14 @@ workers:
...
@@ -63,6 +61,14 @@ workers:
implementation
:
scriptworker-shipit
implementation
:
scriptworker-shipit
os
:
scriptworker
os
:
scriptworker
worker-type
:
'
mobile-{level}-shipit'
worker-type
:
'
mobile-{level}-shipit'
signing
:
provisioner
:
scriptworker-k8s
implementation
:
scriptworker-signing
os
:
scriptworker
worker-type
:
by-level
:
"
3"
:
mobile-3-signing
default
:
mobile-t-signing
t-bitbar.*
:
t-bitbar.*
:
provisioner
:
proj-autophone
provisioner
:
proj-autophone
implementation
:
generic-worker
implementation
:
generic-worker
...
...
taskcluster/fenix_taskgraph/routes.py
View file @
8c0dc7ff
...
@@ -12,6 +12,12 @@ from taskgraph.transforms.task import index_builder
...
@@ -12,6 +12,12 @@ from taskgraph.transforms.task import index_builder
# In the future, notifying consumers may be easier (https://bugzilla.mozilla.org/show_bug.cgi?id=1548810), but
# In the future, notifying consumers may be easier (https://bugzilla.mozilla.org/show_bug.cgi?id=1548810), but
# we need to remember to tell users for the time being
# we need to remember to tell users for the time being
SIGNING_ROUTE_TEMPLATES
=
[
SIGNING_ROUTE_TEMPLATES
=
[
"index.{trust-domain}.v2.{project}.{variant}.latest.{abi}"
,
"index.{trust-domain}.v2.{project}.{variant}.{build_date}.revision.{head_rev}.{abi}"
,
"index.{trust-domain}.v2.{project}.{variant}.{build_date}.latest.{abi}"
,
"index.{trust-domain}.v2.{project}.{variant}.revision.{head_rev}.{abi}"
,
# TODO Bug 1631839: Remove the following scopes once all consumers have migrated
"index.project.{trust-domain}.{project}.v2.{variant}.{build_date}.revision.{head_rev}"
,
"index.project.{trust-domain}.{project}.v2.{variant}.{build_date}.revision.{head_rev}"
,
"index.project.{trust-domain}.{project}.v2.{variant}.{build_date}.latest"
,
"index.project.{trust-domain}.{project}.v2.{variant}.{build_date}.latest"
,
"index.project.{trust-domain}.{project}.v2.{variant}.latest"
,
"index.project.{trust-domain}.{project}.v2.{variant}.latest"
,
...
@@ -20,8 +26,6 @@ SIGNING_ROUTE_TEMPLATES = [
...
@@ -20,8 +26,6 @@ SIGNING_ROUTE_TEMPLATES = [
@
index_builder
(
"signing"
)
@
index_builder
(
"signing"
)
def
add_signing_indexes
(
config
,
task
):
def
add_signing_indexes
(
config
,
task
):
routes
=
task
.
setdefault
(
"routes"
,
[])
if
config
.
params
[
"level"
]
!=
"3"
:
if
config
.
params
[
"level"
]
!=
"3"
:
return
task
return
task
...
@@ -32,6 +36,11 @@ def add_signing_indexes(config, task):
...
@@ -32,6 +36,11 @@ def add_signing_indexes(config, task):
subs
[
"trust-domain"
]
=
config
.
graph_config
[
"trust-domain"
]
subs
[
"trust-domain"
]
=
config
.
graph_config
[
"trust-domain"
]
subs
[
"variant"
]
=
task
[
"attributes"
][
"build-type"
]
subs
[
"variant"
]
=
task
[
"attributes"
][
"build-type"
]
unique_routes
=
set
()
for
tpl
in
SIGNING_ROUTE_TEMPLATES
:
for
tpl
in
SIGNING_ROUTE_TEMPLATES
:
routes
.
append
(
tpl
.
format
(
**
subs
))
for
abi
in
task
[
"attributes"
][
"apks"
].
keys
():
subs
[
"abi"
]
=
abi
unique_routes
.
add
(
tpl
.
format
(
**
subs
))
task
.
setdefault
(
"routes"
,
sorted
(
list
(
unique_routes
)))
return
task
return
task
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment