Skip to content

HBASE-30572 [hbase-thirdparty] Migrate precommit checks from Jenkins … - #168

Merged
Apache9 merged 1 commit into
masterfrom
HBASE-30572
Nov 26, 2026
Merged

Apache9 merged 1 commit into
masterfrom
HBASE-30572

Conversation

@Apache9

@Apache9 Apache9 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

…to GitHub Actions

Add GitHub Actions workflows mirroring the two precommit stages of the Jenkins Jenkinsfile, keeping the Jenkins setup intact while both run in parallel:

  • yetus-precommit-check.yml: Yetus test-patch in the dev-support/jenkins Docker image with PLUGINS=all,-jira (the jira plugin treats the GH:NNN issue key as a JIRA key and aborts the run), plus a zizmor job for workflow changes. Publishes a job summary via yetus_console_to_md.py and uploads the output as an artifact.
  • noop-htrace-dropin-check.yml: builds hbase-noop-htrace, swaps it in for the htrace jars of the released HBase 2.5.16 binary distribution (Hadoop 2 flavor) and of Hadoop 2.10.2, asserts no htrace*.jar remains and the noop jar is in place, and runs the pseudo-distributed smoke test from apache/hbase. Publishes a job summary with the drop-in swap details (which htrace jars were replaced where), the smoke test result, and log tails on failure, and uploads the full logs as an artifact.

HBase 2.5+ code no longer uses HTrace, but the Hadoop 2 flavor of its binary distribution still bundles htrace-core4 in lib/client-facing-thirdparty because the shaded clients shade in Hadoop classes which load org.apache.htrace.core, and Hadoop 2.x ships htrace-core4 itself. The drop-in replaces those jars to drop their CVE-flagged transitive dependencies while keeping the API surface. The Hadoop 3 flavor is built against Hadoop 3.4.x and carries no htrace at all, and Hadoop 3.3.2+ dropped it as well, so no Hadoop 3 combination is tested.

The yetus driver script now works both on Jenkins and GitHub Actions, and cache-apache-project-artifact.sh and yetus_console_to_md.py are vendored from apache/hbase so the workflows do not download scripts at CI time.

@Apache9
Apache9 requested a review from NihalJain November 26, 2026 09:46
@Apache9 Apache9 self-assigned this Nov 26, 2026
@Apache9

Apache9 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

This is the test result

#167

@Apache9

Apache9 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

I've also disabled https://ci-hbase.apache.org/job/HBase-Thirdparty-PreCommit/ since it is already broken...

@Apache9
Apache9 requested a review from ndimiduk November 26, 2026 09:52
…to GitHub Actions

Add GitHub Actions workflows mirroring the two precommit stages of the Jenkins
Jenkinsfile, keeping the Jenkins setup intact while both run in parallel:

- yetus-precommit-check.yml: Yetus test-patch in the dev-support/jenkins
  Docker image with PLUGINS=all,-jira (the jira plugin treats the GH:NNN
  issue key as a JIRA key and aborts the run), plus a zizmor job for
  workflow changes. Publishes a job summary via yetus_console_to_md.py and
  uploads the output as an artifact.
- noop-htrace-dropin-check.yml: builds hbase-noop-htrace, swaps it in for the
  htrace jars of the released HBase 2.5.16 binary distribution (Hadoop 2
  flavor) and of Hadoop 2.10.2, asserts no htrace*.jar remains and the noop
  jar is in place, and runs the pseudo-distributed smoke test from
  apache/hbase. Publishes a job summary with the drop-in swap details
  (which htrace jars were replaced where), the smoke test result, and log
  tails on failure, and uploads the full logs as an artifact.

HBase 2.5+ code no longer uses HTrace, but the Hadoop 2 flavor of its binary
distribution still bundles htrace-core4 in lib/client-facing-thirdparty
because the shaded clients shade in Hadoop classes which load
org.apache.htrace.core, and Hadoop 2.x ships htrace-core4 itself. The
drop-in replaces those jars to drop their CVE-flagged transitive
dependencies while keeping the API surface. The Hadoop 3 flavor is built
against Hadoop 3.4.x and carries no htrace at all, and Hadoop 3.3.2+ dropped
it as well, so no Hadoop 3 combination is tested.

The yetus driver script now works both on Jenkins and GitHub Actions, and
cache-apache-project-artifact.sh and yetus_console_to_md.py are vendored
from apache/hbase so the workflows do not download scripts at CI time.
@Apache9
Apache9 merged commit 3007a6d into master Nov 26, 2026
4 checks passed
@Apache9
Apache9 deleted the HBASE-30572 branch November 26, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants