Bug 1657192 - Add a 'tests_grouped' tag to tasks for suites that are chunked in the taskgraph. r=ahal DONTBUILD
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Wed, 05 Aug 2020 14:27:31 +0000
changeset 543405 d87e870c08fbc2bfc11de05fdf0187fcbe13238b
parent 543404 c24f6a05294be13aca0cb7bd4eda63d6f3ba95ad
child 543406 952d83dcfb11865077c1007edbacb54410922758
push id37673
push userapavel@mozilla.com
push dateWed, 05 Aug 2020 21:44:54 +0000
treeherdermozilla-central@26de281d4c21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1657192
milestone81.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1657192 - Add a 'tests_grouped' tag to tasks for suites that are chunked in the taskgraph. r=ahal DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D85908
taskcluster/taskgraph/transforms/tests.py
--- a/taskcluster/taskgraph/transforms/tests.py
+++ b/taskcluster/taskgraph/transforms/tests.py
@@ -1444,16 +1444,20 @@ def set_test_manifests(config, tasks):
     loader_cls = manifest_loaders[config.params['test_manifest_loader']]
     loader = loader_cls(config.params)
 
     for task in tasks:
         if task['suite'] in CHUNK_SUITES_BLACKLIST:
             yield task
             continue
 
+        # Set 'tests_grouped' to "1", so we can differentiate between suites that are
+        # chunked at the test runtime and those that are chunked in the taskgraph.
+        task.setdefault("tags", {})["tests_grouped"] = "1"
+
         if taskgraph.fast:
             # We want to avoid evaluating manifests when taskgraph.fast is set. But
             # manifests are required for dynamic chunking. Just set the number of
             # chunks to one in this case.
             if task['chunks'] == 'dynamic':
                 task['chunks'] = 1
             yield task
             continue