Skip to content

Conversation

@twiggler
Copy link
Contributor

  • Fix spliting home when there is no home
  • Turn cache reader and writer into an iterator

@twiggler twiggler requested a review from Miauwkeru December 17, 2025 08:45
@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.27%. Comparing base (580341b) to head (ca8fd10).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1461      +/-   ##
==========================================
- Coverage   80.74%   80.27%   -0.48%     
==========================================
  Files         390      392       +2     
  Lines       34217    34434     +217     
==========================================
+ Hits        27629    27641      +12     
- Misses       6588     6793     +205     
Flag Coverage Δ
unittests 80.27% <100.00%> (-0.48%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 17, 2025

Merging this PR will not alter performance

Summary

✅ 9 untouched benchmarks


Comparing user-fix (ca8fd10) with main (3c0d8ef)

Open in CodSpeed

@twiggler twiggler marked this pull request as ready for review December 19, 2025 12:53
@twiggler twiggler changed the title Handle missing windows home directory Handle missing windows home directory Dec 19, 2025
Copy link
Contributor

@Miauwkeru Miauwkeru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like the cache change should be in its own PR for the eventual git history to make more sense. As I wouldn't expect that a commit called "Handle missing windows home directory" would change the caching mechanism that hits all the plugins.

@@ -1,4 +1,5 @@
{
"version": "0.2.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this needed to be added

assert users[1].home == windows_path("C:\\Users\\John")


def test_windows_user_registry_parsing(target_win_users: Target) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test doesn't fail if you use the previous code.

I was able to recreate the erroneous behaviour that it displays on a vm. Here i created a fake SID but it did not contain a ProfileImagePath RegistryValue. Causeing it to error and it would try to call target.resolve on home which is a None object. Shouldn't that be the behaviour this tests? / shouldn't we have a test for that specifically?

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.

3 participants