Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Run JAR health check only on master and release branches (#66237)

Nemanja Glumac6e30ce468cc2
diff --git a/.github/workflows/uberjar.yml b/.github/workflows/uberjar.yml
index fe5462b567c..2150dc14dab 100644
--- a/.github/workflows/uberjar.yml
+++ b/.github/workflows/uberjar.yml
@@ -146,7 +146,13 @@ jobs:
runs-on: ubuntu-22.04
name: Is ${{ matrix.edition }} (java ${{ matrix.java-version }}) healthy?
needs: [build, check-existing-artifacts]
- if: always() && !cancelled() && (needs.build.result == 'success' || (needs.check-existing-artifacts.outputs.should_build == 'false' && needs.check-existing-artifacts.outputs.ee_exists == 'true' && needs.check-existing-artifacts.outputs.oss_exists == 'true'))
+ # We only care about the explicit JAR health check on push to `master` and the `release-` branches.
+ # JARs created in random branches on PRs are 99% of the time treated as ephemeral, and used only in e2e tests.
+ # E2E tests already have a step where they wait for the instance health check.
+ if: |
+ always() && !cancelled() &&
+ (github.ref == 'master' || startsWith(github.ref, 'release-')) &&
+ (needs.build.result == 'success' || (needs.check-existing-artifacts.outputs.should_build == 'false' && needs.check-existing-artifacts.outputs.ee_exists == 'true' && needs.check-existing-artifacts.outputs.oss_exists == 'true'))
timeout-minutes: 10
strategy:
matrix: