Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(internal/collector): MULTI-1736 implement sysinfo collection on Windows #10

Draft
wants to merge 11 commits into
base: collector-sysinfo-wip
Choose a base branch
from

Conversation

Sploder12
Copy link
Collaborator

This PR implements system hardware information collection on Windows. The information collected includes Product, CPU, GPU, Memory, Block, and Screen as described by the spec with some exceptions. The exceptions are:

  • Screens do not include physical size, refresh rate, color count, or HDR information.
  • GPU driver does not include version
  • CPU does not include architecture, or threads per core. (although, threads per core can be derived)

MULTI-1741

@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.80%. Comparing base (5c35ce6) to head (2ac9406).

Additional details and impacted files
@@                    Coverage Diff                    @@
##           collector-sysinfo-wip      #10      +/-   ##
=========================================================
+ Coverage                  69.08%   69.80%   +0.72%     
=========================================================
  Files                         15       14       -1     
  Lines                        579      573       -6     
=========================================================
  Hits                         400      400              
+ Misses                       155      149       -6     
  Partials                      24       24              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Sploder12 Sploder12 changed the title feat(internal/collector): MULTI-1736 implement sysinfo collection on Linux feat(internal/collector): MULTI-1736 implement sysinfo collection on Windows Jan 28, 2025
@Sploder12 Sploder12 force-pushed the collector-hardware-windows branch from c7e50ad to f029f6c Compare January 29, 2025 19:08
also modifies product collection a bit
Win32_PhysicalMemory would give us more information, but we currently only care about total physical memory.
A lot of info is missing. The physical size could be retrieved, but that command may be deprecated and associating that size to a particular monitor may not be stable.
@Sploder12 Sploder12 force-pushed the collector-hardware-windows branch from 6746b34 to 2ac9406 Compare January 29, 2025 21:37
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.

2 participants