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

Issue 2031233002: Rework how MB and GN handle concurrent links. (Closed)

Created:
4 years, 6 months ago by Dirk Pranke
Modified:
4 years, 6 months ago
Reviewers:
brettw, scottmg, brucedawson
CC:
chromium-reviews, Nico, Robert Sesek, sdefresne, brucedawson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rework how MB and GN handle concurrent links. The Mac and iOS GN bots don't currently limit the number of concurrent links. The official continuous win bots aren't on MB because they can't limit the number of concurrent links through MB. This CL adds a 'concurrent_links' arg to GN, which calls the get_concurrent_links script to get the appropriate default value (making this consistent across platforms), and also adds a hack to MB to translate a gyp_link_concurrent "GYP_DEFINE" to the GYP_LINK_CONCURRENCY env var. The CL also adds a test for this MB hack and the similar, already existing LLVM_FORCE_HEAD_REVISION hack. R=scottmg@chromium.org, brettw@chromium.org BUG=602480, 611491, 616390 Committed: https://crrev.com/ec079268641d3d284884a5acf55d75af6065f549 Cr-Commit-Position: refs/heads/master@{#398200}

Patch Set 1 #

Total comments: 12

Patch Set 2 : move concurrent_links into a dedicated .gni #

Total comments: 8

Patch Set 3 : update w/ review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -20 lines) Patch
M .gn View 1 1 chunk +1 line, -1 line 0 comments Download
A build/toolchain/concurrent_links.gni View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 2 chunks +2 lines, -11 lines 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M tools/mb/mb.py View 2 chunks +14 lines, -2 lines 0 comments Download
M tools/mb/mb_config.pyl View 1 2 3 chunks +14 lines, -3 lines 0 comments Download
M tools/mb/mb_unittest.py View 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Dirk Pranke
I'm attempting to kill two birds with one stone here. Let me know what you ...
4 years, 6 months ago (2016-06-03 05:44:43 UTC) #1
brucedawson
https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni File build/toolchain/toolchain.gni (right): https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni#newcode14 build/toolchain/toolchain.gni:14: # In particular, when using distributed compilation (like w/ ...
4 years, 6 months ago (2016-06-03 19:42:17 UTC) #4
brettw
https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni File build/toolchain/toolchain.gni (right): https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni#newcode42 build/toolchain/toolchain.gni:42: if (allow_posix_link_time_opt || is_cfi) { I'm OK writing a ...
4 years, 6 months ago (2016-06-03 21:31:29 UTC) #5
brucedawson
https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni File build/toolchain/toolchain.gni (right): https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni#newcode42 build/toolchain/toolchain.gni:42: if (allow_posix_link_time_opt || is_cfi) { On 2016/06/03 21:31:29, brettw ...
4 years, 6 months ago (2016-06-03 22:04:51 UTC) #6
Dirk Pranke
https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni File build/toolchain/toolchain.gni (right): https://codereview.chromium.org/2031233002/diff/1/build/toolchain/toolchain.gni#newcode14 build/toolchain/toolchain.gni:14: # In particular, when using distributed compilation (like w/ ...
4 years, 6 months ago (2016-06-05 01:19:49 UTC) #7
Dirk Pranke
Updated. Please take another look?
4 years, 6 months ago (2016-06-05 01:27:19 UTC) #11
brettw
lgtm https://codereview.chromium.org/2031233002/diff/80001/build/toolchain/concurrent_links.gni File build/toolchain/concurrent_links.gni (right): https://codereview.chromium.org/2031233002/diff/80001/build/toolchain/concurrent_links.gni#newcode8 build/toolchain/concurrent_links.gni:8: Can you delete this blank line so that ...
4 years, 6 months ago (2016-06-06 17:33:39 UTC) #12
Dirk Pranke
https://codereview.chromium.org/2031233002/diff/80001/build/toolchain/concurrent_links.gni File build/toolchain/concurrent_links.gni (right): https://codereview.chromium.org/2031233002/diff/80001/build/toolchain/concurrent_links.gni#newcode8 build/toolchain/concurrent_links.gni:8: On 2016/06/06 17:33:38, brettw wrote: > Can you delete ...
4 years, 6 months ago (2016-06-06 22:16:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031233002/100001
4 years, 6 months ago (2016-06-06 22:23:53 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/82826)
4 years, 6 months ago (2016-06-06 23:11:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031233002/100001
4 years, 6 months ago (2016-06-06 23:14:10 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 6 months ago (2016-06-07 02:21:35 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 02:24:55 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ec079268641d3d284884a5acf55d75af6065f549
Cr-Commit-Position: refs/heads/master@{#398200}

Powered by Google App Engine
This is Rietveld 408576698