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

Enable full feature-set for datalad-annex:: on windows #77

Merged
merged 1 commit into from
Jun 13, 2022
Merged

Conversation

mih
Copy link
Member

@mih mih commented Jun 10, 2022

#26 is still valid with today's git-annex. This PR implements a rather draconian workaround: Instead of dropping the repoannex keys, it wipes out the entire object tree of the local repoannex utility repo.

This is possible, because this utility repo is constructed on the fly from the URL specification, and only contains the two keys that need to be dropped. However, given the bluntness of the approach, it is limited to the platform on which the original issue is happening: windows.

@mih mih force-pushed the bf-26 branch 2 times, most recently from ded214e to ad9db32 Compare June 10, 2022 10:59
@mih mih changed the title TMP Check for the state of things Enable full feature-set for datalad-annex:: on windows Jun 10, 2022
@codecov
Copy link

codecov bot commented Jun 10, 2022

Codecov Report

Merging #77 (ad9db32) into main (04c46bf) will decrease coverage by 0.19%.
The diff coverage is 14.28%.

❗ Current head ad9db32 differs from pull request most recent head d0fa3f4. Consider uploading reports for the commit d0fa3f4 to get more accurate results

@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
- Coverage   80.27%   80.07%   -0.20%     
==========================================
  Files          27       27              
  Lines        2104     2108       +4     
==========================================
- Hits         1689     1688       -1     
- Misses        415      420       +5     
Impacted Files Coverage Δ
datalad_next/gitremote/tests/test_datalad_annex.py 98.70% <ø> (-0.01%) ⬇️
datalad_next/gitremote/datalad_annex.py 19.83% <14.28%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04c46bf...d0fa3f4. Read the comment docs.

This is a rather draconian workaround: Instead of dropping the repoannex
keys, it wipes out the entire object tree of the local repoannex utility
repo.

This addresses
https://git-annex.branchable.com/bugs/Fails_to_drop_key_on_windows___40__Access_denied__41__/?updated
which is still happing with today's git-annex snapshot.

This approach possible, because this utility repo is constructed on the
fly from the URL specification, and only contains the two keys that need
to be dropped. However, given the bluntness of the approach, it is
limited to the platform on which the original issue is happening:
windows.

Closes #26
@mih
Copy link
Member Author

mih commented Jun 10, 2022

The coverage report is confusing. When starting this PR I specifically confirmed that the reenabled test actually fails on appveyor windows, and it nevertheless reports that same code it as "not covered". I'd say this is false and can be ignored here.

Copy link
Collaborator

@mslw mslw left a comment

Choose a reason for hiding this comment

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

Given that this is a utility repo, I think the "blunt force" approach is fair (but please note that I have no experience with using git annex dropkey).

The doings of codecov are unfortunately opaque to me. But confusing indeed, if I'm reading the results correctly: despite complaints for "patch", the "project" coverage increased.

@bpoldrack bpoldrack merged commit 5ceaf93 into main Jun 13, 2022
@bpoldrack bpoldrack deleted the bf-26 branch June 13, 2022 08:17
@mih mih mentioned this pull request Jul 8, 2022
8 tasks
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