From 3efa444b15e045455dbdfa3c30a6cd25712766de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wa=C5=9B?= Date: Thu, 22 Sep 2022 17:50:07 +0200 Subject: [PATCH] Don't silently ignore failures in RPM test step in CI Because the RPM test is a separate step, it requires other modules build in this job to be installed in the local repo, to avoid building most modules twice. This in turn requires to manually clean them later to avoid caching them in Github, because only dependencies should be cached. --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2b7fa7625c68..2638509c0a42d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,11 +61,11 @@ jobs: - name: Maven Checks run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" - $RETRY $MAVEN clean verify -B --strict-checksums -V -T C1 -DskipTests -P ci -pl '!:trino-server-rpm' + $RETRY $MAVEN clean install -B --strict-checksums -V -T C1 -DskipTests -P ci -pl '!:trino-server-rpm' - name: Test Server RPM run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" - $RETRY bash -c "$MAVEN verify -B --strict-checksums -P ci -pl :trino-server-rpm || find core/trino-server-rpm/ -exec ls -ald {} +" + $RETRY $MAVEN verify -B --strict-checksums -P ci -pl :trino-server-rpm - name: Clean Maven Output run: $MAVEN clean -pl '!:trino-server,!:trino-cli' - uses: docker/setup-qemu-action@v1 @@ -73,6 +73,10 @@ jobs: platforms: arm64,ppc64le - name: Test Docker Image run: core/docker/build.sh + - name: Clean local Maven repo + # Avoid caching artifacts built in this job, cache should only include dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: rm -rf ~/.m2/repository/io/trino/trino-* check-commits: runs-on: ubuntu-latest