Bug 1654589 - Move `libpref` Python unit test to `mozbuild` suite r=froydnj,mccr8
authorRicky Stewart <rstewart@mozilla.com>
Thu, 23 Jul 2020 22:00:46 +0000
changeset 541854 1245f6702e787c214f7ac9e9d71776a18e54b936
parent 541853 76b5a5d243d16d4cd0ba9b640fdd4ae9d5f8555b
child 541855 ff32132cb49015052ed879589404eaa741f7b6c5
push id122533
push userrstewart@mozilla.com
push dateThu, 23 Jul 2020 22:14:17 +0000
treeherderautoland@1245f6702e78 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj, mccr8
bugs1654589
milestone80.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 1654589 - Move `libpref` Python unit test to `mozbuild` suite r=froydnj,mccr8 It could go into its own test suite, but it 1) depends on `mozbuild` code, so the `mozbuild` suite as well as this new suite would be running on any push that touches `mozbuild` code anyway, and 2) this is code that runs during the build, so it's not out of place. Differential Revision: https://phabricator.services.mozilla.com/D84547
ipc/ipdl/test/ipdl/sync-messages.ini
modules/libpref/test/python.ini
taskcluster/ci/source-test/python.yml
testing/testsuite-targets.mk
--- a/ipc/ipdl/test/ipdl/sync-messages.ini
+++ b/ipc/ipdl/test/ipdl/sync-messages.ini
@@ -1,16 +1,20 @@
 [Pactorreturn::Msg]
 description = test only
 [Parray_Union::Msg]
 description = test only
 [Punion_Basic::Msg]
 description = test only
 [PStruct::test]
 description = test only
+[PStructComparable::test]
+description = test only
+[Punion_Comparable::test]
+description = test only
 [PintrProtocol::SyncMsg]
 description = test only
 [PintrProtocol::InterruptMsg]
 description = test only
 [Pshmem::SyncMsg]
 description = test only
 [Pshmem::InterruptMsg]
 description = test only
--- a/modules/libpref/test/python.ini
+++ b/modules/libpref/test/python.ini
@@ -1,3 +1,4 @@
 [DEFAULT]
+subsuite = mozbuild
 
 [test_generate_static_pref_list.py]
--- a/taskcluster/ci/source-test/python.yml
+++ b/taskcluster/ci/source-test/python.yml
@@ -364,16 +364,18 @@ mozbuild:
                 windows10-64/opt:
                     - win64-node-10
     when:
         files-changed:
             - '**/moz.configure'
             - 'build/moz.configure/**'
             - 'config/tests/**'
             - 'dom/bindings/mozwebidlcodegen/**'
+            - 'modules/libpref/init/**'
+            - 'modules/libpref/test/**'
             - 'python/mach/**'
             - 'python/mozboot/**'
             - 'python/mozbuild/**'
             - 'python/mozterm/**'
             - 'python/mozversioncontrol/**'
             - 'testing/mozbase/**'
             - 'testing/xpcshell/xpcshellcommandline.py'
 
--- a/testing/testsuite-targets.mk
+++ b/testing/testsuite-targets.mk
@@ -259,20 +259,21 @@ stage-extensions: make-stage-dir
 	@$(foreach ext,$(TEST_EXTENSIONS), cp -RL $(DIST)/xpi-stage/$(ext) $(PKG_STAGE)/extensions;)
 
 
 check::
 	$(eval cores=$(shell $(PYTHON3) -c 'import multiprocessing; print(multiprocessing.cpu_count())'))
 	@echo "Starting 'mach python-test' with -j$(cores)"
 	@$(topsrcdir)/mach --log-no-times python-test -j$(cores) --subsuite default
 	@echo "Finished 'mach python-test' successfully"
+ifeq (,$(MOZ_ASAN)$(MOZ_TSAN)$(FUZZING_INTERFACES))  # No tests run here for asan/tsan/fuzzing builds.
 	@echo "Starting 'mach python-test' with --python $(PYTHON3) -j$(cores)"
 	@$(topsrcdir)/mach --log-no-times python-test --python python3 -j$(cores) --subsuite default
 	@echo "Finished 'mach python-test' with py3 successfully"
-
+endif
 
 .PHONY: \
   reftest \
   crashtest \
   xpcshell-tests \
   jstestbrowser \
   package-tests \
   download-wpt-manifest \