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

BF/RF: create-sibling follow diff with constant_refs=False + operate on committed subds #6603

Merged
merged 2 commits into from
Apr 7, 2022

Conversation

yarikoptic
Copy link
Member

Initial motivation for this change was fixing

#6596

where while specifying --since, create-sibling did not detect needing to
create a sibling for a subdataset. A stale (missed during #6528 OPT/RF)
comment said that value of constant_refs=True should not matter since it was
not recursive originally. But now here we do recurse and it does matter since
we migth completely skip subtree where such refs are not yet known. Changing
to False resulted in the test failing which made me realize that sibling was
created even for not yet committed changes to submodules. Since for push it
would really not work to push something which is not yet saved, I think the
change in behavior for create-sibling is also desired. And it fixes #6596.
So I have "fixed" and expanded test with the problematic case I had
discovered.

Changelog

🐛 Bug Fixes

…on committed

Initial motivation for this change was fixing

   datalad#6596

where while specifying --since, create-sibling  did not detect needing to
create a sibling for a subdataset.  A stale (missed during datalad#6528 OPT/RF)
comment said that value of constant_refs=True should not matter since it was
not recursive originally. But now here we do recurse and it does matter since
we migth completely skip subtree where such refs are not yet known.  Changing
to False resulted in the test failing which made me realize that sibling was
created even for not yet committed changes to submodules.  Since for push it
would really not work to push something which is not yet saved, I think the
change in behavior for create-sibling is also desired.  And it fixes datalad#6596.
So I have "fixed" and expanded test with the problematic case I had
discovered.
@yarikoptic yarikoptic requested a review from mih March 30, 2022 20:25
@yarikoptic yarikoptic added the semver-minor Increment the minor version when merged label Mar 31, 2022
@yarikoptic yarikoptic added this to the 0.16.0 milestone Apr 5, 2022
This actually led to the tests fails in datalad-deprecated which trigger
this tests code path, which is otherwise not used in core
@yarikoptic
Copy link
Member Author

ha, due to the ingenuity of the setup, fixes to get datalad-deprecated green are needed in the test code base of the datalad itself. Pushed 5f34a9b .

@codeclimate
Copy link

codeclimate bot commented Apr 7, 2022

Code Climate has analyzed commit 5f34a9b and detected 0 issues on this pull request.

View more on Code Climate.

@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #6603 (5f34a9b) into master (97f648e) will increase coverage by 0.01%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master    #6603      +/-   ##
==========================================
+ Coverage   91.14%   91.16%   +0.01%     
==========================================
  Files         350      353       +3     
  Lines       44232    44412     +180     
==========================================
+ Hits        40316    40487     +171     
- Misses       3916     3925       +9     
Impacted Files Coverage Δ
datalad/distribution/create_sibling.py 65.42% <ø> (ø)
datalad/distribution/tests/test_create_sibling.py 77.80% <88.88%> (+0.22%) ⬆️
datalad/support/entrypoints.py 47.36% <0.00%> (-13.51%) ⬇️
datalad/core/local/tests/test_status.py 97.79% <0.00%> (-0.68%) ⬇️
datalad/__init__.py 85.63% <0.00%> (-0.33%) ⬇️
datalad/core/local/tests/test_save.py 97.95% <0.00%> (-0.17%) ⬇️
datalad/support/annexrepo.py 91.19% <0.00%> (-0.08%) ⬇️
datalad/support/tests/test_annexrepo.py 97.92% <0.00%> (-0.07%) ⬇️
datalad/cmd.py 94.09% <0.00%> (ø)
datalad/coreapi.py 100.00% <0.00%> (ø)
... and 11 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 97f648e...5f34a9b. Read the comment docs.

@bpoldrack bpoldrack merged commit 140dd2f into datalad:master Apr 7, 2022
@yarikoptic yarikoptic deleted the bf-create-sibling-subsub branch July 11, 2022 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"No datasets qualify for sibling creation." although some should be created
2 participants