Bug 1910777 - disable crashreporter for macosx testing on macosx 14 until fixed. r=gsvelto
authorJoel Maher <jmaher@mozilla.com>
Fri, 02 Aug 2024 12:39:11 +0000 (11 months ago)
changeset 748954 b2aaf488ba9754e5c8970138fea6a752b44a4608
parent 748953 7d696eb93a6f533e9b1293e497704b4fc02277a6
child 748955 f55108cbef7a35d264cb02ed3a3dda558532b4b2
push id42035
push userimoraru@mozilla.com
push dateSat, 03 Aug 2024 09:52:57 +0000 (11 months ago)
treeherdermozilla-central@9f0a0036bea4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgsvelto
bugs1910777
milestone130.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 1910777 - disable crashreporter for macosx testing on macosx 14 until fixed. r=gsvelto Differential Revision: https://phabricator.services.mozilla.com/D218280
testing/mochitest/runtests.py
testing/mozbase/mozinfo/mozinfo/mozinfo.py
testing/xpcshell/runxpcshelltests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1776,16 +1776,20 @@ toolbar#nav-bar {
                         chunk_by_slice(options.thisChunk, options.totalChunks)
                     )
 
             noDefaultFilters = False
             if options.runFailures:
                 filters.append(failures(options.runFailures))
                 noDefaultFilters = True
 
+            # TODO: remove this when crashreporter is fixed on mac via bug 1910777
+            if info["os"] == "mac" and info["os_version"] == "14.40":
+                info["crashreporter"] = False
+
             tests = manifest.active_tests(
                 exists=False,
                 disabled=disabled,
                 filters=filters,
                 noDefaultFilters=noDefaultFilters,
                 **info
             )
 
--- a/testing/mozbase/mozinfo/mozinfo/mozinfo.py
+++ b/testing/mozbase/mozinfo/mozinfo/mozinfo.py
@@ -141,17 +141,16 @@ if info["os"] == "win" and version == "1
 info["win11_2009"] = False
 if info["os"] == "win" and version == "10.0.22621":
     info["win11_2009"] = True
 
 info["version"] = version
 info["os_version"] = StringVersion(os_version)
 info["is_ubuntu"] = "Ubuntu" in version
 
-
 # processor type and bits
 if processor in ["i386", "i686"]:
     if bits == "32bit":
         processor = "x86"
     elif bits == "64bit":
         processor = "x86_64"
 elif processor.upper() == "AMD64":
     bits = "64bit"
--- a/testing/xpcshell/runxpcshelltests.py
+++ b/testing/xpcshell/runxpcshelltests.py
@@ -1582,16 +1582,24 @@ class XPCShellTests(object):
 
         if options.get("variant", ""):
             self.mozInfo["msix"] = options["variant"] == "msix"
 
         self.mozInfo["is_ubuntu"] = "Ubuntu" in platform.version()
 
         mozinfo.update(self.mozInfo)
 
+        # TODO: remove this when crashreporter is fixed on mac via bug 1910777
+        if self.mozInfo["os"] == "mac":
+            (release, versioninfo, machine) = platform.mac_ver()
+            versionNums = release.split(".")[:2]
+            os_version = "%s.%s" % (versionNums[0], versionNums[1].ljust(2, "0"))
+            if os_version == "14.40":
+                self.mozInfo["crashreporter"] = False
+
         return True
 
     @property
     def conditioned_profile_copy(self):
         """Returns a copy of the original conditioned profile that was created."""
         condprof_copy = os.path.join(tempfile.mkdtemp(), "profile")
         shutil.copytree(
             self.conditioned_profile_dir,