Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Update cached_path version #5665

Merged
merged 21 commits into from
Jun 17, 2022
Merged

Update cached_path version #5665

merged 21 commits into from
Jun 17, 2022

Conversation

AkshitaB
Copy link
Contributor

@AkshitaB AkshitaB commented Jun 13, 2022

Changes

  • Mostly changes to the CI. Using pip-tools to resolve versions of primary and non-primary dependencies, so that we don't download multiple versions of multiple packages.
  • Also using venv instead of conda, which was several times slower.
  • Combined effect of the two (but especially pip-tools) has reduced the virtual environment caching time from hours (we stopped trying after 1 hour) to ~5 min.
  • Pinning versions for more packages now.
  • Commenting a couple of test cases for the time being. They will be fixed on cached-path, and then uncommented.

@AkshitaB AkshitaB requested a review from epwalsh June 13, 2022 22:08
@AkshitaB AkshitaB requested a review from epwalsh June 17, 2022 20:45
Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

LGTM, way to stick with this!

extracted = cached_path(url, cache_dir=self.TEST_DIR, extract_archive=True)
assert extracted.endswith("-extracted")
self.check_extracted(extracted)
# @responses.activate
Copy link
Member

Choose a reason for hiding this comment

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

Could also just @pytest.skip(reason="whatever")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yes, that's better.

@AkshitaB AkshitaB merged commit ea4a53c into main Jun 17, 2022
@AkshitaB AkshitaB deleted the update-cached-path-version branch June 17, 2022 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants