Skip to content

Commit 32902a9

Browse files
committed
print a warning and fallback instead of failing ci
we assume the disks are ext4, but GH doesn't guarantee that.
1 parent 7d3733d commit 32902a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ci/scripts/free-disk-space-linux.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ checkAlternative() {
275275
# remount under the obj dir which is used by docker scripts to write most
276276
# of our build output. And apply optimized mount options while we're at it.
277277
mkdir ./obj
278-
sudo mount $blkdev ./obj -o $mntopts || (sudo dmesg | tail -n 20 ; exit 1)
278+
if ! sudo mount $blkdev ./obj -o $mntopts; then
279+
sudo dmesg | tail -n 20 # kernel log should have more details for mount failures
280+
echo "::warning::Failed to remount $blkdev to ./obj with options: $mntopts"
281+
return
282+
fi
279283

280284
# ensure current user can access everything.
281285
# later scripts assume they have recursive access to obj

0 commit comments

Comments
 (0)