You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by pa...@apache.org on 2026/10/22 07:06:02 UTC
(hbase) branch branch-3 updated: HBASE-30452 Fix shaded testing util JAR test for clean test (addendum) (#8789)
This is an automated email from the ASF dual-hosted git repository.
PDavid pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-3 by this push:
new 046d7d6d14c HBASE-30452 Fix shaded testing util JAR test for clean test (addendum) (#8789)
046d7d6d14c is described below
commit 046d7d6d14c6ca55ab68dfc365e7ce4382a9e37f
Author: Ma Zhengxuan <49...@users.noreply.github.com>
AuthorDate: Thu Oct 22 14:39:31 2026 +0800
HBASE-30452 Fix shaded testing util JAR test for clean test (addendum) (#8789)
Signed-off-by: Duo Zhang <zh...@apache.org>
Signed-off-by: Dávid Paksy <pa...@apache.org>
(cherry picked from commit 2c79c38bea97027fc841e2cfe074e0aef93e6e19)
---
.../java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java b/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java
index c17fb6faade..14aaa7cd845 100644
--- a/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java
+++ b/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java
@@ -19,6 +19,7 @@ package org.apache.hbase.shaded;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assumptions.assumeFalse;
import java.io.File;
import java.util.jar.JarEntry;
@@ -37,6 +38,7 @@ public class TestShadedTestingUtilJarContents {
public void testNoBundledJUnitLibraries() throws Exception {
File path =
new File(HBaseTestingUtil.class.getProtectionDomain().getCodeSource().getLocation().toURI());
+ assumeFalse(path.isDirectory(), "Shaded JAR contents can only be checked after packaging");
try (JarFile jar = new JarFile(path)) {
JarEntry unexpectedEntry = jar.stream().filter(entry -> {
String name = entry.getName();