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

push: use index push #9807

Merged
merged 1 commit into from
Oct 26, 2023
Merged

push: use index push #9807

merged 1 commit into from
Oct 26, 2023

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Aug 5, 2023

Part of #9333

@efiop efiop changed the title push: use index push [WIP] push: use index push Aug 5, 2023
@efiop efiop mentioned this pull request Aug 5, 2023
12 tasks
@efiop efiop force-pushed the index-push branch 2 times, most recently from b657943 to 8cc8d25 Compare August 10, 2023 15:55
@efiop efiop force-pushed the index-push branch 2 times, most recently from 7e526c6 to 6a810ff Compare September 19, 2023 18:06
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

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

Files Coverage Δ
dvc/repo/fetch.py 80.23% <100.00%> (-0.23%) ⬇️
dvc/repo/index.py 86.13% <ø> (+0.21%) ⬆️
dvc/repo/worktree.py 22.67% <100.00%> (+13.24%) ⬆️
tests/func/test_data_cloud.py 99.42% <100.00%> (ø)
tests/func/test_virtual_directory.py 100.00% <ø> (ø)
dvc/repo/push.py 87.03% <84.44%> (+29.25%) ⬆️

... and 30 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@@ -486,7 +486,7 @@ def test_pull_partial(tmp_dir, dvc, local_remote):
clean(["foo"], dvc)

stats = dvc.pull(os.path.join("foo", "bar"))
assert stats["fetched"] == 3
assert stats["fetched"] == 2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were pulling redundant files here.

@@ -182,7 +182,7 @@ def test_partial_checkout_and_update(M, tmp_dir, dvc, remote):

assert dvc.pull("dir/subdir") == M.dict(
added=[join("dir", "")],
fetched=3,
fetched=2,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also were pulling redundant files here.

@@ -148,7 +148,7 @@ def test_hash_recalculation(mocker, dvc, tmp_dir, local_remote):
assert ret == 0
ret = main(["push"])
assert ret == 0
assert test_file_md5.mock.call_count == 1
assert test_file_md5.mock.call_count == 3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

2 new are from in-memfs calc for dirs.

@efiop efiop force-pushed the index-push branch 2 times, most recently from 9d860c0 to 07e2393 Compare October 25, 2023 23:18
@efiop efiop changed the title [WIP] push: use index push push: use index push Oct 26, 2023
@efiop efiop marked this pull request as ready for review October 26, 2023 17:31
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.

1 participant