You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by ve...@apache.org on 2023/07/11 09:03:03 UTC
[inlong] 02/03: [INLONG-8494][CI] Use different maven cache key for workflows (#8495)
This is an automated email from the ASF dual-hosted git repository.
vernedeng pushed a commit to branch branch-1.8
in repository https://gitbox.apache.org/repos/asf/inlong.git
commit 9c04a5c1f01c04ecc8084a3511a533779ff230f9
Author: Charles Zhang <do...@apache.org>
AuthorDate: Tue Jul 11 13:04:11 2023 +0800
[INLONG-8494][CI] Use different maven cache key for workflows (#8495)
---
.github/workflows/ci_build.yml | 4 ++--
.github/workflows/ci_docker.yml | 4 ++--
.github/workflows/ci_ut.yml | 4 ++--
.github/workflows/ci_ut_flink15.yml | 4 ++--
.github/workflows/codeql_analysis.yml | 24 ++++++++++++++++++++++--
5 files changed, 30 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml
index 1e6f6b79d0..ce5cb0bab7 100644
--- a/.github/workflows/ci_build.yml
+++ b/.github/workflows/ci_build.yml
@@ -73,8 +73,8 @@ jobs:
~/.m2/repository
!~/.m2/repository/org/apache/inlong
!~/.m2/repository/com/github/eirslett
- key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ key: ${{ runner.os }}-inlong-build-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-inlong-build
- name: Build with Maven
run: |
diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml
index 325de38bb0..9ec361651f 100644
--- a/.github/workflows/ci_docker.yml
+++ b/.github/workflows/ci_docker.yml
@@ -78,8 +78,8 @@ jobs:
path: |
~/.m2/repository
!~/.m2/repository/org/apache/inlong
- key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ key: ${{ runner.os }}-inlong-docker-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-inlong-docker
- name: Set up swapfile path
run: |
diff --git a/.github/workflows/ci_ut.yml b/.github/workflows/ci_ut.yml
index 9c49fec5dd..aa90250739 100644
--- a/.github/workflows/ci_ut.yml
+++ b/.github/workflows/ci_ut.yml
@@ -72,8 +72,8 @@ jobs:
path: |
~/.m2/repository
!~/.m2/repository/org/apache/inlong
- key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ key: ${{ runner.os }}-inlong-ut-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-inlong-ut
- 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_flink15.yml b/.github/workflows/ci_ut_flink15.yml
index f40e941775..abaf605256 100644
--- a/.github/workflows/ci_ut_flink15.yml
+++ b/.github/workflows/ci_ut_flink15.yml
@@ -51,8 +51,8 @@ jobs:
path: |
~/.m2/repository
!~/.m2/repository/org/apache/inlong
- key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ key: ${{ runner.os }}-inlong-flink15-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-inlong-flink15
- name: Build for Flink 1.15 with Maven
run: mvn --update-snapshots -e -V package -U -pl inlong-sort/sort-core -am -Pv1.15 -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/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml
index 7f5770c9c3..6b82aba96a 100644
--- a/.github/workflows/codeql_analysis.yml
+++ b/.github/workflows/codeql_analysis.yml
@@ -58,9 +58,29 @@ jobs:
~/.m2/repository
!~/.m2/repository/org/apache/inlong
!~/.m2/repository/com/github/eirslett
- key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ key: ${{ runner.os }}-inlong-codesql-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-inlong-codesql
+ - 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