Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29600577: Issue 5997 - Avoid including qunit files in release builds (Closed)

Created:
Nov. 7, 2017, 3:24 p.m. by kzar
Modified:
Nov. 10, 2017, 9:35 a.m.
Reviewers:
tlucas
CC:
Sebastian Noack
Visibility:
Public.

Description

Issue 5997 - Avoid including qunit files in release builds

Patch Set 1 #

Patch Set 2 : Make use of base_extension_path variable #

Patch Set 3 : Avoid bundling tests if testScripts option is missing #

Total comments: 7

Patch Set 4 : Add assertions for qunit bundle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -4 lines) Patch
M packagerChrome.py View 1 2 3 chunks +12 lines, -2 lines 0 comments Download
M packagerEdge.py View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M templates/testIndex.html.tmpl View 1 chunk +1 line, -0 lines 0 comments Download
M tests/test_packagerWebExt.py View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 6
kzar
Patch Set 1
Nov. 7, 2017, 3:25 p.m. (2017-11-07 15:25:40 UTC) #1
kzar
Patch Set 2 : Make use of base_extension_path variable
Nov. 7, 2017, 3:28 p.m. (2017-11-07 15:28:36 UTC) #2
kzar
Patch Set 3 : Avoid bundling tests if testScripts option is missing
Nov. 7, 2017, 4:08 p.m. (2017-11-07 16:08:12 UTC) #3
tlucas
Hey Dave! I had a look at it - looks good so far, but something ...
Nov. 8, 2017, 12:08 p.m. (2017-11-08 12:08:51 UTC) #4
kzar
Patch Set 4 : Add assertions for qunit bundle https://codereview.adblockplus.org/29600577/diff/29600622/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29600577/diff/29600622/packagerChrome.py#newcode393 packagerChrome.py:393: ...
Nov. 9, 2017, 3:33 p.m. (2017-11-09 15:33:16 UTC) #5
tlucas
Nov. 9, 2017, 4:29 p.m. (2017-11-09 16:29:50 UTC) #6
LGTM

https://codereview.adblockplus.org/29600577/diff/29600622/packagerChrome.py
File packagerChrome.py (right):

https://codereview.adblockplus.org/29600577/diff/29600622/packagerChrome.py#n...
packagerChrome.py:393: add_devenv_requirements(files, metadata, params)
On 2017/11/09 15:33:16, kzar wrote:
> On 2017/11/08 12:08:51, tlucas wrote:
> > I wonder if this is/should be handled by webpack and/or if thisis also
> > responsible for the observed behavior - iirc, this was introduced by me
> parallel
> > to the webpack in #4720.
> 
> Well I agree it's kind of ugly how there are two separate checks for devenv.
But
> I don't think rendering the test page belongs in the code which creates the
> webpack bundles, and I can't see how to add the metadata for the qunit bundle
> outside of the create_bundles function. (I initially wanted to modify the
> metadata from add_devenv_requirements to add the details about the qunit
bundle
> but it didn't look easily possible.)

Acknowledged.

Powered by Google App Engine
This is Rietveld