Skip to content

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

Key the uberjar artifact on the dispatched commit (#79449)

Nemanja Glumaceee8e4e4e9b8
diff --git a/.github/actions/prepare-uberjar-artifact/action.yml b/.github/actions/prepare-uberjar-artifact/action.yml
deleted file mode 100644
index 4c73d383b71..00000000000
--- a/.github/actions/prepare-uberjar-artifact/action.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Prepare Uberjar Artifact
-description: Prepare and upload Metabase JAR as a GitHub artifact.
-
-inputs:
- edition:
- required: false
- default: "ee"
- description: Metabase edition (ee or oss)
-
-runs:
- using: "composite"
- steps:
- - name: Mark with the commit hash
- run: git rev-parse --short HEAD > COMMIT-ID
- shell: bash
- - name: Calculate SHA256 checksum
- run: sha256sum ./target/uberjar/metabase.jar > SHA256.sum
- shell: bash
- - name: Upload JARs as artifact
- uses: actions/upload-artifact@v7
- with:
- name: metabase-${{ inputs.edition }}-${{ github.event.pull_request.head.sha || github.sha }}-uberjar
- path: |
- ./target/uberjar/metabase.jar
- ./COMMIT-ID
- ./SHA256.sum
diff --git a/.github/file-paths.yaml b/.github/file-paths.yaml
index 4a8f3f4b0ac..72e9c2b0b03 100644
--- a/.github/file-paths.yaml
+++ b/.github/file-paths.yaml
@@ -150,7 +150,7 @@ custom_viz_all:
e2e_ci: &e2e_ci
- *shared_ci
- - ".github/actions/prepare-uberjar-artifact/**"
+ - ".github/workflows/uberjar.yml"
- ".github/actions/fetch-artifact/action.yml"
- ".github/actions/e2e-prepare-containers/**"
- ".github/actions/prepare-cypress/**"
@@ -161,7 +161,7 @@ e2e_specs: &e2e_specs
embedding_sdk_ci: &embedding_sdk_ci
- *shared_ci
- - ".github/actions/prepare-uberjar-artifact/**"
+ - ".github/workflows/uberjar.yml"
- ".github/actions/fetch-artifact/action.yml"
- ".github/actions/prepare-cypress/**"
- ".github/workflows/embedding-sdk*.yml"
diff --git a/.github/workflows/uberjar.yml b/.github/workflows/uberjar.yml
index efa2b08b7fd..6e6ced01513 100644
--- a/.github/workflows/uberjar.yml
+++ b/.github/workflows/uberjar.yml
@@ -154,10 +154,22 @@ jobs:
name: metabase-bundle-stats-${{ matrix.edition }}-${{ github.event.inputs.commit || github.event.pull_request.head.sha || github.sha }}
path: target/bundle-stats
if-no-files-found: warn
- - name: Prepare uberjar artifact
- uses: ./.github/actions/prepare-uberjar-artifact
+ - name: Mark with the commit hash
+ run: git rev-parse --short HEAD > COMMIT-ID
+ shell: bash
+ - name: Calculate SHA256 checksum
+ run: sha256sum ./target/uberjar/metabase.jar > SHA256.sum
+ shell: bash
+ - name: Upload JARs as artifact
+ uses: actions/upload-artifact@v7
with:
- edition: ${{ matrix.edition }}
+ # Same key the artifact lookups use, so a build for an explicitly dispatched commit
+ # uploads where `check-existing-artifacts` and `check-jar-health` go looking for it.
+ name: metabase-${{ matrix.edition }}-${{ github.event.inputs.commit || github.event.pull_request.head.sha || github.sha }}-uberjar
+ path: |
+ ./target/uberjar/metabase.jar
+ ./COMMIT-ID
+ ./SHA256.sum
check-jar-health:
runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}