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

5775 Fix _get_latest_bundle_version issue on Windows #5787

Merged

Conversation

yiheng-wang-nv
Copy link
Contributor

Signed-off-by: Yiheng Wang vennw@nvidia.com

Fixes #5775 .

Description

This PR fixes the issue of _get_latest_bundle_version on Windows (os.path.join will produce backslash which will create a wrong url)
Thanks @SachidanandAlle for finding this issue.

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.

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Copy link
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 @yiheng-wang-nv ,

Could you please help remove this line to allow the windows tests:
https://github.com/Project-MONAI/MONAI/blob/dev/tests/test_bundle_download.py#L61
Actually, other bundle tests cover windows, like:
https://github.com/Project-MONAI/MONAI/blob/dev/tests/test_integration_bundle_run.py#L108

Thanks.

yiheng-wang-nv and others added 2 commits December 30, 2022 14:13
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
@yiheng-wang-nv
Copy link
Contributor Author

Hi @yiheng-wang-nv ,

Could you please help remove this line to allow the windows tests: https://github.com/Project-MONAI/MONAI/blob/dev/tests/test_bundle_download.py#L61 Actually, other bundle tests cover windows, like: https://github.com/Project-MONAI/MONAI/blob/dev/tests/test_integration_bundle_run.py#L108

Thanks.

Thanks Nic for the advice. I removed the line you mentioned. However, here I wish to double confirm that if windows and macOS will execute the unit tests that has skip_if_quick. Initially I followed test_mmar_download and avoid download and load tests if quick. I'm not sure if it is necessary to remove this decorator as well to ensurewindows test is able to run.

Hi @wyli , could you please help to give some suggestions? Thanks!

@wyli
Copy link
Contributor

wyli commented Jan 4, 2023

/build

@wyli wyli enabled auto-merge (squash) January 4, 2023 13:30
@wyli wyli merged commit c6081e5 into Project-MONAI:dev Jan 4, 2023
@wyli
Copy link
Contributor

wyli commented Jan 4, 2023

there's only quick tests for windows/macos, because we don't have windows+gpu for full tests anywhere, so please verify this manually.

@yiheng-wang-nv yiheng-wang-nv deleted the 5775-enhance-get-latest-bundle-version branch January 5, 2023 02:58
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.

_get_latest_bundle_version issue on Windows
4 participants