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

index: data_tree: handle partial imports #10221

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Jan 4, 2024

Currently if one has partial import and then also does partial update (--no-download), dvc will think that this is the same data tree and will hit cached index, resulting in invalid state.

Fixes #10173

@@ -271,7 +271,7 @@ def test_pull_partial_import(tmp_dir, dvc, local_workspace):
stage = dvc.imp_url("remote://workspace/file", os.fspath(dst), no_download=True)

result = dvc.pull("file")
assert result["fetched"] == 0
assert result["fetched"] == 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

codecov bot commented Jan 4, 2024

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (bf5fe95) 90.48% compared to head (21035f1) 90.21%.

Files Patch % Lines
dvc/testing/workspace_tests.py 6.66% 14 Missing ⚠️
dvc/repo/index.py 85.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10221      +/-   ##
==========================================
- Coverage   90.48%   90.21%   -0.27%     
==========================================
  Files         499      499              
  Lines       37994    38008      +14     
  Branches     5521     5522       +1     
==========================================
- Hits        34379    34290      -89     
- Misses       2971     3052      +81     
- Partials      644      666      +22     

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

@efiop efiop merged commit f1de712 into iterative:main Jan 4, 2024
21 of 22 checks passed
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.

S3 version tracking is working, but version switch is not working
1 participant