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

Issue 10826067: Implement a tool called link_limiter to impose a global restriction on how many (Closed)

Created:
8 years, 4 months ago by iannucci
Modified:
8 years, 4 months ago
Reviewers:
cmp, Lei Zhang, nsylvain
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Implement a tool called link_limiter to impose a global restriction on how many occurances of link.exe and lib.exe can run concurrently. Python builder emits link_limiter.exe and lib_limiter.exe. Skeleton copied from supalink. Seems to behave as expected. Tested with max-concurrency=1 on my local machine. Run python script with the argument 'clean' to... well... clean up. R=cmp,nsylvain BUG= NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149911

Patch Set 1 #

Patch Set 2 : refactor concurrency metrics #

Total comments: 1

Patch Set 3 : Build in a subdirectory. #

Patch Set 4 : Refactor to take shimmed exe and pipe name from argv[0] (sneaky, hunh?) #

Total comments: 20

Patch Set 5 : Implement feedback from cl #

Total comments: 32

Patch Set 6 : Fix some formatting issues #

Patch Set 7 : Fix quotes :) #

Patch Set 8 : Fix an issue with printing errors and cmdline rendering #

Total comments: 15

Patch Set 9 : Incorporate feedback from thestig #

Total comments: 8

Patch Set 10 : Fix a few more bits #

