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

refactor: migrate disk collection code off of heim, remove heim #1064

Merged
merged 39 commits into from Apr 10, 2023

Conversation

ClementTsang
Copy link
Owner

@ClementTsang ClementTsang commented Mar 14, 2023

Description

A description of the change, what it does, and why it was made. If relevant (such as any change that modifies the UI), please provide screenshots of the changes:

Migrates existing heim-based disk data collection code off of it to either sysinfo or vendored code based on heim/sysinfo/other sources. This also allows us to remove heim completely from bottom.

Issue

If applicable, what issue does this address?

Closes: #597
Closes: #787
Closes: #812
Closes: #1075

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux
  • FreeBSD

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Patch coverage: 8.52% and project coverage change: -0.67 ⚠️

Comparison is base (b2801b1) 26.44% compared to head (e5d241a) 25.77%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1064      +/-   ##
==========================================
- Coverage   26.44%   25.77%   -0.67%     
==========================================
  Files          83       94      +11     
  Lines       14732    15377     +645     
==========================================
+ Hits         3896     3964      +68     
- Misses      10836    11413     +577     
Flag Coverage Δ
macos-12 27.16% <14.74%> (-0.15%) ⬇️
ubuntu-latest 27.12% <17.12%> (+<0.01%) ⬆️
windows-2019 27.11% <19.82%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/app/data_farmer.rs 8.72% <0.00%> (-0.62%) ⬇️
src/app/data_harvester.rs 0.00% <0.00%> (ø)
src/app/data_harvester/disks/io_counters.rs 0.00% <0.00%> (ø)
src/app/data_harvester/disks/unix.rs 0.00% <0.00%> (ø)
src/app/data_harvester/disks/unix/file_systems.rs 0.00% <0.00%> (ø)
...rc/app/data_harvester/disks/unix/linux/counters.rs 0.00% <0.00%> (ø)
...c/app/data_harvester/disks/unix/linux/partition.rs 0.00% <0.00%> (ø)
...rc/app/data_harvester/disks/unix/macos/counters.rs 0.00% <0.00%> (ø)
...data_harvester/disks/unix/macos/io_kit/io_disks.rs 0.00% <0.00%> (ø)
...a_harvester/disks/unix/macos/io_kit/io_iterator.rs 0.00% <0.00%> (ø)
... and 15 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ClementTsang ClementTsang changed the title refactor: migrate disk collection code to sysinfo refactor: migrate disk collection code off of heim Mar 14, 2023
@ClementTsang ClementTsang force-pushed the migrate_disk_collection branch 5 times, most recently from b4877ad to 0cf3106 Compare March 17, 2023 06:52
@ClementTsang ClementTsang force-pushed the migrate_disk_collection branch 3 times, most recently from af948f5 to 17f6862 Compare April 1, 2023 08:36
@ClementTsang ClementTsang changed the title refactor: migrate disk collection code off of heim refactor: migrate disk collection code off of heim, remove heim Apr 3, 2023
@ClementTsang ClementTsang force-pushed the migrate_disk_collection branch 2 times, most recently from dec1224 to 412f35b Compare April 4, 2023 06:54
@ClementTsang
Copy link
Owner Author

Follow-up: might be worth moving some of the disk and I/O merging logic here, as we can optimize what's stored in the first place and possibly minimize system API calls.

@ClementTsang ClementTsang marked this pull request as ready for review April 7, 2023 05:04
@ClementTsang ClementTsang marked this pull request as draft April 7, 2023 05:05
@ClementTsang ClementTsang marked this pull request as ready for review April 10, 2023 09:45
@ClementTsang ClementTsang merged commit 9edde9b into master Apr 10, 2023
32 checks passed
@ClementTsang ClementTsang deleted the migrate_disk_collection branch April 10, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant