experiments: fix checkout error for unexisting outputs (#5175)

* stage: support explicit allow_missing in checkout

* exp: explicitly clear EXEC_BRANCH and checkout with allow_missing on
starting experiment run

* git: wrap stash apply errors with SCMError

* git: add `git status` to backends

* exp: reset staged git changes before workspace exp runs to avoid merge
conflicts

* test untracked (and staged) pipeline file and deps for both workspace
and tmpdir runs

* experiments: explicitly track pipeline files and uncached deps for exp
commmits

* fix exp typing errors
This commit is contained in:
Peter Rowlands (변기호)
2020-12-29 18:07:21 +09:00
committed by GitHub
parent c64b4ce78f
commit db555ec66b
13 changed files with 88 additions and 19 deletions
+6 -1
View File
@@ -3,7 +3,7 @@ import locale
import logging
import os
from functools import partial
from typing import Callable, Iterable, Optional, Tuple
from typing import Callable, Iterable, Mapping, Optional, Tuple
from funcy import first
@@ -516,3 +516,8 @@ class GitPythonBackend(BaseGitBackend): # pylint:disable=abstract-method
"""Checkout the specified paths from HEAD index."""
if paths:
self.repo.index.checkout(paths=paths, force=force)
def status(
self, ignored: bool = False
) -> Tuple[Mapping[str, Iterable[str]], Iterable[str], Iterable[str]]:
raise NotImplementedError