Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 10341003: msvs: fix many actions on the same script resulting in too-long command lines (Closed)

Created:
8 years, 7 months ago by scottmg
Modified:
8 years, 7 months ago
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Two overflows when many actions are in one target/one script. 1. Commands were previously joined with &&, which resulted in the command line being too long 2. cygwin's setup_env.bat was called for each command. This prepends to PATH, which also grows too long. To fix #1, join the commands by checking errorlevel at each step. To fix #2, only do the path cygwin setup on the first action. BUG=gyp:261 Committed: https://code.google.com/p/gyp/source/detail?r=1378

Patch Set 1 #

Patch Set 2 : remove some actions to see if upload will accept #

Patch Set 3 : failing test with 'input line is too long' #

Patch Set 4 : remove some #

Patch Set 5 : one one setup_env, and less commands so that it doesn't take forever #

Patch Set 6 : remove unneeded file #

Total comments: 8

Patch Set 7 : review fixes #

Total comments: 2

Patch Set 8 : verify outputs are created, non-default arg a bit higher #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1662 lines, -11 lines) Patch
M pylib/gyp/generator/msvs.py View 1 2 3 4 5 6 7 10 chunks +25 lines, -11 lines 0 comments Download
A test/many-actions/gyptest-many-actions.py View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A test/many-actions/many-actions.gyp View 1 2 3 4 5 6 7 1 chunk +1617 lines, -0 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
scottmg
Per previous discussion here: https://chromiumcodereview.appspot.com/10254030/
8 years, 7 months ago (2012-05-16 16:42:22 UTC) #1
jeanluc1
https://chromiumcodereview.appspot.com/10341003/diff/12001/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://chromiumcodereview.appspot.com/10341003/diff/12001/pylib/gyp/generator/msvs.py#newcode245 pylib/gyp/generator/msvs.py:245: quote_cmd, do_setup_env=True): I would not provide a default but ...
8 years, 7 months ago (2012-05-16 17:46:26 UTC) #2
scottmg
thanks https://chromiumcodereview.appspot.com/10341003/diff/12001/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://chromiumcodereview.appspot.com/10341003/diff/12001/pylib/gyp/generator/msvs.py#newcode245 pylib/gyp/generator/msvs.py:245: quote_cmd, do_setup_env=True): On 2012/05/16 17:46:26, jeanluc1 wrote: > ...
8 years, 7 months ago (2012-05-16 17:56:37 UTC) #3
jeanluc1
https://chromiumcodereview.appspot.com/10341003/diff/17001/test/many-actions/gyptest-many-actions.py File test/many-actions/gyptest-many-actions.py (right): https://chromiumcodereview.appspot.com/10341003/diff/17001/test/many-actions/gyptest-many-actions.py#newcode18 test/many-actions/gyptest-many-actions.py:18: test.pass_test() It's cool that you've added a test. How ...
8 years, 7 months ago (2012-05-16 18:03:01 UTC) #4
scottmg
thanks (also made do_setup_env non-default one more level up) https://chromiumcodereview.appspot.com/10341003/diff/17001/test/many-actions/gyptest-many-actions.py File test/many-actions/gyptest-many-actions.py (right): https://chromiumcodereview.appspot.com/10341003/diff/17001/test/many-actions/gyptest-many-actions.py#newcode18 test/many-actions/gyptest-many-actions.py:18: ...
8 years, 7 months ago (2012-05-16 18:19:00 UTC) #5
jeanluc1
lgtm https://chromiumcodereview.appspot.com/10341003/diff/6004/test/many-actions/many-actions.gyp File test/many-actions/many-actions.gyp (right): https://chromiumcodereview.appspot.com/10341003/diff/6004/test/many-actions/many-actions.gyp#newcode16 test/many-actions/many-actions.gyp:16: 'outputs': ['<(PRODUCT_DIR)/generated_0.h'], I hope that using PRODUCT_DIR won't ...
8 years, 7 months ago (2012-05-16 18:25:06 UTC) #6
scottmg
On 2012/05/16 18:25:06, jeanluc1 wrote: > lgtm > > https://chromiumcodereview.appspot.com/10341003/diff/6004/test/many-actions/many-actions.gyp > File test/many-actions/many-actions.gyp (right): > ...
8 years, 7 months ago (2012-05-16 18:27:09 UTC) #7
scottmg
On 2012/05/16 18:27:09, scottmg wrote: > On 2012/05/16 18:25:06, jeanluc1 wrote: > > lgtm > ...
8 years, 7 months ago (2012-05-16 18:30:17 UTC) #8
jeanluc1
On 2012/05/16 18:30:17, scottmg wrote: > On 2012/05/16 18:27:09, scottmg wrote: > > On 2012/05/16 ...
8 years, 7 months ago (2012-05-16 18:32:17 UTC) #9
scottmg
8 years, 7 months ago (2012-05-16 21:15:09 UTC) #10
Doh, this doesn't work. The actions get put into a dict along the way and
reordered so the setup_env moves the middle randomly. Nothing ever takes 5
minutes! :/

Powered by Google App Engine
This is Rietveld 408576698