Skip to content

Skip the benchmark module in SonarCloud analysis - #3486

Merged
dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:sonar-skip-benchmark
Jul 18, 2026
Merged

dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:sonar-skip-benchmark

Conversation

@dbwiddis

@dbwiddis dbwiddis commented Jul 18, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #3485. That PR declared sonar.java.test.binaries per module, which fixed the "Missing sonar.java.test.binaries" warning for the production modules (oshi-common/oshi-core/oshi-core-ffm) — but the post-merge master SonarCloud run showed the warning's real source was oshi-benchmark: it has comparison-test sources (NativeComparisonTest, etc.) but maven.test.skip=true by default (they only compile under -Pnative-comparison), so the default Sonar build has no test binaries for it, and my explicit path turned "Missing" into Invalid value for 'sonar.java.test.binaries' … oshi-benchmark/target/test-classes.

oshi-benchmark is a non-published benchmark/comparison module and contributes zero of the current findings, so exclude it from SonarCloud with sonar.skip=true. Production modules remain analyzed (verified sonar.skip resolves true only for oshi-benchmark).

Analysis itself is otherwise clean: 0 bugs, 0 vulnerabilities, 0 reliability, 0 security (validated on the next master run). No CHANGELOG — build config only.

Summary by CodeRabbit

  • Chores
    • Updated benchmark project configuration to exclude it from SonarCloud analysis.
    • No user-facing functionality changes.

oshi-benchmark is not published and its comparison tests only compile under the
native-comparison profile, so the default Sonar build finds no test binaries for
it -- the source of the residual "sonar.java.test.binaries" warning after
#3485. It contributes no findings; exclude it from analysis with sonar.skip.
@coderabbitai

coderabbitai Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3c92b5d3-303e-433d-a29e-00341637420a

📥 Commits

Reviewing files that changed from the base of the PR and between 0e7ffaa and 4b7bed2.

📒 Files selected for processing (1)
  • oshi-benchmark/pom.xml
📜 Recent review details
⏰ Context from checks skipped due to timeout. (15)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Test JDK 26, windows-latest
  • GitHub Check: Test JDK 25, windows-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 21, windows-latest
  • GitHub Check: Test JDK 26, macos-latest
  • GitHub Check: Test JDK 25, ubuntu-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 25, macos-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 21, ubuntu-latest
  • GitHub Check: Test JDK 21, macos-latest
  • GitHub Check: Test JDK 26, ubuntu-latest
  • GitHub Check: Test JDK 25, OpenIndiana (+ JNA==FFM)
  • GitHub Check: Test JDK 25, FreeBSD (+ JNA==FFM)
  • GitHub Check: Test JDK 25, OpenBSD (+ JNA==FFM)
  • GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
  • GitHub Check: Analyze (java)
🔇 Additional comments (1)
oshi-benchmark/pom.xml (1)

25-28: LGTM!


📝 Walkthrough

Walkthrough

The benchmark module’s Maven configuration now sets sonar.skip to true and documents why SonarCloud should exclude the module.

Changes

Benchmark SonarCloud exclusion

Layer / File(s) Summary
Configure SonarCloud exclusion
oshi-benchmark/pom.xml
Adds the sonar.skip property and an explanatory XML comment to the Maven properties block.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

I’m a rabbit with paws so neat,
Skipping scans from this benchmark suite.
A tiny property, clear and bright,
Keeps SonarCloud out of sight.
Hop, hop—configuration right!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: excluding the benchmark module from SonarCloud analysis.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.91%. Comparing base (0e7ffaa) to head (4b7bed2).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3486      +/-   ##
============================================
- Coverage     75.07%   70.91%   -4.17%     
  Complexity       76       76              
============================================
  Files           591      591              
  Lines         21583    21583              
  Branches       3614     3614              
============================================
- Hits          16203    15305     -898     
- Misses         3410     4405     +995     
+ Partials       1970     1873      -97     
Flag Coverage Δ
freebsd ?
linux 32.28% <ø> (+<0.01%) ⬆️
macos 32.82% <ø> (-0.05%) ⬇️
openbsd 27.03% <ø> (+<0.01%) ⬆️
solaris 29.57% <ø> (-0.02%) ⬇️
windows 40.84% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@dbwiddis
dbwiddis merged commit f558dcf into oshi:master Jul 18, 2026
18 of 19 checks passed
@dbwiddis
dbwiddis deleted the sonar-skip-benchmark branch July 18, 2026 21:27
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.

1 participant