osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/39373?usp=email )


Change subject: jobs: manually trigger "git gc" for linux.git
......................................................................

jobs: manually trigger "git gc" for linux.git

We already use shallow clones for linux.git, and git runs a garbage
collector automatically to ensure no longer needed artifacts are
removed. But this did not work anymore on build4 for
build-kernel-net-next, and it increased up to 8.4 GiB:

    8,4 GiB /build-kernel-net-next

After running "git gc" again:

    3,3 GiB /build-kernel-net-next

The reason was that "git gc" did not exit successfully once and wrote a
log file, then refused to run again. Run "git gc --auto" explicitly in
foreground to let abort in such a case, so it does not go unnoticed in
the future.

Change-Id: Ic81ae5a1edb0dbe119e06cc3b49ea69ef81b2a5f
---
M jobs/build-kernels-testenv.yml
M jobs/gerrit-verifications-dahdi.yml
M jobs/master-builds-dahdi.yml
3 files changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/73/39373/1

diff --git a/jobs/build-kernels-testenv.yml b/jobs/build-kernels-testenv.yml
index d916093..47a9dd9 100644
--- a/jobs/build-kernels-testenv.yml
+++ b/jobs/build-kernels-testenv.yml
@@ -43,6 +43,9 @@
           default: 'master'
     builders:
       - shell: |-
+          git config gc.autoDetach false
+          git gc --auto
+
           IMAGE="osmocom-build/debian-bookworm-osmo-ttcn3-testenv"
           podman pull "registry.osmocom.org/$IMAGE"

diff --git a/jobs/gerrit-verifications-dahdi.yml 
b/jobs/gerrit-verifications-dahdi.yml
index 2cf9e95..de11b25 100644
--- a/jobs/gerrit-verifications-dahdi.yml
+++ b/jobs/gerrit-verifications-dahdi.yml
@@ -80,6 +80,9 @@

     builders:
       - shell: |
+          git -C linux config gc.autoDetach false
+          git -C linux gc --auto
+
           rm -rf dahdi-linux
           git init dahdi-linux
           cd dahdi-linux
diff --git a/jobs/master-builds-dahdi.yml b/jobs/master-builds-dahdi.yml
index 8f6d070..f72076f 100644
--- a/jobs/master-builds-dahdi.yml
+++ b/jobs/master-builds-dahdi.yml
@@ -56,6 +56,9 @@

     builders:
       - shell: |
+          git -C linux config gc.autoDetach false
+          git -C linux gc --auto
+
           rm -rf dahdi-linux
           git clone \
             --depth=1 \

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/39373?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ic81ae5a1edb0dbe119e06cc3b49ea69ef81b2a5f
Gerrit-Change-Number: 39373
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to