From 11076f175bf0c98b0934ba8c271fc24fdd5318bf Mon Sep 17 00:00:00 2001 From: Jan Was Date: Tue, 26 Jul 2022 21:53:07 +0200 Subject: [PATCH 1/2] In CI skip installing into local repository --- .github/workflows/ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d468ca3cd81a..942fc542fee1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: - name: Maven Checks run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" - $RETRY $MAVEN clean install -B --strict-checksums -V -T C1 -DskipTests -P ci -pl '!:trino-server-rpm' + $RETRY $MAVEN clean verify -B --strict-checksums -V -T C1 -DskipTests -P ci -pl '!:trino-server-rpm' - name: Test Server RPM run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" @@ -90,17 +90,17 @@ jobs: cache: 'maven' - name: Configure Problem Matchers run: echo "::add-matcher::.github/problem-matcher.json" - - name: Maven Install + - name: Maven Package run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" - $RETRY $MAVEN clean install ${MAVEN_FAST_INSTALL} ${MAVEN_GIB} -pl '!:trino-docs,!:trino-server,!:trino-server-rpm' + $RETRY $MAVEN clean package ${MAVEN_FAST_INSTALL} ${MAVEN_GIB} -pl '!:trino-docs,!:trino-server,!:trino-server-rpm' - name: Error Prone Checks run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" # Run Error Prone on one module with a retry to ensure all runtime dependencies are fetched - $RETRY $MAVEN ${MAVEN_TEST} -T C1 clean test-compile -P gib,errorprone-compiler -pl ':trino-spi' + $RETRY $MAVEN ${MAVEN_TEST} -T C1 clean verify -DskipTests -P gib,errorprone-compiler -pl ':trino-spi' # The main Error Prone run - $MAVEN ${MAVEN_TEST} -T C1 clean test-compile -P gib,errorprone-compiler \ + $MAVEN ${MAVEN_TEST} -T C1 clean verify -DskipTests -P gib,errorprone-compiler \ -pl '!:trino-docs,!:trino-server,!:trino-server-rpm' web-ui-checks: @@ -164,6 +164,9 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} + - name: Clean local Maven repo + if: steps.cache.outputs.cache-hit != 'true' + run: rm -rf ~/.m2/repository hive-tests: runs-on: ubuntu-latest @@ -288,6 +291,9 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} + - name: Clean local Maven repo + if: steps.cache.outputs.cache-hit != 'true' + run: rm -rf ~/.m2/repository test-other-modules: runs-on: ubuntu-latest @@ -360,6 +366,9 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} + - name: Clean local Maven repo + if: steps.cache.outputs.cache-hit != 'true' + run: rm -rf ~/.m2/repository build-test-matrix: runs-on: ubuntu-latest @@ -527,6 +536,9 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} + - name: Clean local Maven repo + if: steps.cache.outputs.cache-hit != 'true' + run: rm -rf ~/.m2/repository build-pt: runs-on: ubuntu-latest @@ -593,6 +605,9 @@ jobs: testing/trino-product-tests/target/*-executable.jar client/trino-cli/target/*-executable.jar retention-days: 1 + - name: Clean local Maven repo + if: steps.cache.outputs.cache-hit != 'true' + run: rm -rf ~/.m2/repository pt: runs-on: ubuntu-latest From f773016af223f3179df4111b6b762068aa1bdfb2 Mon Sep 17 00:00:00 2001 From: Jan Was Date: Thu, 4 Aug 2022 13:25:23 +0200 Subject: [PATCH 2/2] Disable CI cache --- .github/workflows/ci.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 942fc542fee1..50072f7d398e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,6 @@ jobs: with: distribution: 'zulu' java-version: ${{ matrix.java-version }} - cache: 'maven' - name: Configure Problem Matchers run: echo "::add-matcher::.github/problem-matcher.json" - name: Maven Checks @@ -87,7 +86,6 @@ jobs: with: distribution: 'zulu' java-version: 17 - cache: 'maven' - name: Configure Problem Matchers run: echo "::add-matcher::.github/problem-matcher.json" - name: Maven Package @@ -126,7 +124,6 @@ jobs: with: distribution: 'zulu' java-version: 17 - cache: 'maven' - name: Configure Problem Matchers run: echo "::add-matcher::.github/problem-matcher.json" - name: Maven Install @@ -164,9 +161,6 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} - - name: Clean local Maven repo - if: steps.cache.outputs.cache-hit != 'true' - run: rm -rf ~/.m2/repository hive-tests: runs-on: ubuntu-latest @@ -189,7 +183,6 @@ jobs: with: distribution: 'zulu' java-version: 17 - cache: 'maven' - name: Configure Problem Matchers run: echo "::add-matcher::.github/problem-matcher.json" - name: Install Hive Module @@ -291,9 +284,6 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} - - name: Clean local Maven repo - if: steps.cache.outputs.cache-hit != 'true' - run: rm -rf ~/.m2/repository test-other-modules: runs-on: ubuntu-latest @@ -308,7 +298,6 @@ jobs: with: distribution: 'zulu' java-version: 17 - cache: 'maven' - name: Configure Problem Matchers run: echo "::add-matcher::.github/problem-matcher.json" - name: Maven Install @@ -366,9 +355,6 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} - - name: Clean local Maven repo - if: steps.cache.outputs.cache-hit != 'true' - run: rm -rf ~/.m2/repository build-test-matrix: runs-on: ubuntu-latest @@ -449,7 +435,6 @@ jobs: with: distribution: 'zulu' java-version: 17 - cache: 'maven' - name: Configure Problem Matchers run: echo "::add-matcher::.github/problem-matcher.json" - name: Cleanup node @@ -536,9 +521,6 @@ jobs: path: | **/surefire-reports/TEST-*.xml retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }} - - name: Clean local Maven repo - if: steps.cache.outputs.cache-hit != 'true' - run: rm -rf ~/.m2/repository build-pt: runs-on: ubuntu-latest @@ -555,7 +537,6 @@ jobs: with: distribution: 'zulu' java-version: 17 - cache: 'maven' - name: Check secrets run: | if [[ "${{ secrets.AZURE_ABFS_CONTAINER }}" != "" && \ @@ -605,9 +586,6 @@ jobs: testing/trino-product-tests/target/*-executable.jar client/trino-cli/target/*-executable.jar retention-days: 1 - - name: Clean local Maven repo - if: steps.cache.outputs.cache-hit != 'true' - run: rm -rf ~/.m2/repository pt: runs-on: ubuntu-latest