Apache9 commented on code in PR #7651:
URL: https://github.com/apache/hbase/pull/7651#discussion_r2756747905


##########
.github/workflows/yetus-jdk17-hadoop3-compile-check.yml:
##########
@@ -0,0 +1,100 @@
+# 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]
+
+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@v4
+        with:
+          path: src
+          fetch-depth: 0
+
+      - name: Set up JDK 17
+        uses: actions/setup-java@v4
+        with:
+          java-version: '17'
+          distribution: 'temurin'
+
+      - name: Maven cache
+        uses: actions/cache@v4
+        with:
+          path: ~/.m2
+          key: hbase-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            hbase-m2-
+
+      - name: Download Yetus
+        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: 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 }}
+          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: 
"checkstyle,javac,javadoc,pylint,shellcheck,shelldocs,blanks,perlcritic,ruby-lint,rubocop"
+          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 }}"
+          SKIP_ERRORPRONE: 'true'
+          DEBUG: 'true'
+        run: |
+          cd "${{ github.workspace }}"
+          bash src/dev-support/jenkins_precommit_github_yetus.sh
+
+      - name: Publish Results

Review Comment:
   Let's also publish job summary for this one? Like here
   
   
https://github.com/apache/hbase/blob/aa97fbe7a27e2c68355549a01328ae021d0bec82/.github/workflows/yetus-general-check.yml#L96



##########
.github/workflows/yetus-jdk17-hadoop3-unit-check.yml:
##########
@@ -0,0 +1,147 @@
+# 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 Unit Check
+
+"on":
+  pull_request:
+    types: [opened, synchronize, reopened]
+
+permissions:
+  contents: read
+  statuses: write
+
+jobs:
+  jdk17-hadoop3-unit-check:
+    runs-on: ubuntu-latest
+    timeout-minutes: 360
+
+    strategy:
+      fail-fast: false
+      matrix:
+        include:
+          # Wave 0: Small and Medium tests (uses existing runDevTests profile)
+          - name: "small-medium"
+            wave: 0
+            test_profile: "runDevTests"
+          # Waves 1-3: Large tests split by wave assignment files
+          - name: "large-wave-1"
+            wave: 1
+            test_profile: "runLargeTests-wave1"
+          - name: "large-wave-2"
+            wave: 2
+            test_profile: "runLargeTests-wave2"
+          - name: "large-wave-3"
+            wave: 3
+            test_profile: "runLargeTests-wave3"
+
+    name: ${{ matrix.name }}
+
+    env:
+      YETUS_VERSION: '0.15.0'
+
+    steps:
+      - name: Checkout HBase
+        uses: actions/checkout@v4
+        with:
+          path: src
+          fetch-depth: 0
+
+      - name: Set up JDK 17
+        uses: actions/setup-java@v4
+        with:
+          java-version: '17'
+          distribution: 'temurin'
+
+      - name: Maven cache
+        uses: actions/cache@v4
+        with:
+          path: ~/.m2
+          key: hbase-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            hbase-m2-
+
+      - name: Fetch wave files
+        id: wave-files
+        if: matrix.wave > 0
+        working-directory: src
+        env:
+          GH_TOKEN: ${{ github.token }}
+        run: |
+          set -e
+          pip install -q -r dev-support/test-waves/requirements.txt
+
+          # Fetch wave file - returns path to either GHA artifact cache or 
committed fallback
+          WAVE_FILE=$(python dev-support/test-waves/fetch-wave-files.py "${{ 
matrix.wave }}" "${{ github.base_ref }}")
+
+          # Use the directory containing the wave file directly
+          # For committed fallbacks, this is 
dev-support/test-waves/data/<branch>/
+          WAVE_DATA_DIR=$(dirname "${WAVE_FILE}")
+
+          echo "Wave data directory: ${WAVE_DATA_DIR}"
+          ls -la "${WAVE_DATA_DIR}"
+          echo "wave_data_dir=${WAVE_DATA_DIR}" >> "$GITHUB_OUTPUT"
+
+      - name: Download Yetus
+        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: Run Yetus JDK17 Hadoop3 Unit 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 }}
+          PATCHDIR: "${{ github.workspace 
}}/yetus-jdk17-hadoop3-unit-check/output"
+          PLUGINS: "github,htmlout,maven,unit"
+          SET_JAVA_HOME: "/usr/lib/jvm/java-17"
+          SOURCEDIR: "${{ github.workspace }}/src"
+          TESTS_FILTER: 
"checkstyle,javac,javadoc,pylint,shellcheck,shelldocs,blanks,perlcritic,ruby-lint,rubocop"
+          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"
+          EXCLUDE_TESTS_URL: 
"https://ci-hbase.apache.org/job/HBase-Find-Flaky-Tests/job/${{ github.base_ref 
}}/lastSuccessfulBuild/artifact/output/excludes"
+          BUILD_THREAD: "4"
+          SUREFIRE_FIRST_PART_FORK_COUNT: "1.0C"
+          SUREFIRE_SECOND_PART_FORK_COUNT: "0.5C"
+          BRANCH_NAME: "${{ github.base_ref }}"
+          SKIP_ERRORPRONE: 'true'
+          DEBUG: 'true'
+          TEST_PROFILE: ${{ matrix.test_profile }}
+          WAVE_DATA_DIR: ${{ steps.wave-files.outputs.wave_data_dir }}
+        run: |
+          cd "${{ github.workspace }}"
+          bash src/dev-support/jenkins_precommit_github_yetus.sh
+
+      - name: Publish Test Results

