Closed
Bug 1497281
Opened 6 years ago
Closed 6 years ago
Perma mch 0:46.71 testing/mochitest/tests/python/test_build_profile.py::test_common_prefs_are_all_set TEST-UNEXPECTED-FAIL
Categories
(Testing :: Mochitest, defect, P5)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1496828
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: apavel [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=204036800&repo=autoland https://queue.taskcluster.net/v1/task/cWXsM0mmQ02l7nDEDvQjhA/runs/0/artifacts/public/logs/live_backing.log task 2018-10-08T15:51:58.446Z] Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt) [task 2018-10-08T15:51:58.464Z] cat: backend.TestManifestBackend.in: No such file or directory [task 2018-10-08T15:51:58.466Z] Build configuration changed. Regenerating backend. [task 2018-10-08T15:51:58.943Z] No handlers could be found for logger "mozbuild.frontend.reader" [task 2018-10-08T15:52:02.877Z] No build detected, test metadata may be incomplete. [task 2018-10-08T15:52:26.230Z] 0:46.52 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_get_active_tests.py [task 2018-10-08T15:52:26.230Z] 0:46.52 ============================= test session starts ============================== [task 2018-10-08T15:52:26.230Z] 0:46.52 platform linux2 -- Python 2.7.12, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/gecko-QUm8IANb-2/bin/python [task 2018-10-08T15:52:26.230Z] 0:46.52 rootdir: /builds/worker/checkouts/gecko, inifile: /builds/worker/checkouts/gecko/config/mozunit/mozunit/pytest.ini [task 2018-10-08T15:52:26.231Z] 0:46.52 collecting ... collected 1 item [task 2018-10-08T15:52:26.231Z] 0:46.52 [task 2018-10-08T15:52:26.231Z] 0:46.52 testing/mochitest/tests/python/test_get_active_tests.py::test_prefs_validation PASSED [task 2018-10-08T15:52:26.231Z] 0:46.52 [task 2018-10-08T15:52:26.231Z] 0:46.52 =========================== 1 passed in 0.47 seconds =========================== [task 2018-10-08T15:52:26.419Z] 0:46.71 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_build_profile.py [task 2018-10-08T15:52:26.420Z] 0:46.71 ============================= test session starts ============================== [task 2018-10-08T15:52:26.420Z] 0:46.71 platform linux2 -- Python 2.7.12, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/gecko-QUm8IANb-2/bin/python [task 2018-10-08T15:52:26.420Z] 0:46.71 rootdir: /builds/worker/checkouts/gecko, inifile: /builds/worker/checkouts/gecko/config/mozunit/mozunit/pytest.ini [task 2018-10-08T15:52:26.420Z] 0:46.71 collecting ... collected 1 item [task 2018-10-08T15:52:26.420Z] 0:46.71 [task 2018-10-08T15:52:26.420Z] 0:46.71 testing/mochitest/tests/python/test_build_profile.py::test_common_prefs_are_all_set TEST-UNEXPECTED-FAIL [task 2018-10-08T15:52:26.420Z] 0:46.71 [task 2018-10-08T15:52:26.420Z] 0:46.71 =================================== FAILURES =================================== [task 2018-10-08T15:52:26.420Z] 0:46.71 ________________________ test_common_prefs_are_all_set _________________________ [task 2018-10-08T15:52:26.420Z] 0:46.71 [task 2018-10-08T15:52:26.420Z] 0:46.71 build_profile = <function inner at 0x7ff3c19185f0> [task 2018-10-08T15:52:26.420Z] 0:46.71 profile_data_dir = '/builds/worker/checkouts/gecko/testing/profiles' [task 2018-10-08T15:52:26.421Z] 0:46.71 [task 2018-10-08T15:52:26.421Z] 0:46.71 def test_common_prefs_are_all_set(build_profile, profile_data_dir): [task 2018-10-08T15:52:26.421Z] 0:46.71 # We set e10s=False here because MochitestDesktop.buildProfile overwrites [task 2018-10-08T15:52:26.421Z] 0:46.71 # the value defined in the base profile. [task 2018-10-08T15:52:26.421Z] 0:46.71 # TODO stop setting browser.tabs.remote.autostart in the base profile [task 2018-10-08T15:52:26.421Z] 0:46.71 > md, result = build_profile(e10s=False) [task 2018-10-08T15:52:26.421Z] 0:46.71 [task 2018-10-08T15:52:26.421Z] 0:46.71 testing/mochitest/tests/python/test_build_profile.py:52: [task 2018-10-08T15:52:26.421Z] 0:46.71 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [task 2018-10-08T15:52:26.422Z] 0:46.71 testing/mochitest/tests/python/test_build_profile.py:37: in inner [task 2018-10-08T15:52:26.422Z] 0:46.71 return md, md.buildProfile(Namespace(**opts)) [task 2018-10-08T15:52:26.423Z] 0:46.71 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [task 2018-10-08T15:52:26.423Z] 0:46.71 [task 2018-10-08T15:52:26.423Z] 0:46.71 self = <runtests.MochitestDesktop object at 0x7ff3c1944750> [task 2018-10-08T15:52:26.423Z] 0:46.71 options = Namespace(app=None, autorun=True, bisectChunk=None, browserArgs=[], certPath=N...0.1', webSocketPort='9988', websocket_process_bridge_port='8191', xrePath=None) [task 2018-10-08T15:52:26.423Z] 0:46.71 [task 2018-10-08T15:52:26.423Z] 0:46.71 def buildProfile(self, options): [task 2018-10-08T15:52:26.423Z] 0:46.71 """ create the profile and add optional chrome bits and files if requested """ [task 2018-10-08T15:52:26.423Z] 0:46.71 # get extensions to install [task 2018-10-08T15:52:26.423Z] 0:46.71 extensions = self.getExtensionsToInstall(options) [task 2018-10-08T15:52:26.423Z] 0:46.71 [task 2018-10-08T15:52:26.423Z] 0:46.71 # Whitelist the _tests directory (../..) so that TESTING_JS_MODULES work [task 2018-10-08T15:52:26.423Z] 0:46.71 tests_dir = os.path.dirname(os.path.dirname(SCRIPT_DIR)) [task 2018-10-08T15:52:26.423Z] 0:46.71 sandbox_whitelist_paths = [tests_dir] + options.sandboxReadWhitelist [task 2018-10-08T15:52:26.423Z] 0:46.71 if (platform.system() == "Linux" or [task 2018-10-08T15:52:26.423Z] 0:46.71 platform.system() in ("Windows", "Microsoft")): [task 2018-10-08T15:52:26.423Z] 0:46.71 # Trailing slashes are needed to indicate directories on Linux and Windows [task 2018-10-08T15:52:26.423Z] 0:46.71 sandbox_whitelist_paths = map(lambda p: os.path.join(p, ""), [task 2018-10-08T15:52:26.423Z] 0:46.71 sandbox_whitelist_paths) [task 2018-10-08T15:52:26.423Z] 0:46.71 [task 2018-10-08T15:52:26.423Z] 0:46.71 # Create the profile [task 2018-10-08T15:52:26.424Z] 0:46.71 self.profile = Profile(profile=options.profilePath, [task 2018-10-08T15:52:26.424Z] 0:46.71 addons=extensions, [task 2018-10-08T15:52:26.424Z] 0:46.71 locations=self.locations, [task 2018-10-08T15:52:26.424Z] 0:46.71 proxy=self.proxy(options), [task 2018-10-08T15:52:26.424Z] 0:46.71 whitelistpaths=sandbox_whitelist_paths, [task 2018-10-08T15:52:26.424Z] 0:46.71 ) [task 2018-10-08T15:52:26.424Z] 0:46.71 [task 2018-10-08T15:52:26.424Z] 0:46.71 # Fix options.profilePath for legacy consumers. [task 2018-10-08T15:52:26.424Z] 0:46.71 options.profilePath = self.profile.profile [task 2018-10-08T15:52:26.424Z] 0:46.71 [task 2018-10-08T15:52:26.424Z] 0:46.71 manifest = self.addChromeToProfile(options) [task 2018-10-08T15:52:26.425Z] 0:46.71 self.copyExtraFilesToProfile(options) [task 2018-10-08T15:52:26.425Z] 0:46.71 [task 2018-10-08T15:52:26.425Z] 0:46.71 # create certificate database for the profile [task 2018-10-08T15:52:26.426Z] 0:46.71 # TODO: this should really be upstreamed somewhere, maybe mozprofile [task 2018-10-08T15:52:26.426Z] 0:46.71 certificateStatus = self.fillCertificateDB(options) [task 2018-10-08T15:52:26.426Z] 0:46.71 if certificateStatus: [task 2018-10-08T15:52:26.426Z] 0:46.71 self.log.error( [task 2018-10-08T15:52:26.426Z] 0:46.71 "TEST-UNEXPECTED-FAIL | runtests.py | Certificate integration failed") [task 2018-10-08T15:52:26.426Z] 0:46.71 return None [task 2018-10-08T15:52:26.426Z] 0:46.71 [task 2018-10-08T15:52:26.427Z] 0:46.71 # Set preferences in the following order (latter overrides former): [task 2018-10-08T15:52:26.427Z] 0:46.71 # 1) Preferences from base profile (e.g from testing/profiles) [task 2018-10-08T15:52:26.427Z] 0:46.71 # 2) Prefs hardcoded in this function [task 2018-10-08T15:52:26.428Z] 0:46.71 # 3) Prefs from --setpref [task 2018-10-08T15:52:26.428Z] 0:46.71 [task 2018-10-08T15:52:26.428Z] 0:46.71 # Prefs from base profiles [task 2018-10-08T15:52:26.428Z] 0:46.71 self.merge_base_profiles(options) [task 2018-10-08T15:52:26.429Z] 0:46.71 [task 2018-10-08T15:52:26.429Z] 0:46.71 # Hardcoded prefs (TODO move these into a base profile) [task 2018-10-08T15:52:26.429Z] 0:46.71 prefs = { [task 2018-10-08T15:52:26.430Z] 0:46.71 "browser.tabs.remote.autostart": options.e10s, [task 2018-10-08T15:52:26.430Z] 0:46.71 "dom.ipc.tabs.nested.enabled": options.nested_oop, [task 2018-10-08T15:52:26.430Z] 0:46.71 "idle.lastDailyNotification": int(time.time()), [task 2018-10-08T15:52:26.431Z] 0:46.71 # Enable tracing output for detailed failures in case of [task 2018-10-08T15:52:26.431Z] 0:46.71 # failing connection attempts, and hangs (bug 1397201) [task 2018-10-08T15:52:26.431Z] 0:46.71 "marionette.log.level": "Trace", [task 2018-10-08T15:52:26.431Z] 0:46.71 } [task 2018-10-08T15:52:26.431Z] 0:46.71 [task 2018-10-08T15:52:26.431Z] 0:46.71 if options.flavor == 'browser' and options.timeout: [task 2018-10-08T15:52:26.431Z] 0:46.71 prefs["testing.browserTestHarness.timeout"] = options.timeout [task 2018-10-08T15:52:26.431Z] 0:46.71 [task 2018-10-08T15:52:26.431Z] 0:46.71 # browser-chrome tests use a fairly short default timeout of 45 seconds; [task 2018-10-08T15:52:26.431Z] 0:46.71 # this is sometimes too short on asan and debug, where we expect reduced [task 2018-10-08T15:52:26.431Z] 0:46.71 # performance. [task 2018-10-08T15:52:26.431Z] 0:46.71 if (mozinfo.info["asan"] or mozinfo.info["debug"]) and \ [task 2018-10-08T15:52:26.431Z] 0:46.71 options.flavor == 'browser' and options.timeout is None: [task 2018-10-08T15:52:26.432Z] 0:46.71 self.log.info("Increasing default timeout to 90 seconds") [task 2018-10-08T15:52:26.432Z] 0:46.71 prefs["testing.browserTestHarness.timeout"] = 90 [task 2018-10-08T15:52:26.432Z] 0:46.71 [task 2018-10-08T15:52:26.432Z] 0:46.71 if getattr(self, 'testRootAbs', None): [task 2018-10-08T15:52:26.432Z] 0:46.71 prefs['mochitest.testRoot'] = self.testRootAbs [task 2018-10-08T15:52:26.432Z] 0:46.71 [task 2018-10-08T15:52:26.432Z] 0:46.71 # See if we should use fake media devices. [task 2018-10-08T15:52:26.432Z] 0:46.71 if options.useTestMediaDevices: [task 2018-10-08T15:52:26.432Z] 0:46.72 prefs['media.audio_loopback_dev'] = self.mediaDevices['audio'] [task 2018-10-08T15:52:26.432Z] 0:46.72 prefs['media.video_loopback_dev'] = self.mediaDevices['video'] [task 2018-10-08T15:52:26.432Z] 0:46.72 prefs['media.cubeb.output_device'] = "Null Output" [task 2018-10-08T15:52:26.432Z] 0:46.72 prefs['media.volume_scale'] = "1.0" [task 2018-10-08T15:52:26.432Z] 0:46.72 [task 2018-10-08T15:52:26.432Z] 0:46.72 # Disable web replay rewinding by default if recordings are being saved. [task 2018-10-08T15:52:26.432Z] 0:46.72 if options.recordingPath: [task 2018-10-08T15:52:26.432Z] 0:46.72 prefs["devtools.recordreplay.enableRewinding"] = False [task 2018-10-08T15:52:26.432Z] 0:46.72 [task 2018-10-08T15:52:26.432Z] 0:46.72 self.profile.set_preferences(prefs) [task 2018-10-08T15:52:26.432Z] 0:46.72 [task 2018-10-08T15:52:26.432Z] 0:46.72 # Extra prefs from --setpref [task 2018-10-08T15:52:26.432Z] 0:46.72 > self.profile.set_preferences(self.extraPrefs) [task 2018-10-08T15:52:26.432Z] 0:46.72 E AttributeError: 'MochitestDesktop' object has no attribute 'extraPrefs' [task 2018-10-08T15:52:26.432Z] 0:46.72 [task 2018-10-08T15:52:26.432Z] 0:46.72 ../../fetches/tests/mochitest/runtests.py:1939: AttributeError [task 2018-10-08T15:52:26.432Z] 0:46.72 =========================== 1 failed in 0.64 seconds =========================== [task 2018-10-08T15:52:26.432Z] 0:46.72 Setting retcode to 1 from /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_build_profile.py [task 2018-10-08T15:53:08.331Z] 1:28.62 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_basic_mochitest_plain.py
Comment hidden (Intermittent Failures Robot) |
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Comment hidden (Intermittent Failures Robot) |
You need to log in
before you can comment on or make changes to this bug.
Description
•