Repository navigation
Migrate WMI and perfmon drivers to common implementations - #3270
Conversation
|
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 (97)
✅ Files skipped from review due to trivial changes (7)
🚧 Files skipped from review as they are similar to previous changes (75)
📜 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 comments (15)
📝 WalkthroughWalkthroughRefactors FFM and JNA Windows drivers to delegate WMI and PerfMon queries to shared common helpers via executor interfaces, updates imports to use shared WmiUtil/WmiResult, adapts handlers to implement executor interfaces, and updates tests/benchmarks to the unified APIs. ChangesWindows WMI/PerfMon delegation to common executors
Estimated code review effort Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
|
bc6e45c to
a53b9a3
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3270 +/- ##
============================================
+ Coverage 73.58% 74.33% +0.74%
Complexity 73 73
============================================
Files 406 406
Lines 16208 16047 -161
Branches 2559 2554 -5
============================================
+ Hits 11927 11928 +1
+ Misses 2795 2627 -168
- Partials 1486 1492 +6
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:
|
…3258, #3261) Rewrite all JNA/FFM WMI and perfmon driver subclasses to delegate to the common base class methods. Make WmiQueryHandler and WmiQueryHandlerFFM implement WmiQueryExecutor so callers can pass them directly. Callers now use the common WmiResult interface and common WmiUtil for result extraction, exercising the shared code paths through existing tests. Net reduction: ~973 lines of duplicated code.
a53b9a3 to
06ad8e4
Compare
Completes #3257, #3258, #3261
Rewrites all JNA/FFM WMI and perfmon driver subclasses to delegate to the common base class methods introduced in #3266, #3267, and #3268. This ensures the common code paths are exercised by existing tests.
Key changes:
WmiQueryHandler(JNA) andWmiQueryHandlerFFM(FFM) now implementWmiQueryExecutorWmiResultinterface and commonWmiUtilfor result extractionStats: 95 files changed, -973 net lines
The
UserComInitandWmiNoComInitQueryHandlerdemo classes continue to work unchanged sinceWmiQueryHandleris preserved as a concrete class that can be extended.Summary by CodeRabbit
Refactor