|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +name: Run Java QuickStart RC Validation |
| 19 | + |
| 20 | +on: |
| 21 | + workflow_dispatch: |
| 22 | + inputs: |
| 23 | + RELEASE_VER: |
| 24 | + description: 'Beam Release Version (e.g., 2.64.0)' |
| 25 | + required: true |
| 26 | + default: '2.xx.0' |
| 27 | + RC_NUM: |
| 28 | + description: 'Release Candidate number (e.g., 1)' |
| 29 | + required: true |
| 30 | + default: '1' |
| 31 | + APACHE_CONTENTS_REPO: |
| 32 | + description: 'Apache Staging Repository URL (e.g., https://repository.apache.org/content/repositories/orgapachebeam-1234)' |
| 33 | + required: true |
| 34 | + |
| 35 | +# This allows a subsequently queued workflow run to interrupt previous runs |
| 36 | +concurrency: |
| 37 | + group: '${{ github.workflow }} @ ${{ github.event.inputs.RELEASE_VER }}-${{ github.event.inputs.RC_NUM }}' |
| 38 | + cancel-in-progress: true |
| 39 | + |
| 40 | +# Setting explicit permissions for the action |
| 41 | +permissions: |
| 42 | + actions: write |
| 43 | + pull-requests: write # Needed for setup-action potentially |
| 44 | + checks: write |
| 45 | + contents: read # Needs read to checkout the code |
| 46 | + deployments: read |
| 47 | + id-token: write # Required for GCP Workload Identity Federation (if needed by setup) |
| 48 | + issues: write |
| 49 | + discussions: read |
| 50 | + packages: read |
| 51 | + pages: read |
| 52 | + repository-projects: read |
| 53 | + security-events: read |
| 54 | + statuses: read |
| 55 | + |
| 56 | +env: |
| 57 | + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} |
| 58 | + GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }} |
| 59 | + GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }} |
| 60 | + APACHE_REPO_URL: ${{ github.event.inputs.APACHE_CONTENTS_REPO }} |
| 61 | + RELEASE_VERSION: ${{ github.event.inputs.RELEASE_VER }} |
| 62 | + RC_TAG: "v${{github.event.inputs.RELEASE_VER}}-RC${{github.event.inputs.RC_NUM}}" |
| 63 | + |
| 64 | +jobs: |
| 65 | + run_java_quickstart_rc_validation: |
| 66 | + name: Run Java QuickStart RC Validation (${{ github.event.inputs.RELEASE_VER }} RC${{ github.event.inputs.RC_NUM }}) |
| 67 | + runs-on: [self-hosted, ubuntu-20.04, main] |
| 68 | + timeout-minutes: 60 # Adjust timeout as needed |
| 69 | + steps: |
| 70 | + - name: Checkout code at RC tag |
| 71 | + uses: actions/checkout@v4 |
| 72 | + with: |
| 73 | + ref: ${{ env.RC_TAG }} |
| 74 | + |
| 75 | + - name: Setup environment |
| 76 | + uses: ./.github/actions/setup-environment-action |
| 77 | + with: |
| 78 | + java-version: 11 |
| 79 | + |
| 80 | + - name: Run QuickStart Java Direct Runner |
| 81 | + uses: ./.github/actions/gradle-command-self-hosted-action |
| 82 | + with: |
| 83 | + gradle-command: :runners:direct-java:runQuickstartJavaDirect |
| 84 | + arguments: | |
| 85 | + -Prepourl=${{ env.APACHE_REPO_URL }} \ |
| 86 | + -Pver=${{ env.RELEASE_VERSION }} |
| 87 | +
|
| 88 | + - name: Run QuickStart Java Flink Runner |
| 89 | + uses: ./.github/actions/gradle-command-self-hosted-action |
| 90 | + with: |
| 91 | + gradle-command: :runners:flink:1.19:runQuickstartJavaFlinkLocal |
| 92 | + arguments: | |
| 93 | + -Prepourl=${{ env.APACHE_REPO_URL }} \ |
| 94 | + -Pver=${{ env.RELEASE_VERSION }} |
| 95 | +
|
| 96 | + - name: Run QuickStart Java Spark Runner |
| 97 | + uses: ./.github/actions/gradle-command-self-hosted-action |
| 98 | + with: |
| 99 | + gradle-command: :runners:spark:3:runQuickstartJavaSpark |
| 100 | + arguments: | |
| 101 | + -Prepourl=${{ env.APACHE_REPO_URL }} \ |
| 102 | + -Pver=${{ env.RELEASE_VERSION }} |
0 commit comments