Closed
Bug 1044197
Opened 10 years ago
Closed 10 years ago
Don't ship sdk/test/httpd.js in omni.ja
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla35
People
(Reporter: rnewman, Assigned: zombie)
References
Details
Attachments
(1 file)
Particularly modules/commonjs/sdk/test, particularly on Fennec. Your call if you want to exclude it from desktop.
Assignee | ||
Comment 1•10 years ago
|
||
it looks like removing just the httpd.js will get us the biggest bang for the buck. it's 147k (out of 188k), and is probably the most specific/least used one. i understand (from Jordan) that when we run tests for addons (like with jpm), we use the built-in modules from this dir (like harness), so it makes some sense to leave them, even for android. but i think we can outright remove the httpd.js, even from desktop, as it's used only in a few tests, and they can just bring copies with them. (i verified that none of the addons on AMO actually use this module, however unlikely that may be) if this is the agreed upon solution, i can take this..
Assignee: nobody → tomica+amo
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
But we use these modules in our tests. How do you plan to remove dependencies on them?
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Tomislav Jovanovic [:zombie] from comment #1) > if this is the agreed upon solution, i can take this.. :thumbsup: Thanks!
Reporter | ||
Comment 4•10 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #2) > But we use these modules in our tests. How do you plan to remove > dependencies on them? jchen determined experimentally that this httpd.js wasn't used during ordinary test runs (Bug 1044079 Comment 3); IRC chatter suggested that something else was being used instead. So you might not have a problem to solve…
Comment 5•10 years ago
|
||
Oh during Fennec test runs currently not but that's because we don't currently run our tests on Fennec, something that I'd like to fix.
Reporter | ||
Comment 6•10 years ago
|
||
We'll need to fix that some way that doesn't involve shipping 150KB of test code to 70M devices. Maybe a "test services" add-on?
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #2) > But we use these modules in our tests. How do you plan to remove > dependencies on them? i'm suggesting removing only httpd.js (biggest), and that one module is used only in a few tests, and we can move it to the addon-sdk/test/ dir to be used from there. i should have been clearer, it's not exactly "removing", it's "moving" to the tests folder..
Assignee | ||
Comment 8•10 years ago
|
||
hey Jeff, was this discussed in the meeting? is this a go? or is there a better solution?
Flags: needinfo?(jgriffiths)
Comment 9•10 years ago
|
||
(In reply to Tomislav Jovanovic [:zombie] from comment #8) > hey Jeff, was this discussed in the meeting? is this a go? or is there a > better solution? It was, and there is no reason we can think of to ship test code. People that needs the tests for a specific version can check out that tag on github, right? Generally, we should try to help Fennec as much as possible here - rnewman thinks once they get into minifying code that there may be diminishing returns in removing more things but the tests are an obvious win.
Flags: needinfo?(jgriffiths)
Comment 10•10 years ago
|
||
(In reply to Tomislav Jovanovic [:zombie] from comment #7) > (In reply to Dave Townsend [:mossop] from comment #2) > > But we use these modules in our tests. How do you plan to remove > > dependencies on them? > > i'm suggesting removing only httpd.js (biggest), and that one module is used > only in a few tests, and we can move it to the addon-sdk/test/ dir to be > used from there. > > i should have been clearer, it's not exactly "removing", it's "moving" to > the tests folder.. You'll also need to copy it into the content-permissions and places test add-ons so we'll have duplicate versions which is unfortunate :(
Reporter | ||
Comment 11•10 years ago
|
||
> You'll also need to copy it into the content-permissions and places test
> add-ons so we'll have duplicate versions which is unfortunate :(
Or move all test support code to a test support add-on, no?
Comment 12•10 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #11) > > You'll also need to copy it into the content-permissions and places test > > add-ons so we'll have duplicate versions which is unfortunate :( > > Or move all test support code to a test support add-on, no? Probably more work
Updated•10 years ago
|
Priority: -- → P1
Assignee | ||
Updated•10 years ago
|
Summary: Don't ship SDK test code in omni.ja → Don't ship sdk/test/httpd.js in omni.ja
Assignee | ||
Comment 13•10 years ago
|
||
Attachment #8495161 -
Flags: review?(zer0)
Updated•10 years ago
|
Attachment #8495161 -
Flags: review?(zer0) → review+
Comment 14•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/6a1e86ad9983a8c5206e300188ce51125c980405 bug 1044197 - don't ship httpd.js https://github.com/mozilla/addon-sdk/commit/d0430978259a7b9bbe664ac4ef552d439b6736a4 Merge pull request #1650 from zombie/1044197-dont-ship-httpd bug 1044197 - don't ship httpd.js, r=@ZER0
Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•