Skip to contentSkip to conversation

CirrusCI: Use shallow clone

PATCH In review Andrew Cooper 3 participants 4 messages Feb 24, 2025 – Feb 25, 2025

lore
Share & tools
lore
#0 lore raw

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
index 7216729b6993..e2949d99d73a 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Andrew Cooper

This reduces the Clone step from ~50s to ~3s.

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/4625566281760768

Example without:
https://cirrus-ci.com/task/5338544140451840

---
 .cirrus.yml | 1 +
 1 file changed, 1 insertion(+)
.cirrus.yml +1 -0
index 7216729b6993..e2949d99d73a 100644
@@ -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
#3 lore raw
Quoted 7 lines · Roger Pau Monné
Quoted 3 lines · Andrew Cooper

This reduces the Clone step from ~50s to ~3s.

Nice, didn't know that existed.

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