Closed
Bug 1016929
Opened 10 years ago
Closed 9 years ago
[mozlog] html formatter imports py.xml, doesn't declare it as a dependency
Categories
(Testing :: Mozbase, defect)
Tracking
(firefox38 fixed)
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: ted, Assigned: parkouss)
References
Details
Attachments
(1 file)
10.38 KB,
patch
|
jgraham
:
review+
|
Details | Diff | Splinter Review |
We should either add the dependency or change the code to use some built-in module instead.
Comment 1•10 years ago
|
||
I remember there was a problem with making this module a dependency in marionette, but I don't clearly remember what it was.
Comment 2•10 years ago
|
||
It was from https://bugzilla.mozilla.org/show_bug.cgi?id=950098 and was because we didn't want to add an external python dependency. We ended up pulling in the _xmlgen.py file in tree.
Comment 3•10 years ago
|
||
So should we do the same in mozlog as we did in marionette-client? I've just tried switching some of the Gaia UI tests to use the new HTML formatter and hit this issue in CI.
Flags: needinfo?(james)
Comment 4•10 years ago
|
||
Yeah, so optional dependencies are a pain. We can fix this without pulling everything into mozlog directly e.g. putting the py package on internal pypi (I guess it is already) and ensure that it's marked as a dep in the mozharness script.
Flags: needinfo?(james)
Updated•10 years ago
|
Summary: [mozlog.structured] html formatter imports py.xml, doesn't declare it as a dependency → [mozlog] html formatter imports py.xml, doesn't declare it as a dependency
Assignee | ||
Comment 5•9 years ago
|
||
Hi, I talked with Dave on irc, and it seems that a a solution is to do the same thing done for marionette runner, copy the source code needed: https://dxr.mozilla.org/mozilla-central/source/testing/marionette/client/marionette/runner/mixins/xmlgen.py. We could copy (again!) this file in the html formatter folder, so the dependency won't be required anymore. jgraham, is this solution OK for you ?
Flags: needinfo?(james)
Comment 6•9 years ago
|
||
I guess it works. I don't really like it but it's hard to come up with a better approach given the constraints.
Flags: needinfo?(james)
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to James Graham [:jgraham] from comment #6) > I guess it works. I don't really like it but it's hard to come up with a > better approach given the constraints. Yes, I totally agree - I don't like it neither. I don't really know every constraints here but this seems quite complicated. The bug is open since a few month and seems to annoy Dave. :) Well I take it.
Assignee: nobody → j.parkouss
Assignee | ||
Comment 8•9 years ago
|
||
I tested it locally with success. The xmlgen.py file is an exact copy of the one in marionette.
Attachment #8559248 -
Flags: review?(james)
Comment 9•9 years ago
|
||
Comment on attachment 8559248 [details] [diff] [review] html formatter imports py.xml, doesn't declare it as a dependency Review of attachment 8559248 [details] [diff] [review]: ----------------------------------------------------------------- Sigh. Thanks for doing this though :)
Attachment #8559248 -
Flags: review?(james) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7f306c27bc07
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/7f306c27bc07
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•