Skip to content

Conversation

aidanhs
Copy link
Contributor

@aidanhs aidanhs commented Jun 14, 2017

In addition, remove all the unused cache stuff

r? @Mark-Simulacrum

@aidanhs
Copy link
Contributor Author

aidanhs commented Jun 14, 2017

I expect this to save us 5-7min on OSX builds.


travis_fold start update_cache
travis_time_start

# Update the cache (a pristine copy of the rust source master)
if [ ! -d "$cache_src_dir/.git" ]; then
retry sh -c "rm -rf $cache_src_dir && mkdir -p $cache_src_dir && \
git clone https://github.com/rust-lang/rust.git $cache_src_dir"
git clone --depth 1 https://github.com/rust-lang/rust.git $cache_src_dir"
fi
retry sh -c "cd $cache_src_dir && git reset --hard && git pull"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git pull here I think will make us no longer have a depth of 1 anyway, but I'm not sure. https://stackoverflow.com/questions/19352894/how-to-git-fetch-efficiently-from-a-shallow-clone

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I have some other changes I didn't push.

In addition, remove all the unused cache stuff
@aidanhs aidanhs force-pushed the aphs-simplify-init-repos branch from e8264a4 to d0c1e64 Compare June 14, 2017 23:32
@Mark-Simulacrum
Copy link
Member

I'll wait for Travis, but looks good to me overall.

@aidanhs aidanhs added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 15, 2017
@Mark-Simulacrum
Copy link
Member

@bors r+ p=1

Setting higher priority since this helps with OS X timeouts (at least a little).

Looks like this passed the cache stage in Travis.

@bors
Copy link
Collaborator

bors commented Jun 15, 2017

📌 Commit d0c1e64 has been approved by Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Jun 15, 2017

⌛ Testing commit d0c1e64 with merge 0189cec...

bors added a commit that referenced this pull request Jun 15, 2017
…acrum

Use --depth to speed up pristine submodule cloning

In addition, remove all the unused cache stuff

r? @Mark-Simulacrum
@bors
Copy link
Collaborator

bors commented Jun 15, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 0189cec to master...

@bors bors merged commit d0c1e64 into rust-lang:master Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants