diff --git a/.github/workflows/debug-prelease.yml b/.github/workflows/debug-prelease.yml new file mode 100644 index 000000000..3f074f06f --- /dev/null +++ b/.github/workflows/debug-prelease.yml @@ -0,0 +1,73 @@ +# Debug-only workflow to reproduce the JFrog `-Prelease` failure for a +# discussion with JFrog support. Scoped to the debug branch so it cannot run +# elsewhere. Intentionally has no release/publish side effects: no artifact +# uploads, no GPG signing, no tag required. +name: Debug -Prelease against JFrog + +on: + push: + branches: + - debug/jfrog-prelease-repro + +permissions: + id-token: write + contents: read + +jobs: + prelease-repro: + runs-on: + group: databricks-protected-runner-group + labels: linux-ubuntu-latest + timeout-minutes: 20 + steps: + - name: Checkout + uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 + + # No Maven cache on purpose. A cache hit masks the JFrog resolution + # failure: the central-publishing-maven-plugin gets restored from a + # previous run instead of being fetched fresh through the mirror. + + - name: Setup JFrog CLI with OIDC + id: jfrog + uses: jfrog/setup-jfrog-cli@279b1f629f43dd5bc658d8361ac4802a7ef8d2d5 # v4.9.1 + env: + JF_URL: https://databricks.jfrog.io + with: + oidc-provider-name: github-actions + + - name: Set up Java + uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1 + with: + java-version: 8 + distribution: adopt + + - name: Configure Maven for JFrog + run: | + mkdir -p ~/.m2 + cat > ~/.m2/settings.xml << EOF + + + + jfrog-maven + https://databricks.jfrog.io/artifactory/db-maven/ + * + + + + + jfrog-maven + ${{ steps.jfrog.outputs.oidc-user }} + + + + + EOF + + # This is the step that fails. The -Prelease profile activates + # central-publishing-maven-plugin with true, + # which Maven tries to resolve from the JFrog db-maven mirror at startup. + # We expect this to fail so JFrog can see the exact error. + - name: Build with -Prelease (expected to fail) + run: mvn -Prelease -DskipTests=true --batch-mode -X install