Skip to content

3616 test downloading issues#3617

Merged
wyli merged 3 commits intoProject-MONAI:devfrom
wyli:download-skip-issue
Jan 9, 2022
Merged

3616 test downloading issues#3617
wyli merged 3 commits intoProject-MONAI:devfrom
wyli:download-skip-issue

Conversation

@wyli
Copy link
Copy Markdown
Contributor

@wyli wyli commented Jan 8, 2022

Signed-off-by: Wenqi Li [email protected]

Fixes #3616

Description

adding a test util to download_url_or_skip_test

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Jan 8, 2022

/build

@wyli wyli marked this pull request as ready for review January 8, 2022 21:07
@wyli wyli requested a review from Nic-Ma January 8, 2022 21:08
Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

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

Hi @wyli ,

Thanks for the quick fix, it overall looks good to me.
Please double confirm the case that: if some URL or URL args changed in the CI tests (not invalid URL with URLError), this PR may always skip the tests due to RuntimeError and doesn't report errors.
Maybe we can try to split the RuntimeError more clearly for not existing and denied permission in this PR to avoid the case and only skip denied permission?
https://github.com/Project-MONAI/MONAI/blob/dev/monai/apps/utils.py#L196
What do you think?

Thanks.

@wyli wyli requested a review from Nic-Ma January 9, 2022 10:26
Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

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

Thanks for the quick update, looks good to me.

@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Jan 9, 2022

/build

@wyli wyli merged commit a0d2558 into Project-MONAI:dev Jan 9, 2022
@wyli wyli deleted the download-skip-issue branch January 9, 2022 23:11
Can-Zhao pushed a commit to Can-Zhao/MONAI that referenced this pull request Jan 10, 2022
* 3616 test downloading issues

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request Feb 9, 2022
* 3616 test downloading issues

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test error due to unstable data downloading

2 participants