Repository navigation
Extract testable parse methods from FreeBSD and Solaris disk drivers - #3500
Conversation
Extract inline command-output parsing into package-private static methods in the disk driver classes, enabling fixture-based tests that run on every CI platform. Extractions: - GeomDiskList: parseGeomDiskList (geom disk list → model/serial/size) - Mount: parseMountOutput (mount → partition-to-mountpoint map) - Iostat: parsePartitionToMountMap (iostat -er/-ern correlation), parseDeviceStrings (iostat -Er → model/vendor/product/serial/size) - Lshal: parseLshal (lshal → disk-to-major map) - Prtvtoc: parsePrtvtoc (prtvtoc → partition list with tag/flag mapping)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📜 Recent review details⏰ Context from checks skipped due to timeout. (14)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2026-04-12T19:22:09.716ZApplied to files:
📚 Learning: 2026-07-06T19:25:59.225ZApplied to files:
🔇 Additional comments (11)
📝 WalkthroughWalkthroughThe change separates native command execution from FreeBSD and Solaris disk-output parsing by introducing package-private helpers, then adds JUnit coverage for typical, empty, incomplete, and filtered parser inputs. ChangesUnix disk parser testability
Estimated code review effort: 3 (Moderate) | ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 #3500 +/- ##
============================================
+ Coverage 76.24% 76.39% +0.14%
Complexity 76 76
============================================
Files 591 591
Lines 21693 21695 +2
Branches 3611 3611
============================================
+ Hits 16540 16573 +33
+ Misses 3202 3175 -27
+ Partials 1951 1947 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Test plan
./mvnw clean install— 1239 tests, 0 failures)@EnabledOnOsgating on parse tests — they run on every platformSummary by CodeRabbit
Bug Fixes
Tests