Skip to content

Fix Specs on Windows#170

Closed
confused-Techie wants to merge 50 commits intomasterfrom
fix-specs-on-windows
Closed

Fix Specs on Windows#170
confused-Techie wants to merge 50 commits intomasterfrom
fix-specs-on-windows

Conversation

@confused-Techie
Copy link
Copy Markdown
Member

@confused-Techie confused-Techie commented Feb 24, 2026

After attempting development locally here again I ran into the longstanding pain point of the specs being abysmal on Windows.
Taking over an hour to run, and nearly all failing.

So going to finally take a serious shot at fixing this in the hopes of making further strides elsewhere in this repository.

Bugs/Items fixed changelog WIP:

  • test-git-repo.git in the spec fixtures seems to be incompatible with Windows. 'Re-Hydrating' it and 're-dehydrating' it on a modern version of git allows it to be usable.
  • During ppm uninstall . PPM attempts to uninstall the entire current directory. If a user is on Windows this will fail silently (due to it being a call into local fs.js => fs-plus => rimraf). So if we instead realize we are deleting the directory we are currently in, and are on Windows, we move process.cwd up one directory, then complete the deletion.

When attempting to delete the package in our current directory on windows, PPM must move out of the directory prior to deletion, otherwise Windows will report the resource is busy, with us in it
When upgrading a package, `getLatestSha` uses `git-utils` to create file handlers on the `git` DB. If we don't remove those Windows can fail to replace the contents of the package directory when upgrading
@confused-Techie
Copy link
Copy Markdown
Member Author

confused-Techie commented Feb 26, 2026

While in CI on windows we are down from 8 to now 6 failing specs, I'm happy to report that on my windows machine I'm now consistently getting fully passing test without any errors

@confused-Techie
Copy link
Copy Markdown
Member Author

Closing as #171 supersedes this one.
#171 contains identical changes but just with a clean commit history, since as you can see this one is a complete mess.

@confused-Techie confused-Techie deleted the fix-specs-on-windows branch March 4, 2026 00:59
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.

1 participant