Re: Cleaning salsa build cache before a new build
Hi,
Le 30/09/2025 à 11:47, Santiago Ruano Rincón a écrit :
El 30/09/25 a las 11:20, Vincent Danjean escribió:
Is there a way to remove the (cached on disk) tarball on salsa, so
that the correct tarball would be taken from pristine-tar git branch?
You should find a "clear runner caches" button at
https://salsa.debian.org/debian/taktuk/-/pipelines. That's the only
method I am aware of. I haven't searched for an API-based equivalent.
I did not see this button, thanks.
However, even if I get "Project cache successfully reset." when clicking,
when restarting the job, I see:
[...new compilation cache (button effect): ]
Restoring cache 00:00
Checking cache for build-amd64_-2-protected...
WARNING: file does not exist
Failed to extract cache
[...but: ]
$ gbp pull --ignore-branch --pristine-tar --track-missing
gbp:info: Fetching from default remote for each branch
gbp:info: Found detached head at '8556c2cdabd46bb38db496e225f17485d1af2af6'
gbp:info: Branch 'pristine-tar' is already up to date.
gbp:info: Branch 'upstream' is already up to date.
gbp:info: Branch 'master' is already up to date.
$ test -z "${HOST_ARCH}" || export HOST_ARCH_ARG="--host=${HOST_ARCH}"
$ test -z "${HOST_ARCH}" || export DEB_BUILD_OPTIONS="nocheck ${DEB_BUILD_OPTIONS}"
$ if echo "$SALSA_CI_DISABLE_BUILD_DBGSYM" | grep -qE '^(1|yes|true)$'; then
$ test "$DB_BUILD_TYPE" != "any" || BUILD_TYPE_ARG="--arch-any --no-arch-all"
$ test "$DB_BUILD_TYPE" != "all" || BUILD_TYPE_ARG="--arch-all --no-arch-any"
$ test "$DB_BUILD_TYPE" != "source" || BUILD_TYPE_ARG="--source --no-arch-all --no-arch-any"
$ test "$DB_BUILD_TYPE" != "full" || BUILD_TYPE_ARG="--source --arch-all --arch-any"
$ if echo "$SALSA_CI_DISABLE_GBP_SETUP_GITATTRIBUTES" | grep -qvE '^(1|yes|true)$'; then test -r .gitattributes && gbp setup-gitattributes ; fi
$ if find . -maxdepth 3 -wholename "*/debian/source/format" -exec cat {} \; | grep -q '3.0 (gitarchive)'
gbp:info: All Orig tarballs 'taktuk_3.7.8.orig.tar.gz' found at '/builds/debian/taktuk/build/'
gbp:info: Creating taktuk_3.7.8.orig.tar.gz from 'upstream/3.7.8'
gbp:info: Disabling 'cleaner' hook
gbp:info: Exporting 'HEAD' to '/builds/debian/taktuk/build/taktuk-tmp'
gbp:info: Moving '/builds/debian/taktuk/build/taktuk-tmp' to '/builds/debian/taktuk/build/taktuk-3.7.8'
gbp:info: Performing the build
$ ls -lh ${BUILD_DIR}
total 608K
drwxrwxr-x 9 root root 4.0K Sep 30 08:47 taktuk-3.7.8
-rw-r--r-- 1 root root 603K Sep 30 11:58 taktuk_3.7.8.orig.tar.gz
[...]
So, the /builds/debian/taktuk/build/taktuk_3.7.8.orig.tar.gz file is not removed with the provided button
and still (wrongly) used to try to build the package.
Regards,
Vincent
Reply to: