ndimiduk commented on code in PR #168: URL: https://github.com/apache/hbase-thirdparty/pull/168#discussion_r4707682063
########## .github/workflows/yetus-precommit-check.yml: ########## @@ -0,0 +1,132 @@ +# 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 Precommit Check + +"on": + pull_request: + types: [opened, synchronize, reopened, labeled, unlabeled] Review Comment: nit: I think that we only need `labeled` and `unlabeled` if we're going to support `apache/hbase` support for the `test-yetus-prerelease` label. ########## .github/workflows/noop-htrace-dropin-check.yml: ########## @@ -0,0 +1,282 @@ +# 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: Noop HTrace Drop-in Check + +# Builds the hbase-noop-htrace drop-in replacement, swaps it in for the htrace +# jars shipped in the released HBase and Hadoop binary distributions, and runs a +# single process smoke test against the resulting installs. +# +# Only the Hadoop 2 line still carries HTrace, so that is the only combination +# with something to swap: +# - the Hadoop 2 flavor of the HBase binary distribution bundles htrace-core4 +# in lib/client-facing-thirdparty (the shaded clients shade in Hadoop classes +# which load org.apache.htrace.core); +# - Hadoop 2.x ships htrace-core4 in share/hadoop/*/lib. +# The Hadoop 3 flavor of the binary distribution is built against Hadoop 3.4.x +# and carries no htrace at all, and Hadoop 3.3.2+ dropped it as well, so there +# is nothing to replace there. The drop-in replaces the remaining jars to get +# rid of their CVE-flagged transitive dependencies while keeping the API +# surface. Keep the matrix in sync with the HBase/Hadoop combinations we still +# list as recommended. +"on": + pull_request: + types: [opened, synchronize, reopened] + paths: + - 'hbase-noop-htrace/**' + - 'dev-support/**' + - 'pom.xml' + - '.github/workflows/noop-htrace-dropin-check.yml' + workflow_dispatch: + +permissions: + contents: read + +jobs: + noop-htrace-dropin-check: + runs-on: ubuntu-latest + timeout-minutes: 60 + + strategy: + fail-fast: false + matrix: + include: + # Default (Hadoop 2 flavor) binary distribution on top of Hadoop 2.x: + # htrace jars are swapped in both the HBase and the Hadoop install. + - name: 'hadoop2-flavor' + hbase-version: '2.5.16' + hbase-artifact-suffix: '' + hadoop-version: '2.10.2' + + name: hbase-${{ matrix.hbase-version }}${{ matrix.hbase-artifact-suffix }}.hadoop-${{ matrix.hadoop-version }} + + env: + HBASE_VERSION: ${{ matrix.hbase-version }} + HBASE_ARTIFACT_SUFFIX: ${{ matrix.hbase-artifact-suffix }} + HADOOP_VERSION: ${{ matrix.hadoop-version }} + # Where the smoke test scripts are fetched from. Moved from + # dev-support/hbase_nightly_pseudo-distributed-test.sh to + # dev-support/integration-test/pseudo-distributed-test.sh by HBASE-29930. + HBASE_SCRIPTS_REF: 'master' Review Comment: nit: pinning to `master` seems unreliable to me. Can we instead grab the correct sha from the hbase artifact information or similar? ########## .github/workflows/yetus-precommit-check.yml: ########## @@ -0,0 +1,132 @@ +# 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 Precommit Check + +"on": + pull_request: + types: [opened, synchronize, reopened, labeled, unlabeled] + +permissions: {} + +jobs: + precommit-check: + runs-on: ubuntu-latest + timeout-minutes: 120 + permissions: + contents: read + statuses: write + + env: + YETUS_VERSION: '0.15.0' + + steps: + - name: Checkout hbase-thirdparty + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + path: src + fetch-depth: 0 + persist-credentials: false + + - name: Set up JDK 17 + uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 + with: + java-version: '17' + distribution: 'temurin' + + - name: Maven cache + uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0 + with: + path: ~/.m2 + key: hbase-thirdparty-m2-${{ hashFiles('**/pom.xml') }} Review Comment: nit: I think this is a Jenkins artifact and not used in GHA runner. Outside Jenkins, Yetus puts its Maven repo under `$HOME/yetus-m2`, you see this in the run log as, for example, `-Dmaven.repo.local=/home/runner/yetus-m2/hbase-thirdparty-master-patch-4`. This key is also used by `noop-htrace-dropin-check.yml` and I suspect the two actions race to save it while only one can. -- 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]
