This is an automated email from the ASF dual-hosted git repository.

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d6593985d [INLONG-8614][CI] Remove unnecessary packages for UT and 
build workflow (#8615)
4d6593985d is described below

commit 4d6593985d3bf260a329ba424cdfeefce2ab47e7
Author: Charles Zhang <[email protected]>
AuthorDate: Tue Aug 1 09:41:41 2023 +0800

    [INLONG-8614][CI] Remove unnecessary packages for UT and build workflow 
(#8615)
---
 .github/workflows/ci_build.yml | 20 ++++++++++++++++++++
 .github/workflows/ci_ut.yml    | 20 ++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml
index ce5cb0bab7..a6f6dd685e 100644
--- a/.github/workflows/ci_build.yml
+++ b/.github/workflows/ci_build.yml
@@ -76,6 +76,26 @@ jobs:
           key: ${{ runner.os }}-inlong-build-${{ hashFiles('**/pom.xml') }}
           restore-keys: ${{ runner.os }}-inlong-build
 
+      - name: Set up swapfile path
+        run: |
+          sudo sysctl -w vm.max_map_count=262144
+          sudo sysctl -w fs.file-max=65536
+          sudo fallocate -l 5G /swapfile
+          sudo chmod 600 /swapfile
+          sudo mkswap /swapfile
+          sudo swapon /swapfile
+
+      - name: Remove unnecessary packages
+        run: |
+          echo "=== Before pruning ==="
+          df -h
+          sudo rm -rf /usr/share/dotnet
+          sudo rm -rf /usr/local/lib/android
+          sudo rm -rf /opt/ghc
+          echo
+          echo "=== After pruning ==="
+          df -h
+
       - name: Build with Maven
         run: |
           mvn --batch-mode --update-snapshots -e -V clean install -DskipTests 
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 
-Daether.connector.http.reuseConnections=false 
-Daether.connector.requestTimeout=60000
diff --git a/.github/workflows/ci_ut.yml b/.github/workflows/ci_ut.yml
index aa90250739..180a8e2876 100644
--- a/.github/workflows/ci_ut.yml
+++ b/.github/workflows/ci_ut.yml
@@ -75,6 +75,26 @@ jobs:
           key: ${{ runner.os }}-inlong-ut-${{ hashFiles('**/pom.xml') }}
           restore-keys: ${{ runner.os }}-inlong-ut
 
+      - name: Set up swapfile path
+        run: |
+          sudo sysctl -w vm.max_map_count=262144
+          sudo sysctl -w fs.file-max=65536
+          sudo fallocate -l 5G /swapfile
+          sudo chmod 600 /swapfile
+          sudo mkswap /swapfile
+          sudo swapon /swapfile
+
+      - name: Remove unnecessary packages
+        run: |
+          echo "=== Before pruning ==="
+          df -h
+          sudo rm -rf /usr/share/dotnet
+          sudo rm -rf /usr/local/lib/android
+          sudo rm -rf /opt/ghc
+          echo
+          echo "=== After pruning ==="
+          df -h
+
       - name: Build with Maven
         run: mvn --batch-mode --update-snapshots -e -V clean install 
-DskipTests -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 
-Daether.connector.http.reuseConnections=false 
-Daether.connector.requestTimeout=60000
         env:

Reply via email to