Repository navigation
Move Linux OS classes to oshi-common - #3140
Conversation
Move 8 Linux OS classes from oshi-core to oshi-common: - LinuxOperatingSystem, LinuxOSProcess, LinuxFileSystem (abstract bases) - LinuxNetworkParams (made public for cross-package subclass access) - LinuxOSThread, LinuxOSFileStore, LinuxInternetProtocolStats, LinuxInstalledApps (native-free, moved directly) Remove getSessions() from LinuxOperatingSystem since it used WhoJNA; both LinuxOperatingSystemJNA and LinuxOperatingSystemFFM already override it with their respective Who implementations. Add getSessions() override to LinuxOperatingSystemJNA. Update JNA and FFM subclasses with imports from the new oshi.software.common.os.linux package.
|
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 (19)
📜 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). (9)
🧰 Additional context used🧠 Learnings (9)📓 Common learnings📚 Learning: 2026-03-29T20:01:06.452ZApplied to files:
📚 Learning: 2026-04-06T04:45:51.516ZApplied to files:
📚 Learning: 2026-04-05T05:40:45.797ZApplied to files:
📚 Learning: 2026-04-03T02:07:47.621ZApplied to files:
📚 Learning: 2026-04-06T04:45:47.644ZApplied to files:
📚 Learning: 2026-04-10T22:44:32.055ZApplied to files:
📚 Learning: 2026-04-05T05:39:21.126ZApplied to files:
📚 Learning: 2026-04-08T17:30:11.929ZApplied to files:
🔇 Additional comments (20)
📝 WalkthroughWalkthroughLinux OS classes are migrated from Changes
Possibly Related PRs
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 #3140 +/- ##
============================================
+ Coverage 61.91% 62.25% +0.34%
Complexity 12 12
============================================
Files 39 39
Lines 2329 2329
Branches 407 407
============================================
+ Hits 1442 1450 +8
+ Misses 777 769 -8
Partials 110 110 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Move 8 Linux OS classes from
oshi-core(oshi.software.os.linux) tooshi-common(oshi.software.common.os.linux).Abstract base classes
LinuxOperatingSystemLinuxOSProcessLinuxFileSystemLinuxNetworkParams(madepublicfor cross-package subclass access)Native-free classes (moved directly)
LinuxOSThreadLinuxOSFileStoreLinuxInternetProtocolStatsLinuxInstalledAppsNotable changes
getSessions()fromLinuxOperatingSystemsince it depended onWhoJNA. BothLinuxOperatingSystemJNAandLinuxOperatingSystemFFMalready override it with their respectiveWhoimplementations; theAbstractOperatingSystemdefault provides a safe fallback.getSessions()override toLinuxOperatingSystemJNA(previously inherited from the base).oshi.software.common.os.linuxpackage.oshi.software.common.os.linuxfromoshi-commonmodule-info.Summary by CodeRabbit