-
Notifications
You must be signed in to change notification settings - Fork 110
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
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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!
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. |
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
submitted attempt to fix at least one issue among 2 at #6842 |
🚀 PR was released in |
A comment in code review accidentally changed the return type of
an internal
run_procdure --discover
call withincreate
fromlist
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