Patch Set 11 : Fix _wtoi, make fallback wait 5 sec, event wait 60 sec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -0 lines) Patch
M .gitignore View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A tools/win/link_limiter/build_link_limiter.py View 1 2 3 4 5 6 1 chunk +99 lines, -0 lines 0 comments Download
A tools/win/link_limiter/limiter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +337 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
iannucci
Please keep an eye on implementation robustness. Some issues on my mind: * CPU count ...
8 years, 4 months ago (2012-07-30 20:40:34 UTC) #1
nsylvain
should this be in gyp instead? or is this really specific to chrome? (i.e. will ...
8 years, 4 months ago (2012-07-30 22:16:25 UTC) #2
iannucci1
On 2012/07/30 22:16:25, nsylvain wrote: > should this be in gyp instead? or is this ...
8 years, 4 months ago (2012-07-30 22:22:15 UTC) #3
nsylvain
On 2012/07/30 22:22:15, iannucci1 wrote: > On 2012/07/30 22:16:25, nsylvain wrote: > > should this ...
8 years, 4 months ago (2012-07-30 22:23:36 UTC) #4
iannucci
On 2012/07/30 22:23:36, nsylvain wrote: > On 2012/07/30 22:22:15, iannucci1 wrote: > > On 2012/07/30 ...
8 years, 4 months ago (2012-07-31 01:09:39 UTC) #5
iannucci
Ok. Please take another look when you have a minute. I got rid of some ...
8 years, 4 months ago (2012-08-01 01:39:10 UTC) #6
nsylvain
I'm forgetting most of the c++ style guide, so there might be parts of the ...
8 years, 4 months ago (2012-08-01 18:53:46 UTC) #7
iannucci
https://chromiumcodereview.appspot.com/10826067/diff/8001/tools/win/link_limiter/build_link_limiter.py File tools/win/link_limiter/build_link_limiter.py (right): https://chromiumcodereview.appspot.com/10826067/diff/8001/tools/win/link_limiter/build_link_limiter.py#newcode47 tools/win/link_limiter/build_link_limiter.py:47: if not os.path.exists(outpath) or cpptime > os.path.getmtime(outpath): On 2012/08/01 ...
8 years, 4 months ago (2012-08-01 19:09:53 UTC) #8
iannucci
https://chromiumcodereview.appspot.com/10826067/diff/8001/tools/win/link_limiter/build_link_limiter.py File tools/win/link_limiter/build_link_limiter.py (right): https://chromiumcodereview.appspot.com/10826067/diff/8001/tools/win/link_limiter/build_link_limiter.py#newcode89 tools/win/link_limiter/build_link_limiter.py:89: for shim_exe in "lib.exe link.exe".split(): On 2012/08/01 19:09:53, iannucci ...
8 years, 4 months ago (2012-08-01 19:16:22 UTC) #9
cmp
looks like there are outstanding review comments from nsylvain in the .py and .cpp files ...
8 years, 4 months ago (2012-08-01 22:23:53 UTC) #10
iannucci
Ok, I implemented the changes discussed. I also noticed that exceptions are strongly forbidden by ...
8 years, 4 months ago (2012-08-01 22:43:59 UTC) #11
cmp
we should get someone with c++ readability to review, too maybe thestig could take a ...
8 years, 4 months ago (2012-08-01 23:36:42 UTC) #12
iannucci1
https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/build_link_limiter.py File tools/win/link_limiter/build_link_limiter.py (right): https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/build_link_limiter.py#newcode77 tools/win/link_limiter/build_link_limiter.py:77: print "Couldn't get VCINSTALLDIR. Run vsvars32.bat?" On 2012/08/01 23:36:42, ...
8 years, 4 months ago (2012-08-01 23:52:39 UTC) #13
cmp
https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/build_link_limiter.py File tools/win/link_limiter/build_link_limiter.py (right): https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/build_link_limiter.py#newcode77 tools/win/link_limiter/build_link_limiter.py:77: print "Couldn't get VCINSTALLDIR. Run vsvars32.bat?" On 2012/08/01 23:52:39, ...
8 years, 4 months ago (2012-08-02 00:00:04 UTC) #14
iannucci
On 2012/08/02 00:00:04, cmp wrote: > https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/build_link_limiter.py > File tools/win/link_limiter/build_link_limiter.py (right): > > https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/build_link_limiter.py#newcode77 > ...
8 years, 4 months ago (2012-08-02 00:02:50 UTC) #15
cmp
https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/limiter.cc File tools/win/link_limiter/limiter.cc (right): https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/limiter.cc#newcode152 tools/win/link_limiter/limiter.cc:152: if (max_concurrent == -1) { Never mind, then. https://chromiumcodereview.appspot.com/10826067/diff/13001/tools/win/link_limiter/limiter.cc#newcode329 ...
8 years, 4 months ago (2012-08-02 00:04:23 UTC) #16
Lei Zhang
This is mostly a style review. I wasn't paying full attention to the logic. https://chromiumcodereview.appspot.com/10826067/diff/13003/tools/win/link_limiter/limiter.cc ...
8 years, 4 months ago (2012-08-03 02:32:47 UTC) #17
iannucci
@thestig PTAL :) R
8 years, 4 months ago (2012-08-03 04:11:08 UTC) #18
Lei Zhang
Doing good, a few more nits. FWIW, there's a google.vim somewhere that you can put ...
8 years, 4 months ago (2012-08-03 05:03:23 UTC) #19
iannucci
Fixed those (and one I missed on the previous round, e.g. commenting the function calls). ...
8 years, 4 months ago (2012-08-03 05:50:34 UTC) #20
Lei Zhang
lgtm style lgtm https://chromiumcodereview.appspot.com/10826067/diff/15001/tools/win/link_limiter/limiter.cc File tools/win/link_limiter/limiter.cc (right): https://chromiumcodereview.appspot.com/10826067/diff/15001/tools/win/link_limiter/limiter.cc#newcode155 tools/win/link_limiter/limiter.cc:155: max_concurrent = _wtoi(max_concurrent_str ? max_concurrent_str : ...
8 years, 4 months ago (2012-08-03 06:09:54 UTC) #21
nsylvain
LGTM on the logic as well, thanks (and thanks Lei for the style review) A ...
8 years, 4 months ago (2012-08-03 15:48:25 UTC) #22
iannucci
On 2012/08/03 06:09:54, Lei Zhang wrote: > lgtm > > style lgtm > > https://chromiumcodereview.appspot.com/10826067/diff/15001/tools/win/link_limiter/limiter.cc ...
8 years, 4 months ago (2012-08-03 18:08:01 UTC) #23
iannucci
On 2012/08/03 15:48:25, nsylvain wrote: > LGTM on the logic as well, thanks (and thanks ...
8 years, 4 months ago (2012-08-03 18:18:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/10826067/16004
8 years, 4 months ago (2012-08-03 19:18:55 UTC) #25
commit-bot: I haz the power
Try job failure for 10826067-16004 (retry) on mac for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-03 19:37:14 UTC) #26
Lei Zhang
Does this get built with the regular build? If not, I'd just put NOTRY=true in ...
8 years, 4 months ago (2012-08-03 19:54:23 UTC) #27
iannucci
On 2012/08/03 19:54:23, Lei Zhang wrote: > Does this get built with the regular build? ...
8 years, 4 months ago (2012-08-03 20:36:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/10826067/16004
8 years, 4 months ago (2012-08-03 20:36:48 UTC) #29
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 20:37:01 UTC) #30
Change committed as 149911

Powered by Google App Engine
This is Rietveld 408576698