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

Cache size propagete to libdeeplake. #2607

Merged
merged 6 commits into from Sep 21, 2023
Merged

Cache size propagete to libdeeplake. #2607

merged 6 commits into from Sep 21, 2023

Conversation

khustup
Copy link
Contributor

@khustup khustup commented Sep 20, 2023

🚀 🚀 Pull Request

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Pass cache size to the indra.

Things to be aware of

Things to worry about

Additional Context

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Patch coverage: 66.66% and project coverage change: -0.60% ⚠️

Comparison is base (799f547) 83.99% compared to head (14dedc0) 83.40%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2607      +/-   ##
==========================================
- Coverage   83.99%   83.40%   -0.60%     
==========================================
  Files         224      224              
  Lines       24674    24677       +3     
==========================================
- Hits        20726    20582     -144     
- Misses       3948     4095     +147     
Flag Coverage Δ
unittests 83.40% <66.66%> (-0.60%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
deeplake/enterprise/convert_to_libdeeplake.py 61.81% <66.66%> (-0.80%) ⬇️

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nvoxland
Copy link
Contributor

The formatter needs to be ran on this

@@ -212,6 +213,9 @@ def dataset_to_libdeeplake(hub2_dataset: Dataset):
libdeeplake_dataset = hub2_dataset.libdeeplake_dataset

assert libdeeplake_dataset is not None
libdeeplake_dataset._max_cache_size = max(
hub2_dataset.storage.cache_size * MB, libdeeplake_dataset._max_cache_size
Copy link
Contributor

Choose a reason for hiding this comment

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

dataset.storage.cache_size is already in bytes

@sonarcloud
Copy link

sonarcloud bot commented Sep 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

75.0% 75.0% Coverage
0.0% 0.0% Duplication

@tatevikh tatevikh merged commit aad7adf into main Sep 21, 2023
12 of 14 checks passed
@tatevikh tatevikh deleted the cache-size-indra branch September 21, 2023 18:10
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.

None yet

5 participants