[Mesa-dev] [PATCH] appveyor: Bump shallow clone depth.
Roland Scheidegger
sroland at vmware.com
Mon Jan 25 06:59:32 PST 2016
Am 24.01.2016 um 19:42 schrieb Jose Fonseca:
> To prevent build failures when a large patch series is committed, like
> happened in https://urldefense.proofpoint.com/v2/url?u=https-3A__ci.appveyor.com_project_jrfonseca-2Dfdo_mesa_build_322&d=BQIBAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Vjtt0vs_iqoI31UfJxBl7yv9I2FeiaeAYgMTLKRBc_I&m=Gk3CFJ05oqh1znZSK1leG9LvG7wkREWxQVsngYqVz1I&s=_Sy0BZuZKT6tCzkGJwNXuM_vPT3AAil6XrcEBbOyyIw&e=
> due to 10 commits between dac2964f3ebd96d5ac227984ab0cd79c2c3b2a1a and
> 6f428328d34bed16edb8709e4a117eb710d7893d where submitted before the
> build slave started the git clone.
>
> 100 commits should be bigger than any patch series seen in practice, and
> it takes practically the same time to download as 5 commits.
> ---
> appveyor.yml | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/appveyor.yml b/appveyor.yml
> index 68cc368..bf7ac75 100644
> --- a/appveyor.yml
> +++ b/appveyor.yml
> @@ -6,7 +6,7 @@
> # - Select Git and fill in the Git clone URL
> # - Setup a Git hook as explained in
> # https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_appveyor_webhooks-23installing-2Dgit-2Dhook&d=BQIBAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Vjtt0vs_iqoI31UfJxBl7yv9I2FeiaeAYgMTLKRBc_I&m=Gk3CFJ05oqh1znZSK1leG9LvG7wkREWxQVsngYqVz1I&s=1hEinahrwHHAWgLH9nEkTMUZgIbg7IS_2IZuBGeEy3w&e=
> -# - Check 'Settings > General > Skip branches without appveyor'
> +# - Check 'Settings > General > Skip branches without appveyor.yml'
> # - Check 'Settings > General > Rolling builds'
> # - Setup the global or project notifications to your liking
> #
> @@ -24,7 +24,14 @@ branches:
> except:
> - /^travis.*$/
>
> -clone_depth: 5
> +# Don't download the full Mesa history to speed up cloning. However the clone
> +# depth must not be too small, otherwise builds might fail when lots of patches
> +# are committed in succession, because the desired commit is not found on the
> +# truncated history.
> +#
> +# See also:
> +# - https://urldefense.proofpoint.com/v2/url?u=https-3A__www.appveyor.com_blog_2014_06_04_shallow-2Dclone-2Dfor-2Dgit-2Drepositories&d=BQIBAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Vjtt0vs_iqoI31UfJxBl7yv9I2FeiaeAYgMTLKRBc_I&m=Gk3CFJ05oqh1znZSK1leG9LvG7wkREWxQVsngYqVz1I&s=wFvmNDxxHy03-JtSUUpyCLwXuXnfEH-YGa90ke-LrXw&e=
> +clone_depth: 100
>
> cache:
> - win_flex_bison-2.4.5.zip
>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
More information about the mesa-dev
mailing list