-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update submodules in parallel #49093
Conversation
273b934
to
a4f05a6
Compare
This seems to save a couple of seconds. |
6a7853c
to
0725b0c
Compare
9f747f5
to
37487be
Compare
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. |
r? @aidanhs |
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.
|
I've changed it to use git submodules by default. |
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
1578b1e
Compare
I ran this on AppVeyor. I got the following timings (best 3 of 4): Tarball by default: 36s 42s 44s |
I'm ok with 30s for the increased peace of mind :) @bors r+ |
📌 Commit 1578b1e has been approved by |
(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.