Skip to content

Stop rendering subdatasets results - #7094

Merged
bpoldrack merged 3 commits into
datalad:maintfrom
mslw:bf-7091
Oct 19, 2022
Merged

bpoldrack merged 3 commits into
datalad:maintfrom
mslw:bf-7091

Conversation

@mslw

@mslw mslw commented Oct 17, 2022 •

Copy link
Copy Markdown
Contributor

Disables subdataset result renderer inside run_procedure.
The subdataset call was internal, and its results do not need to be rendered.

I applied a patch proposed by @mih in #7091.
Fixes #7091

mslw and others added 2 commits October 17, 2022 13:27
Disables subdataset result renderer inside run_procedure. This is an
internal call, so results are not needed. Fixes datalad#7091.

Co-authored-by: Michael Hanke <michael.hanke@gmail.com>
@mslw mslw added the semver-patch Increment the patch version when merged label Oct 17, 2022
@mslw
mslw marked this pull request as ready for review October 17, 2022 15:41
@codecov

codecov Bot commented Oct 17, 2022 •

Copy link
Copy Markdown

Codecov Report

Base: 76.01% // Head: 88.87% // Increases project coverage by +12.86% 🎉

Coverage data is based on head (5b62da3) compared to base (dccc798).
Patch coverage: 81.81% of modified lines in pull request are covered.

❗ Current head 5b62da3 differs from pull request most recent head a88c6e1. Consider uploading reports for the commit a88c6e1 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##            maint    #7094       +/-   ##
===========================================
+ Coverage   76.01%   88.87%   +12.86%     
===========================================
  Files         355      355               
  Lines       59101    46419    -12682     
  Branches     6318        0     -6318     
===========================================
- Hits        44925    41257     -3668     
+ Misses      14162     5162     -9000     
+ Partials       14        0       -14     
Impacted Files Coverage Δ
datalad/local/run_procedure.py 94.33% <ø> (-1.89%) ⬇️
datalad/tests/utils_pytest.py 89.51% <69.23%> (-0.62%) ⬇️
datalad/core/distributed/tests/test_clone.py 97.59% <100.00%> (+21.28%) ⬆️
datalad/utils.py 85.90% <100.00%> (+9.89%) ⬆️
datalad/cmdline/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/interface/run_procedure.py 0.00% <0.00%> (-100.00%) ⬇️
datalad/cmdline/helpers.py 0.00% <0.00%> (-78.27%) ⬇️
datalad/tests/test_tests_utils.py 0.00% <0.00%> (-68.56%) ⬇️
datalad/support/nda_.py 0.00% <0.00%> (-54.55%) ⬇️
datalad/tests/utils.py 21.60% <0.00%> (-30.38%) ⬇️
... and 190 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread changelog.d/pr-7094.md Outdated
- Stop rendering the output of internal `subdatset()` call in the
results of `run_procedure()`.
Fixes https://github.com/datalad/datalad/issues/7091 via
https://github.com/datalad/datalad/pull/7094 (by @mslw & @mih)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might want to make @mslw and @mih into hyperlinks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Also changed issue/PR into formatted links. I started with an old snippet template, that's why I didn't do it right away.

@yarikoptic yarikoptic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good to me . Travis fail is test_ExtractedArchive which I believe is known although I thought we dealt with

       extracted_files = earchive.get_extracted_files()
        ok_generator(extracted_files)
        try:
            eq_(sorted(extracted_files),
                sorted([
                    # ['bbc/3.txt', 'bbc/abc']
                    op.join(fn_archive_obscure, fn_in_archive_obscure),
>                   op.join(fn_archive_obscure, '3.txt')
                ]))
../datalad/tests/test_archives.py:219: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
first = [' |;&%b5{}\'"<>ΔЙקم๗あ .dbtc / |;&%b5{}\'"<>ΔЙקم๗あ .datc ']
second = [' |;&%b5{}\'"<>ΔЙקم๗あ .dbtc / |;&%b5{}\'"<>ΔЙקم๗あ .datc ', ' |;&%b5{}\'"<>ΔЙקم๗あ .dbtc /3.txt']
msg = None
    def assert_equal(first, second, msg=None):
        if msg is None:
>           assert first == second
E           assert [' |;&%b5{}\'...Йקم๗あ .datc '] == [' |;&%b5{}\'....dbtc /3.txt']
E             Right contains one more item: ' |;&%b5{}\'"<>ΔЙקم๗あ .dbtc /3.txt'
E             Full diff:
E               [
E                ' |;&%b5{}\'"<>ΔЙקم๗あ .dbtc / |;&%b5{}\'"<>ΔЙקم๗あ .datc ',
E             -  ' |;&%b5{}\'"<>ΔЙקم๗あ .dbtc /3.txt',
E               ]
../datalad/tests/utils_pytest.py:107: AssertionError

@adswa adswa linked an issue Oct 19, 2022 that may be closed by this pull request
@bpoldrack

Copy link
Copy Markdown
Member

@yarikoptic
Re failing test:
The only thing I can find is #4101. Did you have something else in mind?

@bpoldrack

Copy link
Copy Markdown
Member

Thx, @mslw!

@bpoldrack
bpoldrack merged commit ea57a2b into datalad:maint Oct 19, 2022
@yarikoptic-gitmate

Copy link
Copy Markdown
Collaborator

PR released in 0.17.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run_procedure() unconditionally renders subdataset() output

4 participants