Skip to content

Commit 1f396a3

Browse files
committed
Fix CI test failures due to insufficient disk space
Clean up RPM and source tarball artifacts after installation/extraction to free disk space for subsequent test execution. Changes: - Remove RPM artifacts after installation - Remove source tarball after extraction - Add disk space logging before/after cleanup for debugging
1 parent 8bde32c commit 1f396a3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-cloudberry.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,22 @@ jobs:
12331233
rpm -qi apache-cloudberry-db-incubating
12341234
} 2>&1 | tee -a build-logs/details/rpm-installation.log
12351235
1236+
# Clean up downloaded RPM artifacts to free disk space
1237+
echo "=== Disk space before RPM cleanup ==="
1238+
echo "Human readable:"
1239+
df -kh /
1240+
echo "Exact KB:"
1241+
df -k /
1242+
echo "RPM artifacts size:"
1243+
du -sh "${{ github.workspace }}"/rpm_build_artifacts || true
1244+
echo "Cleaning up RPM artifacts to free disk space..."
1245+
rm -rf "${{ github.workspace }}"/rpm_build_artifacts
1246+
echo "=== Disk space after RPM cleanup ==="
1247+
echo "Human readable:"
1248+
df -kh /
1249+
echo "Exact KB:"
1250+
df -k /
1251+
12361252
- name: Extract source tarball
12371253
if: success() && needs.check-skip.outputs.should_skip != 'true'
12381254
env:
@@ -1258,6 +1274,22 @@ jobs:
12581274
du -sh "${SRC_DIR}/../cloudberry"
12591275
} 2>&1 | tee -a build-logs/details/source-extraction.log
12601276
1277+
# Clean up source tarball to free disk space
1278+
echo "=== Disk space before source tarball cleanup ==="
1279+
echo "Human readable:"
1280+
df -kh /
1281+
echo "Exact KB:"
1282+
df -k /
1283+
echo "Source tarball artifacts size:"
1284+
du -sh "${{ github.workspace }}"/source_build_artifacts || true
1285+
echo "Cleaning up source tarball to free disk space..."
1286+
rm -rf "${{ github.workspace }}"/source_build_artifacts
1287+
echo "=== Disk space after source tarball cleanup ==="
1288+
echo "Human readable:"
1289+
df -kh /
1290+
echo "Exact KB:"
1291+
df -k /
1292+
12611293
- name: Create Apache Cloudberry demo cluster
12621294
if: success() && needs.check-skip.outputs.should_skip != 'true'
12631295
env:
@@ -1385,6 +1417,7 @@ jobs:
13851417
esac
13861418
13871419
echo "Log file: $config_log"
1420+
13881421
echo "=== End configuration $((i+1)) execution ==="
13891422
echo ""
13901423
done

0 commit comments

Comments
 (0)