CirrusCI: Use shallow clone
PATCH 1/1 CirrusCI: Use shallow clone
This reduces the Clone step from ~50s to ~3s.
---
CC: Roger Pau Monné <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
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(+)
.cirrus.yml +1 -0
@@ -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
Signature · 1 line
2.39.5
Quoted 3 lines · Andrew Cooper
This reduces the Clone step from ~50s to ~3s.
Signed-off-by Andrew Cooper <[email protected]>
Quoted 33 lines
---
CC: Roger Pau Monné <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>Example with shallow clone:
https://cirrus-ci.com/task/4625566281760768Example without:
https://cirrus-ci.com/task/5338544140451840--- .cirrus.yml | 1 + 1 file changed, 1 insertion(+).cirrus.yml +1
-0@@ -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_ENVbase-commit:
e16acd80674002cbc6b51626e826bd6f9f624a63Signature · 1 line
2.39.5
Quoted 3 lines · Andrew Cooper
This reduces the Clone step from ~50s to ~3s.
Signed-off-by Andrew Cooper <[email protected]>
Nice, didn't know that existed.
Thanks, Roger.
Quoted 7 lines · Roger Pau Monné
Quoted 3 lines · Andrew Cooper
This reduces the Clone step from ~50s to ~3s.
Signed-off-by Andrew Cooper <[email protected]>Nice, didn't know that existed.
Acked-by Roger Pau Monné <[email protected]>
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