Closed Bug 1239352 Opened 9 years ago Closed 9 years ago

Install marionette_requirements.txt in desktop_unittest.py

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Tracking Status
firefox46 --- fixed

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(2 files)

Mochitest will soon need to use marionette. We'll need to install marionette and dependencies for desktop_unittest.py. Seeing as marionette is getting pretty ubiquitous, I don't think it's worth special casing mochitest. We'll probably need it sooner or later in the other desktop_unittest.py based harnesses too.
Attachment #8707575 - Flags: review?(jlund) → review+
Comment on attachment 8707575 [details] MozReview Request: Bug 1239352 - Install marionette_requirements.txt in desktop_unittest.py, r=jlund https://reviewboard.mozilla.org/r/30765/#review27765
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
This broke all c-c xpcshell/mozmill tests: 4:26:16 ERROR - Traceback (most recent call last): 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/basecommand.py", line 122, in main 04:26:16 INFO - status = self.run(options, args) 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/commands/install.py", line 262, in run 04:26:16 INFO - for req in parse_requirements(filename, finder=finder, options=options, session=session): 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/req.py", line 1631, in parse_requirements 04:26:16 INFO - req = InstallRequirement.from_line(line, comes_from, prereleases=getattr(options, "pre", None)) 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/req.py", line 172, in from_line 04:26:16 INFO - return cls(req, comes_from, url=url, prereleases=prereleases) 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/req.py", line 70, in __init__ 04:26:16 INFO - req = pkg_resources.Requirement.parse(req) 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/_vendor/pkg_resources.py", line 2667, in parse 04:26:16 INFO - reqs = list(parse_requirements(s)) 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/_vendor/pkg_resources.py", line 2605, in parse_requirements 04:26:16 INFO - line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec") 04:26:16 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/pip-1.5.5-py2.7.egg/pip/_vendor/pkg_resources.py", line 2573, in scan_list 04:26:16 INFO - raise ValueError("Expected "+item_name+" in",line,"at",line[p:]) 04:26:16 INFO - ValueError: ('Expected version spec in', '../tools/wptserve', 'at', '/tools/wptserve') 04:26:16 INFO - Storing debug log for failure in /home/cltbld/.pip/pip.log 04:26:16 WARNING - Return code: 2 04:26:16 FATAL - Could not install python package: /builds/slave/test/build/venv/bin/pip install --no-deps --download-cache /builds/slave/test/build/venv/cache --timeout 120 -r /builds/slave/test/build/tests/config/marionette_requirements.txt --no-index --find-links http://pypi.pvt.build.mozilla.org.proxxy1.srv.releng.use1.mozilla.com/pub --find-links http://pypi.pub.build.mozilla.org.proxxy1.srv.releng.use1.mozilla.com/pub --find-links http://pypi.pvt.build.mozilla.org/pub --find-links http://pypi.pub.build.mozilla.org/pub failed after 5 tries! It appears tools/wptserve isn't in-tree?
Hrm, tools/wptserve should exist in the tests.zip since bug 1229467. Gps, do you know if c-c uses test_archive.py or not? https://hg.mozilla.org/mozilla-central/rev/21a130c2ba15
Flags: needinfo?(gps)
(In reply to Andrew Halberstadt [:ahal] from comment #7) > Hrm, tools/wptserve should exist in the tests.zip since bug 1229467. Gps, do > you know if c-c uses test_archive.py or not? > https://hg.mozilla.org/mozilla-central/rev/21a130c2ba15 c-c uses test_archive.py, but maybe something isn't being packaged in testsuite-targets.mk for TB which is now required?
Hmm, looks like it's packaged in common.tests.zip.
Oh, I think I see the problem. The desktop_unittest.py script only extracts certain directories from the tests.zip by default. Looks like there's a thunderbird mozharness script I neglected to modify. Sorry. Does this fix the issue?
Flags: needinfo?(gps)
Attachment #8709158 - Flags: review?(aleth)
Comment on attachment 8709158 [details] [diff] [review] Followup fix for c-c test bustage Review of attachment 8709158 [details] [diff] [review]: ----------------------------------------------------------------- Aha, thanks! Looks like this should fix it indeed. I don't know how to test this locally, and I'm not a testing/ peer, so f+ instead of r+.
Attachment #8709158 - Flags: review?(jlund)
Attachment #8709158 - Flags: review?(aleth)
Attachment #8709158 - Flags: feedback+
Attachment #8709158 - Flags: review?(jlund) → review+
(In reply to Andrew Halberstadt [:ahal] from comment #10) > Does this fix the issue? Problem solved, thanks.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: