Bug 1326465 - add BUG_COMPONENTS to testing/. r=gbrown,ted
authorJoel Maher <jmaher@mozilla.com>
Fri, 30 Dec 2016 16:16:56 -0500
changeset 372726 867540931e359311d1a57de6e99ce4fcb121dbdf
parent 372725 4176cf985a199de2156d219a57137ca9ccb907c0
child 372727 5967612b05140738c3ffc68f72cfadc9f304a848
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown, ted
bugs1326465
milestone53.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 1326465 - add BUG_COMPONENTS to testing/. r=gbrown,ted ensuring moz.build files have BUG_COMPONENTS for all files in the testing/ subdirectory is a win. There are a lot of older files and some files used in many harnesses. If the files are primarily used for mochitest, they are associated with the testing::mochitest component, otherwise I chose the testing::general component. There is an exception web-platform-tests, these have many test files that need to be matched to proper components. MozReview-Commit-ID: IIv9W2kEqeN
testing/instrumentation/moz.build
testing/mochitest/moz.build
testing/modules/moz.build
testing/mozbase/moz.build
testing/profiles/moz.build
testing/runtimes/moz.build
testing/web-platform/moz.build
testing/xpcshell/moz.build
--- a/testing/instrumentation/moz.build
+++ b/testing/instrumentation/moz.build
@@ -2,8 +2,11 @@
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 TEST_HARNESS_FILES.instrumentation += [
     'runinstrumentation.py',
 ]
+
+with Files("**"):
+    BUG_COMPONENT = ("Firefox for Android", "Testing")
--- a/testing/mochitest/moz.build
+++ b/testing/mochitest/moz.build
@@ -160,8 +160,25 @@ TEST_HARNESS_FILES.testing.mochitest.ice
     '/testing/tools/iceserver/iceserver.py',
 ]
 
 TEST_HARNESS_FILES.testing.mochitest.websocketprocessbridge += [
     '/testing/tools/websocketprocessbridge/websocketprocessbridge.py',
     '/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements.txt',
 ]
 
+with Files("**"):
+    BUG_COMPONENT = ("Testing", "Mochitest")
+
+with Files("chrome/**"):
+    BUG_COMPONENT = ("Testing", "Mochitest Chrome")
+
+with Files("chrome-harness.js"):
+    BUG_COMPONENT = ("Testing", "Mochitest Chrome")
+
+with Files("BrowserTestUtils/**"):
+    BUG_COMPONENT = ("Testing", "BrowserTest")
+
+with Files("browser*"):
+    BUG_COMPONENT = ("Testing", "BrowserTest")
+
+with Files("tests/browser/**"):
+    BUG_COMPONENT = ("Testing", "BrowserTest")
--- a/testing/modules/moz.build
+++ b/testing/modules/moz.build
@@ -21,8 +21,17 @@ TESTING_JS_MODULES += [
 
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
     TESTING_JS_MODULES += [
         'MockRegistry.jsm',
     ]
 
 
 TEST_HARNESS_FILES.testing.mochitest.tests.SimpleTest += ['StructuredLog.jsm']
+
+with Files("**"):
+    BUG_COMPONENT = ("Testing", "General")
+
+with Files("tests/xpcshell/**"):
+    BUG_COMPONENT = ("Testing", "XPCShell Harness")
+
+with Files("tests/browser/**"):
+    BUG_COMPONENT = ("Testing", "BrowserTest")
--- a/testing/mozbase/moz.build
+++ b/testing/mozbase/moz.build
@@ -42,8 +42,11 @@ python_modules = [
     'mozversion',
 ]
 
 TEST_HARNESS_FILES.mozbase += [m + '/**' for m in python_modules]
 
 TEST_HARNESS_FILES.mozbase += [
     'setup_development.py',
 ]
+
+with Files('**'):
+    BUG_COMPONENT = ('Testing', 'Mozbase')
\ No newline at end of file
--- a/testing/profiles/moz.build
+++ b/testing/profiles/moz.build
@@ -5,8 +5,11 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 mochitest_profile_files = [
     'prefs_general.js',
 ]
 
 TEST_HARNESS_FILES.testing.mochitest.profile_data += mochitest_profile_files
 TEST_HARNESS_FILES['web-platform'].prefs += mochitest_profile_files
+
+with Files("**"):
+    BUG_COMPONENT = ("Testing", "Mochitest")
--- a/testing/runtimes/moz.build
+++ b/testing/runtimes/moz.build
@@ -2,8 +2,11 @@
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 TEST_HARNESS_FILES.testing.mochitest.runtimes += [
     '**/mochitest-*.runtimes.json',
 ]
+
+with Files("**"):
+    BUG_COMPONENT = ("Testing", "Mochitest")
\ No newline at end of file
--- a/testing/web-platform/moz.build
+++ b/testing/web-platform/moz.build
@@ -16,8 +16,23 @@ TEST_HARNESS_FILES['web-platform'] += [
     'wptrunner.ini'
 ]
 
 TEST_HARNESS_FILES['web-platform'].certs = [
     'certs/cacert.pem',
     'certs/web-platform.test.key',
     'certs/web-platform.test.pem',
 ]
+
+with Files("update/**"):
+    BUG_COMPONENT = ("Testing", "web-platform-tests")
+
+with Files("harness/**"):
+    BUG_COMPONENT = ("Testing", "web-platform-tests")
+
+with Files("certs/**"):
+    BUG_COMPONENT = ("Testing", "web-platform-tests")
+
+with Files("mach*"):
+    BUG_COMPONENT = ("Testing", "web-platform-tests")
+
+with Files("*.py"):
+    BUG_COMPONENT = ("Testing", "web-platform-tests")
--- a/testing/xpcshell/moz.build
+++ b/testing/xpcshell/moz.build
@@ -8,8 +8,11 @@ TEST_DIRS += ['example']
 
 PYTHON_UNITTEST_MANIFESTS += [
     'python.ini',
 ]
 
 TESTING_JS_MODULES += [
     'dbg-actors.js',
 ]
+
+with Files("**"):
+    BUG_COMPONENT = ("Testing", "XPCShell Harness")
\ No newline at end of file