Bug 1383257 - When PGO runs tests via BBB they end up mixed in with the opt variant BBB tests. r=catlee
authorJustin Wood <Callek@gmail.com>
Tue, 25 Jul 2017 14:22:05 -0400
changeset 615916 935018d4d6ad4f16acb3e722612650bf36d8db52
parent 615915 200ed040aa1cdea82c1e74a0c4fbec6976bb7b5f
child 615917 030f98cf2cda3df87cb4a1bf3a2b8624e50bafc2
push id70526
push userCallek@gmail.com
push dateWed, 26 Jul 2017 14:50:52 +0000
reviewerscatlee
bugs1383257
milestone56.0a1
Bug 1383257 - When PGO runs tests via BBB they end up mixed in with the opt variant BBB tests. r=catlee for: Land changes to flip windows nightlies on, and to tier 1 on central MozReview-Commit-ID: 8JmEtOmPtGO
taskcluster/taskgraph/transforms/job/mozharness_test.py
--- a/taskcluster/taskgraph/transforms/job/mozharness_test.py
+++ b/taskcluster/taskgraph/transforms/job/mozharness_test.py
@@ -482,16 +482,21 @@ def mozharness_test_buildbot_bridge(conf
             variant=variant,
             branch=branch,
             test_name=test_name
         )
 
         if buildername.startswith('Ubuntu'):
             buildername = buildername.replace('VM', 'HW')
     else:
+        variant = get_variant(test['test-platform'])
+        # If we are a pgo type, munge the build_type for the
+        # Unittest builder name generation
+        if 'pgo' in variant:
+            build_type = variant
         buildername = '{} {} {} test {}'.format(
             BUILDER_NAME_PREFIX[test_platform],
             branch,
             build_type,
             test_name
         )
 
     worker.update({