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

Issue 2106353004: Implement "copy_bundle_data" tool without using a python script. (Closed)

Created:
4 years, 5 months ago by sdefresne
Modified:
4 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@create-bundle-deps
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement "copy_bundle_data" tool without using a python script. When building Chrome on iOS there are 60000+ copy_bundle_data steps, so using a python script is slow. Instead re-implement the logic in pure shell and using hard-links when possible. Improve the build time of a clobber build by 4.6x (measured on a Mac Pro using goma with a reduction from 32m24.498s to 7m1.310s according to "time"). Commands used to time the build: $ gn clean out/gn-Debug-iphoneos $ time ninja -j 1000 -C out/gn-Debug-iphoneos All_iOS BUG=621030 Committed: https://crrev.com/d5e358f61f3d6257062cdc6a6ec6a76104273ca7 Cr-Commit-Position: refs/heads/master@{#403696}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use "pax" instead of "rsync" to use hard links when possible. #

Total comments: 4

Patch Set 3 : Quote use of $OLDPWD. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -140 lines) Patch
M build/toolchain/mac/BUILD.gn View 1 2 2 chunks +32 lines, -8 lines 0 comments Download
D build/toolchain/mac/copy_bundle_data.py View 1 chunk +0 lines, -132 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
sdefresne
Please take a look. This reduce the build time (but requires the dependent CL to ...
4 years, 5 months ago (2016-06-30 17:22:00 UTC) #2
Robert Sesek
https://codereview.chromium.org/2106353004/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2106353004/diff/1/build/toolchain/mac/BUILD.gn#newcode309 build/toolchain/mac/BUILD.gn:309: _command = "if [[ -d {{source}} ]]; then " ...
4 years, 5 months ago (2016-06-30 17:28:02 UTC) #3
sdefresne
https://codereview.chromium.org/2106353004/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2106353004/diff/1/build/toolchain/mac/BUILD.gn#newcode309 build/toolchain/mac/BUILD.gn:309: _command = "if [[ -d {{source}} ]]; then " ...
4 years, 5 months ago (2016-07-01 11:12:29 UTC) #5
Robert Sesek
Clever find. Wouldn't have thought of using pax in this way. https://codereview.chromium.org/2106353004/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): ...
4 years, 5 months ago (2016-07-01 15:12:17 UTC) #8
Dirk Pranke
I'll defer to robert here ... lgtm when he's happy.
4 years, 5 months ago (2016-07-01 22:21:16 UTC) #9
sdefresne
rsesek: PTAL https://codereview.chromium.org/2106353004/diff/20001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2106353004/diff/20001/build/toolchain/mac/BUILD.gn#newcode326 build/toolchain/mac/BUILD.gn:326: _copydir = "mkdir -p {{output}} && cd ...
4 years, 5 months ago (2016-07-04 09:12:53 UTC) #11
Robert Sesek
LGTM. Thanks for the explanation about pax.
4 years, 5 months ago (2016-07-04 16:16:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106353004/80001
4 years, 5 months ago (2016-07-04 16:41:16 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/31035)
4 years, 5 months ago (2016-07-04 16:45:12 UTC) #18
sdefresne
Thank you for the review during an holiday. Sending back to CQ as failure is ...
4 years, 5 months ago (2016-07-04 16:53:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106353004/80001
4 years, 5 months ago (2016-07-04 16:54:06 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 5 months ago (2016-07-04 16:57:56 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-04 16:58:02 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-04 16:59:44 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d5e358f61f3d6257062cdc6a6ec6a76104273ca7
Cr-Commit-Position: refs/heads/master@{#403696}

Powered by Google App Engine
This is Rietveld 408576698