Repository navigation
Expand JaCoCo coverage; move util tests to oshi-common - #3155
Conversation
…ommon Move 13 utility test classes and their resources from oshi-core to oshi-common so JaCoCo correctly attributes coverage to the module where the source lives. Relax JaCoCo excludes to include platform/linux/mac/windows classes (unix remains excluded). Update CI workflows to upload coverage on JDK 25 with per-OS flags for codecov merging. Fix macOS upload condition (was macos-13, never matched). Remove stale continue-on-error from Windows CI.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (23)
💤 Files with no reviewable changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (15)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2026-03-29T20:01:06.452ZApplied to files:
📚 Learning: 2026-04-06T04:45:51.516ZApplied to files:
🔇 Additional comments (14)
📝 WalkthroughWalkthroughThe pull request updates CI/CD workflows to use JDK 25 instead of 11 for coverage reporting with platform-specific flags, expands test module visibility for JUnit platform access, adds SLF4J logging configuration, removes platform-specific JaCoCo coverage excludes, and updates copyright years to 2026 across test files. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #3155 +/- ##
============================================
- Coverage 61.91% 54.59% -7.33%
- Complexity 12 663 +651
============================================
Files 39 211 +172
Lines 2329 13476 +11147
Branches 407 2193 +1786
============================================
+ Hits 1442 7357 +5915
- Misses 777 4987 +4210
- Partials 110 1132 +1022
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Coverage Infrastructure
**/platform/**,**/linux/**,**/mac/**,**/windows/**so platform-specific classes are included in coverage reports (unix remains excluded)flagsfor codecov mergingmacos-13never matched the matrix; nowmacos-15)continue-on-error: ${{ matrix.experimental }}from Windows CIMove Util Tests to oshi-common
Move 13 utility test classes and their resources from oshi-core to oshi-common so JaCoCo correctly attributes coverage to the module where the source lives:
sample-proc-net-*.txttest resourcessimplelogger.propertiesto oshi-common test resourcesoshi.utilandoshi.util.tuplestomodule-info.testopensCoverage before/after (oshi-common, macOS)
After merging this PR, will systematically address coverage gaps based on codecov reports.
Summary by CodeRabbit
Chores
Tests