Skip to content
Permalink
Browse files

Group WPT chunks together in Treeherder

  • Loading branch information
SimonSapin committed Jan 7, 2020
1 parent 709e069 commit 01b44f695b82586c6a9fd25cd2d3166881912a2d
Showing with 17 additions and 8 deletions.
  1. +6 −1 etc/taskcluster/decision_task.py
  2. +11 −7 etc/taskcluster/decisionlib.py
@@ -708,7 +708,12 @@ def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
total_chunks,
width=len(str(total_chunks)),
))
.with_treeherder(platform, "%sWPT-%s" % (job_id_prefix, this_chunk))
.with_treeherder(
platform,
"WPT-%s" % this_chunk,
group_symbol=job_id_prefix + "WPT",
group_name=name_prefix + "web-platform-tests"
)
.with_curl_artifact_script(build_task, "target.tar.gz")
.with_script("tar -xzf target.tar.gz")
.with_index_and_artifacts_expire_in(log_artifacts_expire_in)
@@ -172,7 +172,7 @@ def with_treeherder_required(self):
self.treeherder_required = True
return self

def with_treeherder(self, category, symbol):
def with_treeherder(self, category, symbol, group_name=None, group_symbol=None):
assert len(symbol) <= 25, symbol
self.name = "%s: %s" % (category, self.name)

@@ -185,12 +185,16 @@ def with_treeherder(self, category, symbol):
platform = parts[0]
labels = parts[1:] or ["_"]

# https://docs.taskcluster.net/docs/reference/integrations/taskcluster-treeherder/docs/task-treeherder-config
self.with_extra(treeherder={
"machine": {"platform": platform},
"labels": labels,
"symbol": symbol,
})
# https://github.com/mozilla/treeherder/blob/master/schemas/task-treeherder-config.yml
self.with_extra(treeherder=dict_update_if_truthy(
{
"machine": {"platform": platform},
"labels": labels,
"symbol": symbol,
},
groupName=group_name,
groupSymbol=group_symbol,
))

if CONFIG.treeherder_repository_name:
assert CONFIG.git_sha

0 comments on commit 01b44f6

Please sign in to comment.
You can’t perform that action at this time.