HBASE-29588: New HFile Design For Multi-Tenant Support (cherry-pick of PR #7296 onto branch-2) #1297
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, | |
| # software distributed under the License is distributed on an | |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| # KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations | |
| # under the License. | |
| # yamllint disable rule:line-length | |
| --- | |
| name: Yetus JDK17 Hadoop3 Compile Check | |
| "on": | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled, unlabeled] | |
| permissions: | |
| contents: read | |
| statuses: write | |
| jobs: | |
| jdk17-hadoop3-compile-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| env: | |
| YETUS_VERSION: '0.15.0' | |
| steps: | |
| - name: Checkout HBase | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| path: src | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Maven cache | |
| uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.m2 | |
| key: hbase-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| hbase-m2- | |
| - name: Download Yetus (pinned release) | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'test-yetus-prerelease') }} | |
| run: | | |
| mkdir -p yetus | |
| cd yetus | |
| bash "${{ github.workspace }}/src/dev-support/jenkins-scripts/cache-apache-project-artifact.sh" \ | |
| --keys 'https://downloads.apache.org/yetus/KEYS' \ | |
| --verify-tar-gz \ | |
| ./apache-yetus-${{ env.YETUS_VERSION }}-bin.tar.gz \ | |
| yetus/${{ env.YETUS_VERSION }}/apache-yetus-${{ env.YETUS_VERSION }}-bin.tar.gz | |
| tar --strip-components=1 -xzf apache-yetus-${{ env.YETUS_VERSION }}-bin.tar.gz | |
| rm apache-yetus-${{ env.YETUS_VERSION }}-bin.tar.gz | |
| - name: Set up JDK 21 (prerelease, build-only) | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'test-yetus-prerelease') }} | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Checkout apache/yetus@HEAD (prerelease) | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'test-yetus-prerelease') }} | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| repository: apache/yetus | |
| path: yetus-src | |
| persist-credentials: false | |
| - name: Build Yetus from source (prerelease) | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'test-yetus-prerelease') }} | |
| run: | | |
| set -euo pipefail | |
| YETUS_SHA="$(git -C yetus-src rev-parse HEAD)" | |
| { | |
| echo "## Yetus prerelease build" | |
| echo "" | |
| echo "- Source: \`apache/yetus@${YETUS_SHA}\`" | |
| echo "- Triggered by \`test-yetus-prerelease\` label on this PR" | |
| } >> "${GITHUB_STEP_SUMMARY}" | |
| (cd yetus-src && mvn -B -DskipTests install) | |
| mkdir -p yetus | |
| tar --strip-components=1 \ | |
| -xzf yetus-src/yetus-dist/target/artifacts/apache-yetus-*-bin.tar.gz \ | |
| -C yetus | |
| - name: Run Yetus JDK17 Hadoop3 Compile Check | |
| env: | |
| ARCHIVE_PATTERN_LIST: "TEST-*.xml,org.apache.h*.txt,*.dumpstream,*.dump" | |
| DOCKERFILE: "${{ github.workspace }}/src/dev-support/docker/Dockerfile" | |
| GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_USER: ${{ github.actor }} | |
| HADOOP_PROFILE: "3.0" | |
| JAVA8_HOME: "/usr/lib/jvm/java-8" | |
| PATCHDIR: "${{ github.workspace }}/yetus-jdk17-hadoop3-compile-check/output" | |
| PLUGINS: "compile,github,htmlout,javac,javadoc,maven,mvninstall,shadedjars" | |
| SET_JAVA_HOME: "/usr/lib/jvm/java-17" | |
| SOURCEDIR: "${{ github.workspace }}/src" | |
| TESTS_FILTER: "javac,javadoc" | |
| YETUSDIR: "${{ github.workspace }}/yetus" | |
| AUTHOR_IGNORE_LIST: "src/main/asciidoc/_chapters/developer.adoc" | |
| BLANKS_EOL_IGNORE_FILE: "dev-support/blanks-eol-ignore.txt" | |
| BLANKS_TABS_IGNORE_FILE: "dev-support/blanks-tabs-ignore.txt" | |
| BUILD_THREAD: "4" | |
| BRANCH_NAME: "${{ github.base_ref }}" | |
| CHANGE_TARGET: "${{ github.base_ref }}" | |
| SKIP_ERRORPRONE: 'true' | |
| DEBUG: 'true' | |
| run: | | |
| cd "${{ github.workspace }}" | |
| bash src/dev-support/jenkins_precommit_github_yetus.sh | |
| - name: Publish Job Summary | |
| if: always() | |
| run: | | |
| cd "${{ github.workspace }}" | |
| python3 src/dev-support/yetus_console_to_md.py yetus-jdk17-hadoop3-compile-check/output >> $GITHUB_STEP_SUMMARY | |
| - name: Publish Results | |
| if: always() | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: yetus-jdk17-hadoop3-compile-check-output | |
| path: ${{ github.workspace }}/yetus-jdk17-hadoop3-compile-check/output | |
| retention-days: 7 |