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: Make create's check for procedures work with several again #6841

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

adswa
Copy link
Member

@adswa adswa commented Jul 15, 2022

A comment in code review accidentally changed the return type of
an internal run_procdure --discover call within create from list
to generator: #6457 (comment)
When several procedures were given to create at once (described in
#6840), the loop over the generator was repeated for each procedure,
and due to chance, procedure discovery sometimes failed when the
generator was depleted at the second for loop iteration.
This change reverts this and changes the return type back to 'list'.

Fixes #6840.

Changelog

🐛 Bug Fixes

A comment in code review accidentally changed the return type of
an internal run_procdure --discover call within create from list
to generator: datalad#6457 (comment)
When several procedures were given to create at once (described in
datalad#6840), the loop over the generator was repeated for each procedure,
and due to chance, procedure discovery sometimes failed when the
generator was depleted at the second for loop iteration.
This change reverts this and changes the return type back to 'list'.

Fixes datalad#6840.
@adswa adswa requested a review from mslw July 15, 2022 10:20
@adswa adswa added the semver-patch Increment the patch version when merged label Jul 15, 2022
Copy link
Member

@yarikoptic yarikoptic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@codecov
Copy link

codecov bot commented Jul 15, 2022

Codecov Report

Merging #6841 (ed686d2) into maint (7e2352c) will increase coverage by 0.94%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##            maint    #6841      +/-   ##
==========================================
+ Coverage   90.27%   91.21%   +0.94%     
==========================================
  Files         354      354              
  Lines       46079    46065      -14     
==========================================
+ Hits        41597    42019     +422     
+ Misses       4482     4046     -436     
Impacted Files Coverage Δ
datalad/core/local/create.py 99.29% <ø> (ø)
datalad/downloaders/tests/utils.py 92.30% <0.00%> (-7.70%) ⬇️
datalad/tests/test_version.py 80.00% <0.00%> (-2.86%) ⬇️
datalad/support/entrypoints.py 57.89% <0.00%> (-2.64%) ⬇️
datalad/cli/tests/test_formatters.py 97.82% <0.00%> (-2.18%) ⬇️
datalad/support/tests/test_cookies.py 86.66% <0.00%> (-0.84%) ⬇️
datalad/distribution/get.py 96.35% <0.00%> (-0.41%) ⬇️
datalad/customremotes/main.py 85.71% <0.00%> (-0.40%) ⬇️
datalad/local/wtf.py 84.09% <0.00%> (-0.33%) ⬇️
datalad/metadata/aggregate.py 75.07% <0.00%> (-0.30%) ⬇️
... and 15 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 7e2352c...ed686d2. Read the comment docs.

Copy link
Contributor

@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.

Makes sense for discovered_procs to be a list. Thanks for spotting and figuring it out!

@mslw
Copy link
Contributor

mslw commented Jul 15, 2022

Travis test fails on Python 3.10 only (reasons unrelated to this change), so given that there is another approval I believe I can click merge immediately.

@mslw mslw merged commit 8c65776 into datalad:maint Jul 15, 2022
@adswa adswa deleted the bf-6840 branch July 15, 2022 13:12
yarikoptic added a commit to yarikoptic/datalad that referenced this pull request Jul 15, 2022
not sure why I chose 0624 whenever I talk about some state after 10.20220525
in https://git-annex.branchable.com/bugs/regression__58___annex_add_of_moved_file_errors_out/ .

This lead to recent fail in datalad#6841
not sure how it worked before since we should have been installing that newer
version for a while already. May be something changed in conda so it started
to install earlier nodep version instead of depall
@yarikoptic
Copy link
Member

Travis test fails on Python 3.10 only (reasons unrelated to this change), so given that there is another approval I believe I can click merge immediately.

submitted attempt to fix at least one issue among 2 at #6842

@github-actions
Copy link

🚀 PR was released in 0.17.2 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released semver-patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants