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

new git-annex regression/change in beh? AnnexRepo.info assertion assert(j.pop('file') == f) fails #4431

Closed
yarikoptic opened this issue Apr 21, 2020 · 3 comments
Labels
annex Git-annex related issue

Comments

@yarikoptic
Copy link
Member

yarikoptic commented Apr 21, 2020

From daily run on maint -- 18 failures in
https://github.com/datalad/datalad-extensions/runs/603806897?check_suite_focus=true
due to similar (I think all for the same reason) in invocation of git annex info:

  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 1742, in is_under_annex
    files, allow_quick, batch)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 1655, in _check_files
    annex_res = fn(files, normalize_paths=False, batch=batch)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 1727, in check
    fast=True, **kwargs)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/datalad/support/gitrepo.py", line 315, in newfunc
    result = func(self, files_new, *args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 2432, in info
    assert(j.pop('file') == f)
AssertionError

annex 8.20200330+git119-gcee6b344b-1~ndall+1
attn: @joeyh

@yarikoptic yarikoptic added the annex Git-annex related issue label Apr 21, 2020
@yarikoptic
Copy link
Member Author

underlying issue -- git-annex started to "normalize" paths a bit:

(Pdb) p j
{'command': 'info test-annex.dat', 'size': '28', 'success': True, 'key': 'SHA256E-s28--2795fb26981c5a687b9bf44930cc220029223f472cea0f0b17274f4473181e7b.dat', 'error-messages': [], 'present': False, 'file': 'test-annex.dat'}
(Pdb) p f
'./test-annex.dat'
(Pdb) p files
['./test-annex.dat', './not-committed.txt', './INFO.txt']

so it went from provided './test-annex.dat' to 'test-annex.dat' .

@yarikoptic
Copy link
Member Author

but not always:

(Pdb) p j['file']
'./.datalad/somefile'
(Pdb) p f
'./.datalad/somefile'

@yarikoptic
Copy link
Member Author

We have a workaround and I have a vague memory of reporting something like that against git-annex, but we do not even have a test to verify correct operation if we RF things up... but not sure what else to keep this issue open for, so will close to beat @mih in the number of closed issues per day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annex Git-annex related issue
Projects
None yet
Development

No branches or pull requests

1 participant