mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Taskcluster-Treeherder only supports submitting to one Treeherder repo :(
ff5261151a/src/handler.js (L65-L70)
This commit is contained in:
parent
4cd200dd61
commit
be69c01ba7
2 changed files with 4 additions and 6 deletions
|
@ -12,7 +12,7 @@ from decisionlib import CONFIG, SHARED
|
||||||
def main(task_for):
|
def main(task_for):
|
||||||
assert CONFIG.git_ref.startswith("refs/heads/")
|
assert CONFIG.git_ref.startswith("refs/heads/")
|
||||||
branch = CONFIG.git_ref[len("refs/heads/"):]
|
branch = CONFIG.git_ref[len("refs/heads/"):]
|
||||||
CONFIG.treeherder_repository_names.append("servo-" + branch)
|
CONFIG.treeherder_repository_name = "servo-" + branch
|
||||||
|
|
||||||
if task_for == "github-push":
|
if task_for == "github-push":
|
||||||
# FIXME https://github.com/servo/servo/issues/22325 implement these:
|
# FIXME https://github.com/servo/servo/issues/22325 implement these:
|
||||||
|
@ -39,8 +39,6 @@ def main(task_for):
|
||||||
# Add functions here as needed, in your push to that branch
|
# Add functions here as needed, in your push to that branch
|
||||||
],
|
],
|
||||||
"master": [
|
"master": [
|
||||||
# Also show these tasks in https://treeherder.mozilla.org/#/jobs?repo=servo-auto
|
|
||||||
lambda: CONFIG.treeherder_repository_names.append("servo-auto"),
|
|
||||||
upload_docs,
|
upload_docs,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Config:
|
||||||
self.docker_image_buil_worker_type = None
|
self.docker_image_buil_worker_type = None
|
||||||
self.docker_images_expire_in = "1 month"
|
self.docker_images_expire_in = "1 month"
|
||||||
self.repacked_msi_files_expire_in = "1 month"
|
self.repacked_msi_files_expire_in = "1 month"
|
||||||
self.treeherder_repository_names = []
|
self.treeherder_repository_name = None
|
||||||
|
|
||||||
# Set by docker-worker:
|
# Set by docker-worker:
|
||||||
# https://docs.taskcluster.net/docs/reference/workers/docker-worker/docs/environment
|
# https://docs.taskcluster.net/docs/reference/workers/docker-worker/docs/environment
|
||||||
|
@ -161,9 +161,9 @@ class Task:
|
||||||
"symbol": symbol,
|
"symbol": symbol,
|
||||||
})
|
})
|
||||||
|
|
||||||
for repo in CONFIG.treeherder_repository_names:
|
if CONFIG.treeherder_repository_name:
|
||||||
assert CONFIG.git_sha
|
assert CONFIG.git_sha
|
||||||
suffix = ".v2._/%s.%s" % (repo, CONFIG.git_sha)
|
suffix = ".v2._/%s.%s" % (CONFIG.treeherder_repository_name, CONFIG.git_sha)
|
||||||
self.with_routes(
|
self.with_routes(
|
||||||
"tc-treeherder" + suffix,
|
"tc-treeherder" + suffix,
|
||||||
"tc-treeherder-staging" + suffix,
|
"tc-treeherder-staging" + suffix,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue