Repository navigation
HBASE-30491 Check shaded testing util JAR contents in nightly builds - #8802
Merged
charlesconnell merged 2 commits intoNov 23, 2026
Merged
Conversation
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! |
| '-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' |
Contributor
There was a problem hiding this comment.
Could you remove the skipTests argument entirely?
Contributor
Author
There was a problem hiding this comment.
Thanks, Charles. I removed the skipTests argument and reran shadedjars locally.
charlesconnell
approved these changes
Nov 23, 2026
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>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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