tag:help.appveyor.com,2012-11-13:/discussions/suggestions/218-from-git-perform-shallow-cloneAppVeyor: Discussion 2018-10-19T08:16:33Ztag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T02:40:50Z2014-07-14T02:40:51ZFrom git, perform shallow clone<div><p>Feodor, you said "I see. Currently builds run on "Small" Azure
instances<br>
with one CPU core. Wondering how long would it take to run it on
"Medium"<br>
instance with 2 cores..."</p>
<p>Is this something we could try? That would be exciting!!</p></div>Chris Dembiatag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T09:12:21Z2014-07-14T09:12:21ZFrom git, perform shallow clone<div><p>Hi Chris,</p>
<p>Do you want a custom trial plan with Medium instances enabled?
What's your account name?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T14:48:57Z2014-07-14T14:48:57ZFrom git, perform shallow clone<div><p>That would be great! chrisdembia (through GitHub).</p></div>Chris Dembiatag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T14:57:22Z2014-07-14T14:57:22ZFrom git, perform shallow clone<div><p>I will switch your account from Free to a custom plan with 1
concurrent job on Medium instances. For how long would you need
that trial plan?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T16:33:09Z2014-07-14T16:33:10ZFrom git, perform shallow clone<div><p>Could we have it for 15 days?</p></div>Chris Dembiatag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T17:23:25Z2014-07-14T17:23:25ZFrom git, perform shallow clone<div><p>Done! You are on custom plan now.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T17:50:11Z2014-07-14T17:50:11ZFrom git, perform shallow clone<div><p>Excellent!</p></div>Chris Dembiatag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T18:39:40Z2014-07-14T18:39:40ZFrom git, perform shallow clone<div><p>Feodor, thanks for doing this. Our build gets twice as far now,
but still<br>
does not complete in the allotted 30 minutes. I'd say our build was
about<br>
50-60% complete. Our build process benefits greatly from
parallelism; more<br>
cores would certainly help.</p></div>Chris Dembiatag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T18:52:12Z2014-07-14T18:52:12ZFrom git, perform shallow clone<div><p>I've increased build timeout to 90 minutes.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-14T21:47:39Z2014-07-14T21:47:40ZFrom git, perform shallow clone<div><p>Thanks Feodor...our build and tests ended up taking 36
minutes.</p></div>Chris Dembiatag:help.appveyor.com,2012-11-13:Comment/330607232014-07-15T05:26:35Z2014-07-15T05:26:35ZFrom git, perform shallow clone<div><p>Very well, thanks for the update!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-15T19:33:54Z2014-07-15T19:33:55ZFrom git, perform shallow clone<div><p>I know Mercurial doesn't have a shallow clone feature. Do you
have any work arounds for Mercurial/BitBucket? As is, our clone
operation takes about 7 minutes to complete.</p></div>Vinneytag:help.appveyor.com,2012-11-13:Comment/330607232014-07-16T05:03:12Z2014-07-16T05:03:12ZFrom git, perform shallow clone<div><p>It's possible to download specific commit as zip file. Could you
try downloading repo as zip (from BitBucket UI) to see if it takes
less than 7 minutes?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-16T16:51:30Z2014-07-16T16:51:33ZFrom git, perform shallow clone<div><p>I see how to go about downloading the zip file as described
<a href=
"http://www.appveyor.com/docs/how-to/download-file">here</a> but
I'm not seeing how to bypass/prevent the clone step.</p></div>Vinneytag:help.appveyor.com,2012-11-13:Comment/330607232014-07-16T17:26:51Z2014-07-16T17:26:51ZFrom git, perform shallow clone<div><p>No, I mean if you click download repo as zip from BitBucket UI -
does it take 7 minutes?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-18T22:17:50Z2014-07-18T22:17:51ZFrom git, perform shallow clone<div><p>My project's zip file on BitBucket is 17MB vs 1.06GB for the
entire repo. It takes me somewhere around 20 seconds to download
the zip from BitBucket. Granted, my internet connection is likely
higher bandwidth than what we're experiencing on the VM. Still,
downloading the zip rather than the a full clone operation seems
like a desirable option. Is this something that is possible today?
I know I can download the zip with PS but is there any way to
bypass the clone operation without losing the hook into the
repository?</p></div>Vinneytag:help.appveyor.com,2012-11-13:Comment/330607232014-07-19T05:34:00Z2014-07-19T05:34:00ZFrom git, perform shallow clone<div><p>I asked you to check that because I think we can implement
"shallow clone" for BitBucket, like we did for GitHub, so AppVeyor
doesn't use <code>hg</code> command, but just downloads zip and
unpacks it.</p>
<p>Thanks, I will give it a try and let you know about the
results.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-19T15:24:49Z2014-07-19T15:24:49ZFrom git, perform shallow clone<div><p>Great news! We've just deployed an update supporting "shallow
clone" for BitBucket repositories: public and private, git and
mercurial. Set "Fetch repository as zip archive" on General tab of
project settings or add <code>shallow_clone: true</code> into
appveyor.yml.</p>
<p>Let me know how it works for your project!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/330607232014-07-20T15:44:12Z2014-07-20T15:44:15ZFrom git, perform shallow clone<div><p>Works like a charm! We're working on lowering our build process
footprint so that we might condense our total time to the allotted
30 minutes. This will be a huge help! Thanks for adding the feature
so quickly!</p></div>Vinney