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 86181aac9 chore(github): remove directories and tarballs after packing 
server and tools for github actions in case of running out of disk space (#1486)
86181aac9 is described below

commit 86181aac93de065dddb18589fab22dfa3a4f5ead
Author: Dan Wang <[email protected]>
AuthorDate: Fri May 26 16:23:51 2023 +0800

    chore(github): remove directories and tarballs after packing server and 
tools for github actions in case of running out of disk space (#1486)
    
    https://github.com/apache/incubator-pegasus/issues/1485
    
    Github actions `Build Release` and `Build with jemalloc` failed for the 
branch
    `migrate-metrics-dev` due to running out of disk space. Both failed jobs 
would
    pack servers and tools while another successful job `Build ASAN` would never
    do.
    
    After packaging, generated directories and tarballs would consume 2.7GB disk
    space. Therefore, we could drop the generated directories and tarballs to 
spare
    more disk space after packaging, though this problem has not been found for
    master branch.
    
    This problem is also tracked by another PR:
            https://github.com/apache/incubator-pegasus/pull/1484
---
 .github/workflows/lint_and_test_cpp.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/lint_and_test_cpp.yaml 
b/.github/workflows/lint_and_test_cpp.yaml
index 8b10be60f..bc68a7fc9 100644
--- a/.github/workflows/lint_and_test_cpp.yaml
+++ b/.github/workflows/lint_and_test_cpp.yaml
@@ -147,9 +147,13 @@ jobs:
           ./run.sh build --test --skip_thirdparty -j $(nproc) -t release
           ccache -s
       - name: Pack Server
-        run: ./run.sh pack_server
+        run: |
+          ./run.sh pack_server
+          rm -rf pegasus-server-*
       - name: Pack Tools
-        run: ./run.sh pack_tools
+        run: |
+          ./run.sh pack_tools
+          rm -rf pegasus-tools-*
       - name: Tar files
         run: |
           mv thirdparty/hadoop-bin ./


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to