Skip to content

Commit f19a717

Browse files
committed
Semaphore: switch from /tmp to /var/tmp to avoid disk space issues
Builds have been failing as we run out of space in /tmp/, move to /var/tmp (cherry picked from commit 0c7b5da) (cherry picked from commit bc0102b) (cherry picked from commit 82baa27)
1 parent 55ee831 commit f19a717

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.semaphore/semaphore-runner.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ SALSA_URL="${SALSA_URL:-https://salsa.debian.org/systemd-team/systemd.git}"
1111
BRANCH="${BRANCH:-upstream-ci}"
1212
ARCH="${ARCH:-amd64}"
1313
CONTAINER="${RELEASE}-${ARCH}"
14-
CACHE_DIR="${SEMAPHORE_CACHE_DIR:-/tmp}"
14+
CACHE_DIR=/var/tmp
15+
TMPDIR=/var/tmp
1516
AUTOPKGTEST_DIR="${CACHE_DIR}/autopkgtest"
1617
# semaphore cannot expose these, but useful for interactive/local runs
1718
ARTIFACTS_DIR=/tmp/artifacts
@@ -101,7 +102,7 @@ EOF
101102
# now build the package and run the tests
102103
rm -rf "$ARTIFACTS_DIR"
103104
# autopkgtest exits with 2 for "some tests skipped", accept that
104-
sudo "$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS="noudeb nostrip optimize=-lto" \
105+
sudo TMPDIR=/var/tmp "$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS="noudeb nostrip optimize=-lto" \
105106
--env DPKG_DEB_COMPRESSOR_TYPE="none" \
106107
--env DEB_BUILD_PROFILES="noudeb" \
107108
--env TEST_UPSTREAM=1 \

0 commit comments

Comments
 (0)