Refactor seperate the initialization of executor and setup environment

Reason:
1. Need some more granular control over initialization progress of
   executor.

What done:
1. Seperate `init_git` and `init_cache` progress out from setup_executor
2. Move `set_ref` into `init_git`
This commit is contained in:
karajan1001
2022-09-26 16:25:47 +08:00
committed by Gao
parent 8c484645fa
commit 90109bccd7
11 changed files with 103 additions and 102 deletions
@@ -29,7 +29,6 @@ def test_init_from_stash(tmp_dir, scm, dvc, machine_instance, mocker):
mock_entry.name = ""
SSHExecutor.from_stash_entry(
dvc,
"abc123",
mock_entry,
machine_name="foo",
)