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

Limit use of default annex.retry=3 to get and copy operations #5904

Merged
merged 1 commit into from Aug 17, 2021

Conversation

mih
Copy link
Member

@mih mih commented Aug 16, 2021

As discussed in gh-5808 the unconditional use can lead to problematic
error reporting. @yarikoptic's verdict was to maintain the behavior, but
limit it to data transfer commands.

This change implements this move and enables this datalad-specific
default only for get and copy operations. The latter is not
implemented in AnnexRepo.copy_to() because this method is only used
internally in tests, partially broken (gh-5903), and was deprecated in
Apr 2021. Instead, the change is implemented directly in push.

Fixes #5808

@mih mih added the semver-patch Increment the patch version when merged label Aug 16, 2021
@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #5904 (890c9ff) into master (6d9a17d) will decrease coverage by 43.06%.
The diff coverage is 100.00%.

❗ Current head 890c9ff differs from pull request most recent head d4156f2. Consider uploading reports for the commit d4156f2 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           master    #5904       +/-   ##
===========================================
- Coverage   90.21%   47.15%   -43.07%     
===========================================
  Files         308      305        -3     
  Lines       41931    41895       -36     
===========================================
- Hits        37827    19754    -18073     
- Misses       4104    22141    +18037     
Impacted Files Coverage Δ
datalad/core/distributed/push.py 92.46% <ø> (ø)
datalad/support/annexrepo.py 73.01% <100.00%> (-18.08%) ⬇️
datalad/plugin/wtf.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/plugin/addurls.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/tests/test_api.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/plugin/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/plugin/no_annex.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/tests/test_base.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/plugin/add_readme.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/tests/test_config.py 0.00% <0.00%> (-100.00%) ⬇️
... and 239 more

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 6d9a17d...d4156f2. Read the comment docs.

As discussed in dataladgh-5808 the unconditional use can lead to problematic
error reporting. @yarikoptic's verdict was to maintain the behavior, but
limit it to data transfer commands.

This change implements this move and enables this datalad-specific
default only for `get` and `copy` operations. The latter is not
implemented in `AnnexRepo.copy_to()` because this method is only used
internally in tests, partially broken (dataladgh-5903), and was deprecated in
Apr 2021. Instead, the change is implemented directly in `push`.

Fixes datalad#5808
@mih mih added the merge-if-ok OP considers this work done, and requests review/merge label Aug 17, 2021
@bpoldrack bpoldrack merged commit d0823e4 into datalad:master Aug 17, 2021
@mih mih deleted the bf-5808 branch August 17, 2021 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-if-ok OP considers this work done, and requests review/merge semver-patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unconditional use of annex.retry turns error reporting into a mess
2 participants