You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by wa...@apache.org on 2023/05/30 10:23:07 UTC
[incubator-pegasus] branch master updated: chore(github): remove CMakeFiles during Tar files in case of running out of disk space (#1498)
This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new 8706026ad chore(github): remove CMakeFiles during Tar files in case of running out of disk space (#1498)
8706026ad is described below
commit 8706026ad577764b8dc41fbd08548ec4d77ba578
Author: Dan Wang <wa...@apache.org>
AuthorDate: Tue May 30 18:22:59 2023 +0800
chore(github): remove CMakeFiles during Tar files in case of running out of disk space (#1498)
https://github.com/apache/incubator-pegasus/issues/1497
After `Build Release` and `Build with jemalloc` had failed due to running out of
disk space (resolved by https://github.com/apache/incubator-pegasus/pull/1486)
for the branch `migrate-metrics-dev`, Github actions `Build ASAN` failed too due
to the same reason for the same branch.
It was found that `CMakeFiles` directories had occupied much disk space, about
3.4 GB. Once these directories were cleared, more space would be spared.
This problem is also tracked by another PR:
https://github.com/apache/incubator-pegasus/pull/1491.
---
.github/workflows/lint_and_test_cpp.yaml | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/lint_and_test_cpp.yaml b/.github/workflows/lint_and_test_cpp.yaml
index bc68a7fc9..6506775e2 100644
--- a/.github/workflows/lint_and_test_cpp.yaml
+++ b/.github/workflows/lint_and_test_cpp.yaml
@@ -159,7 +159,8 @@ jobs:
mv thirdparty/hadoop-bin ./
mv thirdparty/zookeeper-bin ./
rm -rf thirdparty
- tar --exclude='*CMakeFiles*' -zcvhf release__builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
+ find ./build/latest/src/ -name '*CMakeFiles*' -type d -exec rm -rf "{}" +
+ tar -zcvhf release__builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
@@ -282,7 +283,8 @@ jobs:
mv thirdparty/hadoop-bin ./
mv thirdparty/zookeeper-bin ./
rm -rf thirdparty
- tar --exclude='*CMakeFiles*' -zcvhf release_address_builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
+ find ./build/latest/src/ -name '*CMakeFiles*' -type d -exec rm -rf "{}" +
+ tar -zcvhf release_address_builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
@@ -410,7 +412,8 @@ jobs:
# mv thirdparty/hadoop-bin ./
# mv thirdparty/zookeeper-bin ./
# rm -rf thirdparty
-# tar --exclude='*CMakeFiles*' -zcvhf release_undefined_builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
+# find ./build/latest/src/ -name '*CMakeFiles*' -type d -exec rm -rf "{}" +
+# tar -zcvhf release_undefined_builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
# - name: Upload Artifact
# uses: actions/upload-artifact@v3
# with:
@@ -535,7 +538,8 @@ jobs:
mv thirdparty/hadoop-bin ./
mv thirdparty/zookeeper-bin ./
rm -rf thirdparty
- tar --exclude='*CMakeFiles*' -zcvhf release_jemalloc_builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
+ find ./build/latest/src/ -name '*CMakeFiles*' -type d -exec rm -rf "{}" +
+ tar -zcvhf release_jemalloc_builder.tar build/latest/output build/latest/bin build/latest/src/server/test/config.ini hadoop-bin zookeeper-bin
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org