Uh oh!
There was an error while loading. Please reload this page.
Update submodules in parallel - #49093
Conversation
273b934 to
a4f05a6CompareZoxc
commented
Mar 16, 2018
This seems to save a couple of seconds. |
6a7853c to
0725b0cCompare9f747f5 to
37487beCompareZoxc
commented
Mar 17, 2018
I changed to code to get tarballs for more submodules. I've seen the time taken to check out submodules go as low as 13 seconds on Travis, it used to take around 90 seconds before. This is probably more helpful for AppVeyor since it takes longer to check out submodules. This may result in submodules incorrectly assuming that the rustc's repo commit hash is their own. We should check that that doesn't happen. |
alexcrichton
commented
Mar 17, 2018
r? @aidanhs |
aidanhs
commented
Mar 19, 2018
Regarding this, if you One example that springs to mind - |
There are two parts here:
I love 1! That flag must've been added recently, I don't have it on my version - since this only runs in CI, it's probably fine to require it (we can see if the appveyor git version plays ball). I understand the motivation of 2 and the results certainly speak for themselves, but I feel a little cautious about an 'on-by-default' approach. Taking an arbitrary recent build log from travis, we can get most of the win just by including a couple more repos to be downloaded as a .zip (book, rust-by-example). Combined with 1, I suspect it'll bring us down to a similar speed but with less additional risk. |
Zoxc
commented
Mar 19, 2018
I've changed it to use git submodules by default. |
Zoxc
commented
Mar 19, 2018
Could we use git submodules only for dist build? This would ensure that artifacts shipped to users don't have the wrong commit hash. |
6693998 to
1578b1eCompareZoxc
commented
Mar 19, 2018
I ran this on AppVeyor. I got the following timings (best 3 of 4): Tarball by default: 36s 42s 44s |
aidanhs
commented
Mar 19, 2018
I'm ok with 30s for the increased peace of mind :) @bors r+ |
bors
commented
Mar 19, 2018
📌 Commit 1578b1e has been approved by |
aidanhs
commented
Mar 19, 2018
(thanks for the great work by the way, the slowness of cloning has long been an annoyance of mine) |
Update submodules in parallel
Update submodules in parallel
No description provided.