mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
Use a more granular lock on exp operations.
For now in `experiment.new`, `init_executor` and `collect_exectuor` we lock the whole scm repo. We can make a more granular lock in these operations.
This commit is contained in:
@@ -38,7 +38,7 @@ def test_init_from_stash(tmp_dir, scm, dvc, machine_instance, mocker):
|
||||
|
||||
@pytest.mark.needs_internet
|
||||
@pytest.mark.parametrize("cloud", [pytest.lazy_fixture("git_ssh")])
|
||||
def test_init_git(tmp_dir, scm, cloud, mocker):
|
||||
def test_init_git(tmp_dir, dvc, scm, cloud, mocker):
|
||||
tmp_dir.scm_gen({"foo": "foo", "dir": {"bar": "bar"}}, commit="init")
|
||||
baseline_rev = scm.get_rev()
|
||||
tmp_dir.gen("foo", "stashed")
|
||||
@@ -59,7 +59,7 @@ def test_init_git(tmp_dir, scm, cloud, mocker):
|
||||
fs_factory=partial(_ssh_factory, cloud),
|
||||
)
|
||||
infofile = str((root_url / "foo.run").path)
|
||||
executor.init_git(scm, rev, mock, infofile=infofile)
|
||||
executor.init_git(dvc, scm, rev, mock, infofile=infofile)
|
||||
assert root_url.path == executor._repo_abspath
|
||||
|
||||
fs = cloud._ssh
|
||||
|
||||
Reference in New Issue
Block a user