Skip to content

Conversation

@PDavid
Copy link
Contributor

@PDavid PDavid commented Dec 3, 2025

Ignore JSON files in RAT check

When I run mvn clean install -DskipTests -Prelease -Drat.skip=false && mvn install -DskipTests site assembly:single -Prelease -Drat.skip=false RAT check complained that JSON files (under hbase-website) does not have ASF license which is true. But JSON files cannot have comments in them so we cannot add the ASF licence there.
So we exclude JSON files from RAT check.

Exclude node_modules from spotless check

The spotless check failed because of formatting violations in files under hbase-website/node_modules. Since this contains node packages (libraries) we don't want to check them for formatting.

RAT check complained that JSON files (under hbase-website) does not have ASF license which is true. But JSON files cannot have comments in them so we cannot add the ASF licence there.

So we exclude JSON files from RAT check.
@PDavid PDavid self-assigned this Dec 3, 2025
@PDavid
Copy link
Contributor Author

PDavid commented Dec 3, 2025

After this change, executing mvn clean install -DskipTests -Prelease -Drat.skip=false && mvn install -DskipTests site assembly:single -Prelease -Drat.skip=false is successful.

@yuriipalam
Copy link
Contributor

Thanks for that!

@Apache-HBase

This comment has been minimized.

Copy link
Contributor

@stoty stoty left a comment

Choose a reason for hiding this comment

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

+1 LGTM

The spotless check failed because of formatting violations in files under hbase-website/node_modules. Since this contains node packages (libraries) we don't want to check them for formatting.
<exclude>**/target/**</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>**/.idea/**</exclude>
<exclude>**/node_modules/**</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

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

What are under the node_modules directory?

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, so this is not in our code base, we just pull this down when building web site?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have the new hbase-website submodule for the new website. Since this project uses Node.js as a build tool a node_modules directory is created and the dependencies (Node.js / npm packages) of the new website are downloaded and placed.

The spotless check failed because of formatting violations in files under hbase-website/node_modules. Since this contains libraries, I guess we don't want to check them for formatting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can also have the exclude more specifically for hbase-website/node_modules, I just thought a node_modules directory - anywhere it is - should not be checked by spotless.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, so this is not in our code base, we just pull this down when building web site?

Exactly.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+1 💚 mvninstall 3m 46s master passed
+1 💚 compile 8m 49s master passed
-1 ❌ spotless 0m 13s branch has 61 errors when running spotless:check, run spotless:apply to fix.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 12s the patch passed
+1 💚 compile 8m 39s the patch passed
+1 💚 javac 8m 39s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 xmllint 0m 0s No new issues.
+1 💚 hadoopcheck 13m 55s Patch does not cause any errors with Hadoop 3.3.6 3.4.1.
+1 💚 spotless 0m 55s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 17s The patch does not generate ASF License warnings.
49m 27s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7507/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #7507
Optional Tests dupname asflicense javac codespell detsecrets xmllint hadoopcheck spotless compile
uname Linux e35b694cb288 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1e57af7
Default Java Eclipse Adoptium-17.0.11+9
spotless https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7507/2/artifact/yetus-general-check/output/branch-spotless.txt
Max. process+thread count 202 (vs. ulimit of 30000)
modules C: . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7507/2/console
versions git=2.34.1 maven=3.9.8 xmllint=20913
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@PDavid PDavid marked this pull request as ready for review December 4, 2025 09:17
@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 28s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚 mvninstall 3m 34s master passed
+1 💚 compile 2m 16s master passed
+1 💚 javadoc 2m 2s master passed
+1 💚 shadedjars 6m 2s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 8s the patch passed
+1 💚 compile 2m 16s the patch passed
+1 💚 javac 2m 16s the patch passed
+1 💚 javadoc 2m 1s the patch passed
+1 💚 shadedjars 6m 0s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌ unit 368m 43s /patch-unit-root.txt root in the patch failed.
462m 43s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7507/2/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #7507
Optional Tests javac javadoc unit shadedjars compile
uname Linux 4a0fc412ad7b 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1e57af7
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7507/2/testReport/
Max. process+thread count 5609 (vs. ulimit of 30000)
modules C: . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7507/2/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@PDavid
Copy link
Contributor Author

PDavid commented Dec 4, 2025

org.apache.hadoop.hbase.replication.TestVerifyReplicationRpcConnectionUri test failed in the PR build but I think it is unrelated.

@PDavid PDavid merged commit 7e96a90 into apache:master Dec 4, 2025
1 check failed
@PDavid PDavid deleted the HBASE-29689-rat-check-json-files branch December 4, 2025 16:20
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.

7 participants