Review Comment:
   I think here we should also include a job summary, but do not like other 
checks, as there is only one unit plugin, showing the result of yetus does not 
provide more information.
   
   I think we should filter the junit console output, filter out the failed UTs 
and show them on the job summary page. If no failure, we just show something 
like 'no failure' or 'pass'.



##########
.github/workflows/yetus-jdk17-hadoop3-unit-check.yml:
##########
@@ -0,0 +1,147 @@
+# 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 Unit Check
+
+"on":
+  pull_request:
+    types: [opened, synchronize, reopened]
+
+permissions:
+  contents: read
+  statuses: write
+
+jobs:
+  jdk17-hadoop3-unit-check:
+    runs-on: ubuntu-latest
+    timeout-minutes: 360
+
+    strategy:
+      fail-fast: false
+      matrix:
+        include:
+          # Wave 0: Small and Medium tests (uses existing runDevTests profile)
+          - name: "small-medium"
+            wave: 0
+            test_profile: "runDevTests"
+          # Waves 1-3: Large tests split by wave assignment files
+          - name: "large-wave-1"
+            wave: 1
+            test_profile: "runLargeTests-wave1"
+          - name: "large-wave-2"
+            wave: 2
+            test_profile: "runLargeTests-wave2"
+          - name: "large-wave-3"
+            wave: 3
+            test_profile: "runLargeTests-wave3"
+
+    name: ${{ matrix.name }}
+
+    env:
+      YETUS_VERSION: '0.15.0'
+
+    steps:
+      - name: Checkout HBase
+        uses: actions/checkout@v4
+        with:
+          path: src
+          fetch-depth: 0
+
+      - name: Set up JDK 17
+        uses: actions/setup-java@v4
+        with:
+          java-version: '17'
+          distribution: 'temurin'
+
+      - name: Maven cache
+        uses: actions/cache@v4
+        with:
+          path: ~/.m2
+          key: hbase-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            hbase-m2-
+
+      - name: Fetch wave files
+        id: wave-files
+        if: matrix.wave > 0
+        working-directory: src
+        env:
+          GH_TOKEN: ${{ github.token }}
+        run: |
+          set -e
+          pip install -q -r dev-support/test-waves/requirements.txt
+
+          # Fetch wave file - returns path to either GHA artifact cache or 
committed fallback
+          WAVE_FILE=$(python dev-support/test-waves/fetch-wave-files.py "${{ 
matrix.wave }}" "${{ github.base_ref }}")

Review Comment:
   I think here we could upload the wave files to nightly, which is easier for 
committers to fix the files manually, and downloading from nightlies does not 
need any credentials.
   
   And for this job, I prefer we just run it on jenkins, which is easier for us 
to upload things to nightles, and it does not cost too many resources.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to