mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
dvc: drop cached external outputs
Fixes #9531 Docs https://github.com/iterative/dvc.org/pull/4574 Kudos @dberenbaum
This commit is contained in:
@@ -534,7 +534,7 @@ def test_run_external_outputs(
|
||||
name="mystage",
|
||||
cmd="mycmd",
|
||||
deps=["remote://workspace/foo"],
|
||||
outs=["remote://workspace/bar"],
|
||||
outs_no_cache=["remote://workspace/bar"],
|
||||
no_exec=True,
|
||||
)
|
||||
|
||||
@@ -545,7 +545,8 @@ def test_run_external_outputs(
|
||||
" deps:\n"
|
||||
" - remote://workspace/foo\n"
|
||||
" outs:\n"
|
||||
" - remote://workspace/bar\n"
|
||||
" - remote://workspace/bar:\n"
|
||||
" cache: false\n"
|
||||
)
|
||||
|
||||
assert (tmp_dir / "dvc.yaml").read_text() == dvc_yaml
|
||||
@@ -574,9 +575,7 @@ def test_run_external_outputs(
|
||||
|
||||
assert (local_workspace / "foo").read_text() == "foo"
|
||||
assert (local_workspace / "bar").read_text() == "bar"
|
||||
assert (
|
||||
local_workspace / "cache" / "files" / "md5" / bar_hash[:2] / bar_hash[2:]
|
||||
).read_text() == "bar"
|
||||
assert not (local_workspace / "cache").exists()
|
||||
|
||||
|
||||
def test_rerun_callback(dvc):
|
||||
|
||||
Reference in New Issue
Block a user