Closed
Bug 1466958
Opened 7 years ago
Closed 7 years ago
Android 'mach mochitest'/'mach robocop' fails: "IOError: Add-on path does not exist: <objdir>/_tests/testing/mochitest/mochijar"
Categories
(Firefox for Android Graveyard :: Testing, defect)
Tracking
(firefox60 unaffected, firefox61 unaffected, firefox62 fixed)
RESOLVED
FIXED
Firefox 62
Tracking | Status | |
---|---|---|
firefox60 | --- | unaffected |
firefox61 | --- | unaffected |
firefox62 | --- | fixed |
People
(Reporter: gbrown, Assigned: chmanchester)
References
Details
(Keywords: regression)
Attachments
(2 files)
./mach mochitest testing/mochitest/tests/Harness_sanity
0:22.06 SUITE_START: mochitest-plain - running 25 tests
0:22.06 TEST_START: testing/mochitest/tests/Harness_sanity/test_TestsRunningAfterSimpleTestFinish.html
0:22.06 TEST_END: SKIP
0:22.06 TEST_START: testing/mochitest/tests/Harness_sanity/test_sanityEventUtils.html
0:22.06 TEST_END: SKIP
0:22.06 TEST_START: testing/mochitest/tests/Harness_sanity/test_sanity_manifest.html
0:22.06 TEST_END: SKIP
0:22.06 TEST_START: testing/mochitest/tests/Harness_sanity/test_sanity_manifest_pf.html
0:22.06 TEST_END: SKIP
0:22.06 INFO Running manifest: testing/mochitest/tests/Harness_sanity/mochitest.ini
0:22.33 ERROR Automation Error: Exception caught while running tests
Traceback (most recent call last):
File "/home/gbrown/objdirs/x86/_tests/testing/mochitest/runtestsremote.py", line 350, in run_test_harness
retVal = mochitest.runTests(options)
File "/home/gbrown/objdirs/x86/_tests/testing/mochitest/runtests.py", line 2608, in runTests
res = self.runMochitests(options, tests_in_manifest)
File "/home/gbrown/objdirs/x86/_tests/testing/mochitest/runtests.py", line 2403, in runMochitests
result = self.doTests(options, testsToRun)
File "/home/gbrown/objdirs/x86/_tests/testing/mochitest/runtests.py", line 2698, in doTests
self.manifest = self.buildProfile(options)
File "/home/gbrown/objdirs/x86/_tests/testing/mochitest/runtestsremote.py", line 228, in buildProfile
manifest = MochitestDesktop.buildProfile(self, options)
File "/home/gbrown/objdirs/x86/_tests/testing/mochitest/runtests.py", line 1877, in buildProfile
whitelistpaths=sandbox_whitelist_paths,
File "/home/gbrown/src/testing/mozbase/mozprofile/mozprofile/profile.py", line 198, in __init__
self._reset()
File "/home/gbrown/src/testing/mozbase/mozprofile/mozprofile/profile.py", line 246, in _reset
self.addons.install(self._addons)
File "/home/gbrown/src/testing/mozbase/mozprofile/mozprofile/addons.py", line 201, in install
self._install_addon(addon, **kwargs)
File "/home/gbrown/src/testing/mozbase/mozprofile/mozprofile/addons.py", line 128, in _install_addon
self.addon_details(path)
File "/home/gbrown/src/testing/mozbase/mozprofile/mozprofile/addons.py", line 251, in addon_details
raise IOError('Add-on path does not exist: %s' % addon_path)
IOError: Add-on path does not exist: /home/gbrown/objdirs/x86/_tests/testing/mochitest/mochijar
0:22.66 INFO Buffered messages finished
0:22.66 SUITE_END
Seems likely this is a regression from changes in bug 1462489.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
The patch from comment 2 makes sense, although looking at it I'd expect that to fail in automation, which it doesn't. I'll upload a version that retains the default for when we're building in automation, but I might need some help verifying the fix.
Flags: needinfo?(cmanchester)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
:gbrown, does comment 4 work for you? This seems to keep things consistent for local and automation builds.
Flags: needinfo?(gbrown)
Updated•7 years ago
|
Keywords: regression
(In reply to Chris Manchester (:chmanchester) from comment #3)
> The patch from comment 2 makes sense, although looking at it I'd expect that
> to fail in automation, which it doesn't. I'll upload a version that retains
> the default for when we're building in automation, but I might need some
> help verifying the fix.
Ah I think it does fail in automation, actually. I've been wondering why my Try jobs are hosed :)
Reporter | ||
Comment 8•7 years ago
|
||
When I run 'mach mochitest testing/mochitest/tests/Harness_sanity' locally, with comment 4 applied, the IOError is avoided, but mochitests do not run: Fennec is launched and loads the mochitest main page, but no tests run.
Flags: needinfo?(gbrown)
Reporter | ||
Comment 9•7 years ago
|
||
Local runs are okay if I add specialpowers:
diff --git a/testing/mochitest/mochitest_options.py b/testing/mochitest/mochitest_options.py
--- a/testing/mochitest/mochitest_options.py
+++ b/testing/mochitest/mochitest_options.py
@@ -911,16 +911,23 @@ class AndroidArguments(ArgumentContainer
}
def validate(self, parser, options, context):
"""Validate android options."""
if build_obj:
options.log_mach = '-'
+ objdir_xpi_stage = os.path.join(build_obj.distdir, 'xpi-stage')
+ if os.path.isdir(objdir_xpi_stage):
+ options.extensionsToInstall = [
+ os.path.join(objdir_xpi_stage, 'specialpowers'),
+ os.path.join(objdir_xpi_stage, 'mochijar'),
+ ]
+
if options.remoteWebServer is None:
if os.name != "nt":
options.remoteWebServer = moznetwork.get_ip()
else:
parser.error(
"you must specify a --remote-webserver=<ip address>")
Updated•7 years ago
|
OS: Unspecified → Android
Hardware: Unspecified → All
Summary: Android 'mach mochitest' fails: "IOError: Add-on path does not exist: <objdir>/_tests/testing/mochitest/mochijar" → Android 'mach mochitest'/'mach robocop' fails: "IOError: Add-on path does not exist: <objdir>/_tests/testing/mochitest/mochijar"
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → cmanchester
Comment hidden (mozreview-request) |
Reporter | ||
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8983981 [details]
Bug 1466958 - Fix mochitests when run locally against an android build.
https://reviewboard.mozilla.org/r/249842/#review256360
That should do it. Thanks!
Attachment #8983981 -
Flags: review?(gbrown) → review+
Comment 12•7 years ago
|
||
Pushed by cmanchester@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9a68a0a2eff4
Fix mochitests when run locally against an android build. r=gbrown
Comment 13•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Updated•7 years ago
|
status-firefox60:
--- → unaffected
status-firefox61:
--- → unaffected
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•