Skip to content

chore: use Java 17 for style checks - #2782

Open
wForget wants to merge 2 commits into
apache:masterfrom
wForget:minor
Open

chore: use Java 17 for style checks#2782
wForget wants to merge 2 commits into
apache:masterfrom
wForget:minor

Conversation

@wForget

@wForget wForget commented Aug 18, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

  • Use Java 17 for Spotless, Checkstyle, Apache RAT, and SpotBugs jobs.
  • Ensure these checks also cover the Spark 4.x profiles.
  • Apply the required Spotless formatting to Spark 4 source files.

Why are the changes needed?

The reusable sequential workflow only runs Spark 4.x profiles when using Java 17. Previously, these code quality checks used the default Java 8 configuration, so Spark 4.x modules were not covered.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

@codecov-commenter

codecov-commenter commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.76%. Comparing base (b1ac32f) to head (28ed91d).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2782      +/-   ##
============================================
+ Coverage     51.02%   51.76%   +0.73%     
- Complexity     3347     3966     +619     
============================================
  Files           533      600      +67     
  Lines         26003    33233    +7230     
  Branches       2379     3142     +763     
============================================
+ Hits          13269    17203    +3934     
- Misses        11870    14916    +3046     
- Partials        864     1114     +250     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread spotbugs-exclude.xml
<Bug pattern="NM_METHOD_NAMING_CONVENTION"/>
<Class name="org.apache.spark.ShuffleType"/>
</Match>
<Match>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fix error with ./mvnw -B -fae test-compile spotbugs:check -Pspark4:

[INFO] --- spotbugs:4.7.0.0:check (default-cli) @ rss-client-spark-ui ---
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[ERROR] Medium: The method name org.apache.spark.UniffleDriverPlugin.LogStringContext(StringContext) doesn't start with a lower case letter [org.apache.spark.UniffleDriverPlugin] At UnifflePlugin.scala:[line 36] NM_METHOD_NAMING_CONVENTION
[ERROR] Medium: The method name org.apache.spark.UniffleListener.LogStringContext(StringContext) doesn't start with a lower case letter [org.apache.spark.UniffleListener] At UniffleListener.scala:[line 31] NM_METHOD_NAMING_CONVENTION
[ERROR] Medium: The method name org.apache.spark.ui.ShufflePage.LogStringContext(StringContext) doesn't start with a lower case letter [org.apache.spark.ui.ShufflePage] At ShufflePage.scala:[line 29] NM_METHOD_NAMING_CONVENTION
[ERROR] Medium: The method name org.apache.spark.ui.ShuffleTab.LogStringContext(StringContext) doesn't start with a lower case letter [org.apache.spark.ui.ShuffleTab] At ShuffleTab.scala:[line 23] NM_METHOD_NAMING_CONVENTION
[INFO]

@github-actions

Copy link
Copy Markdown

Test Results

 3 833 files  ±0   3 833 suites  ±0   8h 10m 57s ⏱️ -18s
 1 266 tests ±0   1 255 ✅ ±0  11 💤 ±0  0 ❌ ±0 
19 156 runs  ±0  19 108 ✅ ±0  48 💤 ±0  0 ❌ ±0 

Results for commit 8920194. ± Comparison against base commit b1ac32f.

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