From 72cc081bbac98c36ba387095ef597920783fb3c1 Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Tue, 17 Oct 2023 07:00:03 +0000 Subject: [PATCH 1/3] build(java): dont pack resouces for source-jars Github runner has the limitation of disk usage of 14G, this should help reduce the disk usage on CI. --- java/pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/pom.xml b/java/pom.xml index 00c893a4201..42ba84c34b8 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -355,7 +355,7 @@ org.apache.maven.plugins maven-source-plugin - 2.2.1 + 3.3.0 attach-sources @@ -364,6 +364,9 @@ + + true + org.apache.maven.plugins From d79345d1db92959f5740964d1fcfc4f06fce2b18 Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Tue, 17 Oct 2023 07:29:58 +0000 Subject: [PATCH 2/3] ci(sdk): reduce cache size for maven 1. don't include local installed openmldb jars, they are not dependency 2. don't fallback cache if key miss-match --- .github/workflows/sdk.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index ed78524a9f6..449fe60a7c3 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -68,8 +68,6 @@ jobs: with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('java/**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - name: prepare release if: github.event_name == 'push' @@ -124,6 +122,7 @@ jobs: - name: maven coverage working-directory: java run: | + rm -rv ~/.m2/repository/com/4paradigm/ ./mvnw --batch-mode prepare-package ./mvnw --batch-mode scoverage:report @@ -160,8 +159,6 @@ jobs: with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('java/**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - name: Cache thirdparty uses: actions/cache@v3 @@ -236,6 +233,10 @@ jobs: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_TOKEN: ${{ secrets.OSSRH_TOKEN }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + - name: cleanup + run: | + rm -rv ~/.m2/repository/com/4paradigm/ + python-sdk: runs-on: ubuntu-latest From a59ce123a78c95e28d4f7f92d320a7ad009b50c6 Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Tue, 17 Oct 2023 07:41:37 +0000 Subject: [PATCH 3/3] fix: rm if dir not exists --- .github/workflows/sdk.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index 449fe60a7c3..8f4dc6bd628 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -122,7 +122,7 @@ jobs: - name: maven coverage working-directory: java run: | - rm -rv ~/.m2/repository/com/4paradigm/ + rm -rfv ~/.m2/repository/com/4paradigm/ ./mvnw --batch-mode prepare-package ./mvnw --batch-mode scoverage:report @@ -235,7 +235,7 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - name: cleanup run: | - rm -rv ~/.m2/repository/com/4paradigm/ + rm -rfv ~/.m2/repository/com/4paradigm/ python-sdk: