Message ID | 20250224154236.1116264-1-andrew.cooper3@citrix.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | CirrusCI: Use shallow clone | expand |
On Mon, 24 Feb 2025, Andrew Cooper wrote: > This reduces the Clone step from ~50s to ~3s. > > Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org> > --- > CC: Roger Pau Monné <roger.pau@citrix.com> > CC: Anthony PERARD <anthony.perard@vates.tech> > CC: Stefano Stabellini <sstabellini@kernel.org> > CC: Michal Orzel <michal.orzel@amd.com> > CC: Doug Goldstein <cardoe@cardoe.com> > > Example with shallow clone: > https://cirrus-ci.com/task/4625566281760768 > > Example without: > https://cirrus-ci.com/task/5338544140451840 > --- > .cirrus.yml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.cirrus.yml b/.cirrus.yml > index 7216729b6993..e2949d99d73a 100644 > --- a/.cirrus.yml > +++ b/.cirrus.yml > @@ -13,6 +13,7 @@ freebsd_template: &FREEBSD_ENV > environment: > APPEND_LIB: /usr/local/lib > APPEND_INCLUDES: /usr/local/include > + CIRRUS_CLONE_DEPTH: 1 > > freebsd_full_build_template: &FREEBSD_FULL_BUILD_TEMPLATE > << : *FREEBSD_ENV > > base-commit: e16acd80674002cbc6b51626e826bd6f9f624a63 > -- > 2.39.5 >
On Mon, Feb 24, 2025 at 03:42:36PM +0000, Andrew Cooper wrote: > This reduces the Clone step from ~50s to ~3s. > > Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Nice, didn't know that existed. Acked-by: Roger Pau Monné <roger.pau@citrix.com> Thanks, Roger.
On 25/02/2025 8:15 am, Roger Pau Monné wrote: > On Mon, Feb 24, 2025 at 03:42:36PM +0000, Andrew Cooper wrote: >> This reduces the Clone step from ~50s to ~3s. >> >> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> > Nice, didn't know that existed. > > Acked-by: Roger Pau Monné <roger.pau@citrix.com> Thanks. I found it by chance while trying to make artefacts work. When a randconfig build fails, there's no way to figure out why. And while I've managed to make artefacts appear on the UI, they're always empty for reasons I'm still investigating. ~Andrew
diff --git a/.cirrus.yml b/.cirrus.yml index 7216729b6993..e2949d99d73a 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -13,6 +13,7 @@ freebsd_template: &FREEBSD_ENV environment: APPEND_LIB: /usr/local/lib APPEND_INCLUDES: /usr/local/include + CIRRUS_CLONE_DEPTH: 1 freebsd_full_build_template: &FREEBSD_FULL_BUILD_TEMPLATE << : *FREEBSD_ENV
This reduces the Clone step from ~50s to ~3s. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> --- CC: Roger Pau Monné <roger.pau@citrix.com> CC: Anthony PERARD <anthony.perard@vates.tech> CC: Stefano Stabellini <sstabellini@kernel.org> CC: Michal Orzel <michal.orzel@amd.com> CC: Doug Goldstein <cardoe@cardoe.com> Example with shallow clone: https://cirrus-ci.com/task/4625566281760768 Example without: https://cirrus-ci.com/task/5338544140451840 --- .cirrus.yml | 1 + 1 file changed, 1 insertion(+) base-commit: e16acd80674002cbc6b51626e826bd6f9f624a63