Bug 1277975 - Add jobKind to task definitions r=dustin
Adding jobKind to task definitions allow tasks to be categorized appropriately on
treeherder once jobs are consumed via pulse messages. The available options are:
test, build, and other.
This should cover most of the tasks within the graph and if there are any issues,
it will not cause the job to not show up, but might affect job failure color.
Any tasks not covered by this change will default to "other" within treeherder.
MozReview-Commit-ID: 6fq25JvpDXz
--- a/taskcluster/ci/docker-image/image.yml
+++ b/taskcluster/ci/docker-image/image.yml
@@ -44,14 +44,15 @@ task:
type: 'file'
path: '/artifacts/image.tar'
expires: '{{#from_now}}1 year{{/from_now}}'
extra:
treeherderEnv:
- staging
- production
treeherder:
+ jobKind: other
revision: {{head_rev}}
revision_hash: {{revision_hash}}
build:
platform: 'taskcluster-images'
symbol: 'I'
--- a/taskcluster/ci/legacy/tasks/build.yml
+++ b/taskcluster/ci/legacy/tasks/build.yml
@@ -33,11 +33,12 @@ task:
extra:
build_product: '{{build_product}}'
build_name: '{{build_name}}'
build_type: '{{build_type}}'
index:
rank: {{pushlog_id}}
treeherder:
+ jobKind: build
groupSymbol: tc
groupName: Submitted by taskcluster
symbol: B
--- a/taskcluster/ci/legacy/tasks/harness_test.yml
+++ b/taskcluster/ci/legacy/tasks/harness_test.yml
@@ -62,10 +62,11 @@ task:
build_name: '{{build_name}}'
build_type: '{{build_type}}'
locations:
build: null
tests: null
index:
rank: {{pushlog_id}}
treeherder:
+ jobKind: test
groupSymbol: tc
groupName: Submitted by taskcluster
--- a/taskcluster/ci/legacy/tasks/image.yml
+++ b/taskcluster/ci/legacy/tasks/image.yml
@@ -41,12 +41,13 @@ task:
type: 'file'
path: '/artifacts/image.tar'
expires: '{{#from_now}}1 year{{/from_now}}'
extra:
treeherderEnv:
- staging
- production
treeherder:
+ jobKind: other
build:
platform: 'taskcluster-images'
symbol: 'I'
--- a/taskcluster/ci/legacy/tasks/lint.yml
+++ b/taskcluster/ci/legacy/tasks/lint.yml
@@ -33,8 +33,10 @@ task:
level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
extra:
build_product: '{{build_product}}'
build_name: {{build_name}}
build_type: {{build_type}}
index:
rank: {{pushlog_id}}
+ treeherder:
+ jobKind: test
--- a/taskcluster/ci/legacy/tasks/phone_build.yml
+++ b/taskcluster/ci/legacy/tasks/phone_build.yml
@@ -58,11 +58,12 @@ task:
extra:
build_product: 'b2g'
build_name: '{{build_name}}'
build_type: '{{build_type}}'
index:
rank: {{pushlog_id}}
treeherder:
+ jobKind: build
groupSymbol: tc
groupName: Submitted by taskcluster
symbol: B
--- a/taskcluster/ci/legacy/tasks/post-builds/mulet_simulator.yml
+++ b/taskcluster/ci/legacy/tasks/post-builds/mulet_simulator.yml
@@ -53,11 +53,12 @@ task:
GECKO_HEAD_REV: '{{head_rev}}'
GECKO_HEAD_REF: '{{head_ref}}'
extra:
treeherderEnv:
- production
- staging
treeherder:
+ jobKind: build
groupSymbol: tc-Sim
groupName: Simulator build
symbol: 'S'
--- a/taskcluster/ci/legacy/tasks/test.yml
+++ b/taskcluster/ci/legacy/tasks/test.yml
@@ -38,10 +38,11 @@ task:
path: '/home/worker/workspace/build/blobber_upload_dir/'
expires: '{{#from_now}}1 year{{/from_now}}'
extra:
chunks:
total: 1
current: {{chunk}}
treeherder:
+ jobKind: test
groupSymbol: tc
groupName: Submitted by taskcluster
--- a/taskcluster/ci/legacy/tasks/windows_build.yml
+++ b/taskcluster/ci/legacy/tasks/windows_build.yml
@@ -9,11 +9,12 @@ task:
type: 'directory'
path: 'public\build'
expires: '{{#from_now}}1 year{{/from_now}}'
extra:
treeherderEnv:
- production
- staging
treeherder:
+ jobKind: build
machine:
# https://github.com/mozilla/treeherder/blob/master/ui/js/values.js
platform: {{platform}}