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

fix: add Windows support and run tests on Windows #83

Merged
merged 18 commits into from
Jan 22, 2025

Conversation

christian-monch
Copy link
Contributor

@christian-monch christian-monch commented Jan 18, 2025

This PR fixes #21

It uses git clone instead of git worktree to create a worktree in a Windows environment.
Test use PowerShell commands in a Windows environment.

Trusted execution tests are still not working on Windows due to some gpg-issue (see issue #87)

@christian-monch christian-monch changed the title test: run tests on Windows fix: add Windows support and run tests on Windows Jan 18, 2025
This commit skips tests that generate GPG keys on
Windows platforms because GPG2 on Windows does have
problems with non-standard `GNUPGHOME` directories,
i.e. it cannot start a proper `gpg-agent`.

If this problem is fixed, the commit can be reverted.
@christian-monch christian-monch force-pushed the windows-support branch 3 times, most recently from f13149f to 39edb50 Compare January 21, 2025 12:50
This commit changes the way in which worktrees
are generated in Windows. In Windows, every provisioned
worktree will have a git config setting that identifies
it as a worktree and holds the source of the worktree.

Further provision calls, i.e. chained provision calls,
in this worktree will use the original source as
provision source. In addition they will explicitly
enable the datalad remake special remote in the provisioned
datasets.

This is necessary because `git worktree` does not work
together with `git annex` on a crippled file systems, which
means it does not work on most Windows systems.
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.53%. Comparing base (ff8bcdb) to head (21aa909).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
+ Coverage   91.28%   91.53%   +0.25%     
==========================================
  Files          26       27       +1     
  Lines        1078     1110      +32     
  Branches       87      100      +13     
==========================================
+ Hits          984     1016      +32     
  Misses         65       65              
  Partials       29       29              

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

@christian-monch christian-monch marked this pull request as ready for review January 21, 2025 13:57
@christian-monch christian-monch merged commit ba75f5d into datalad:main Jan 22, 2025
6 checks passed
@christian-monch christian-monch deleted the windows-support branch January 22, 2025 09:09
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.

Add Windows support
2 participants