run-cache: http: stage cache uploads in http remotes

Currently, there is no way to find run-cache in HTTP remotes.
In the future, we could use directory-listings from supported
webservers to find files.
Temporarily, we are restricting the run-cache uploads. This is a bit
strict, we could have only restricted the downloads, but it might be
more confusing to the users, so I went to categorically restrict
stage cache uploads and downloads for http filesystems.
This commit is contained in:
Saugat Pachhai (सौगात)
2022-06-12 13:49:56 +03:00
committed by Ruslan Kuprieiev
parent e6db6ffc89
commit d30dbd50bc
2 changed files with 22 additions and 1 deletions
+4
View File
@@ -1,6 +1,9 @@
import os
import shutil
import pytest
from dvc.stage.cache import RunCacheNotSupported
from dvc.utils.fs import remove
@@ -92,6 +95,7 @@ class TestRemote:
status_dir = dvc.cloud.status(dir_hashes)
_check_status(status_dir, ok=dir_hashes)
@pytest.mark.xfail(raises=RunCacheNotSupported, strict=False)
def test_stage_cache_push_pull(self, tmp_dir, dvc, remote):
tmp_dir.gen("foo", "foo")
stage = dvc.stage.add(