Skip to content

Commit ed9009e

Browse files
committed
Fix CI: clean up downloaded artifacts after installation
Remove RPM and source tarball artifacts after installation/extraction to free additional disk space before running tests.
1 parent 751871d commit ed9009e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-cloudberry.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,12 @@ jobs:
12511251
12521252
echo "Installation completed successfully"
12531253
rpm -qi apache-cloudberry-db-incubating
1254+
1255+
# Clean up downloaded RPM artifacts to free disk space
1256+
echo "Cleaning up RPM artifacts to free disk space..."
1257+
rm -rf "${GITHUB_WORKSPACE}"/rpm_build_artifacts
1258+
echo "Disk space after RPM cleanup:"
1259+
df -kh /
12541260
} 2>&1 | tee -a build-logs/details/rpm-installation.log
12551261
12561262
- name: Extract source tarball
@@ -1276,6 +1282,12 @@ jobs:
12761282
ls -la "${SRC_DIR}/../cloudberry"
12771283
echo "Directory size:"
12781284
du -sh "${SRC_DIR}/../cloudberry"
1285+
1286+
# Clean up source tarball to free disk space
1287+
echo "Cleaning up source tarball to free disk space..."
1288+
rm -rf "${GITHUB_WORKSPACE}"/source_build_artifacts
1289+
echo "Disk space after source tarball cleanup:"
1290+
df -kh /
12791291
} 2>&1 | tee -a build-logs/details/source-extraction.log
12801292
12811293
- name: Create Apache Cloudberry demo cluster

0 commit comments

Comments
 (0)