objects: migrate remote push/pull to objects.transfer (#6308)

* objects: migrate remote status to objects.status

* data_cloud: use objects.status

* objects: migrate remote._process to objects.transfer

* data_cloud: use objects.transfer

* objects: handle memfs staging objects in transfer

* fetch/import: use unified transfer()

* update get_remote and transfer exception usage

* update tests

* objects.transfer: use src ODB verify rules after xfer

* odb: move index from remote into odb

* objects.transfer: skip src status check when possible

* update tests

* remove dvc.remote

* odb.index: migrate to diskcache

* objects: fix status/transfer optimization

* update index usage

* state: remove dead sqlite related code

* update cloud tests

* drop unnecessary remove in tests

* use abstract base class in odb index

* status: load trees from local cache instead of remote odb when possible

* handle status when dir cache is explicitly removed
This commit is contained in:
Peter Rowlands (변기호)
2021-07-20 13:30:01 +03:00
committed by GitHub
parent 66d0df2d12
commit 3d84df930b
42 changed files with 890 additions and 1285 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def test_cache_reused(erepo_dir, mocker, local_cloud):
erepo_dir.dvc_gen("file", "text", commit="add file")
erepo_dir.dvc.push()
download_spy = mocker.spy(LocalFileSystem, "download_file")
download_spy = mocker.spy(LocalFileSystem, "upload_fobj")
# Use URL to prevent any fishy optimizations
url = f"file://{erepo_dir}"