Skip to content

HBASE-30491 Check shaded testing util JAR contents in nightly builds - #8802

Merged
charlesconnell merged 2 commits into
apache:masterfrom
Sigma-Ma:HBASE-30491-nightly-shaded-jar-check
Nov 23, 2026
Merged

charlesconnell merged 2 commits into
apache:masterfrom
Sigma-Ma:HBASE-30491-nightly-shaded-jar-check

Conversation

@Sigma-Ma

@Sigma-Ma Sigma-Ma commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Run TestShadedTestingUtilJarContents in shadedjars after packaging, alongside the existing invariant checks.

Also trigger shadedjars when the personality or JAR validation scripts change.

Why are the changes needed?

After #8789, clean test skips the JAR contents check when HBaseTestingUtil is loaded from a class directory. Nightly builds still need to check the packaged testing util for bundled JUnit libraries.

How was this patch tested?

Tested locally with JDK 17.0.20.1 and Maven 3.6.3.

mvn -B -ntp -pl hbase-shaded/hbase-shaded-testing-util-tester -am -Dtest=TestShadedTestingUtilJarContents,TestShadedHBaseTestingUtility -Dsurefire.firstPartGroups=org.apache.hadoop.hbase.testclassification.SmallTests,org.apache.hadoop.hbase.testclassification.MediumTests -Dsurefire.skipSecondPart=true -Dsurefire.rerunFailingTestsCount=0 clean test

mvn -ntp clean verify -fae --batch-mode -pl hbase-shaded/hbase-shaded-check-invariants,hbase-shaded/hbase-shaded-testing-util-tester -am -DskipTests=false -Dtest=TestShadedTestingUtilJarContents -DHBasePatchProcess -Prelease -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true

mvn -B -ntp -pl hbase-shaded/hbase-shaded-testing-util-tester -am -DskipTests=false -Dtest=TestShadedTestingUtilJarContents -Dsurefire.rerunFailingTestsCount=0 verify

mvn -N -B -ntp spotless:check

bash -n dev-support/hbase-personality.sh

@Sigma-Ma

Copy link
Copy Markdown
Contributor Author

Hi @charlesconnell, could you please review this follow-up to HBASE-30452? It adds the packaged JAR check to nightly builds, and CI is green. Thanks!

Comment thread dev-support/hbase-personality.sh Outdated
'-pl' 'hbase-shaded/hbase-shaded-check-invariants' '-am'
'-DskipTests' '-DHBasePatchProcess' '-Prelease'
'-pl' 'hbase-shaded/hbase-shaded-check-invariants,hbase-shaded/hbase-shaded-testing-util-tester' '-am'
'-DskipTests=false' '-Dtest=TestShadedTestingUtilJarContents' '-DHBasePatchProcess' '-Prelease'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove the skipTests argument entirely?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Charles. I removed the skipTests argument and reran shadedjars locally.

@charlesconnell
charlesconnell merged commit 57643ce into apache:master Nov 23, 2026
8 checks passed
charlesconnell pushed a commit that referenced this pull request Nov 23, 2026
…8802)

Co-authored by: Ma Zhengxuan <mazhengxuan@didiglobal.com>
Signed-off by: Charles Connell <cconnell@apache.org>
charlesconnell pushed a commit that referenced this pull request Nov 23, 2026
…8802)

Co-authored by: Ma Zhengxuan <mazhengxuan@didiglobal.com>
Signed-off by: Charles Connell <cconnell@apache.org>
charlesconnell pushed a commit that referenced this pull request Nov 23, 2026
…8802)

Co-authored by: Ma Zhengxuan <mazhengxuan@didiglobal.com>
Signed-off by: Charles Connell <cconnell@apache.org>
charlesconnell pushed a commit that referenced this pull request Nov 23, 2026
…8802)

Co-authored by: Ma Zhengxuan <mazhengxuan@didiglobal.com>
Signed-off by: Charles Connell <cconnell@apache.org>
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