Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp: refactor (local) executors to start using process manager #7084

Merged
merged 3 commits into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
330 changes: 71 additions & 259 deletions dvc/repo/experiments/__init__.py

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion dvc/repo/experiments/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional
from typing import NamedTuple, Optional

from dvc.exceptions import DvcException, InvalidArgumentError

Expand Down Expand Up @@ -141,3 +141,20 @@ def from_ref(cls, ref: str):
baseline_sha = parts[2] + parts[3] if len(parts) >= 4 else None
name = parts[4] if len(parts) == 5 else None
return cls(baseline_sha, name)


class ExpStashEntry(NamedTuple):
"""Experiment stash entry.

stash_index: EXPS_STASH index for this entry. Can be None if this commit
is not pushed onto the stash ref.
head_rev: HEAD Git commit to be checked out for this experiment.
baseline_rev: Experiment baseline commit.
branch: Optional exp (checkpoint) branch name for this experiment.
"""

stash_index: Optional[int]
head_rev: str
baseline_rev: str
branch: Optional[str]
name: Optional[str]
Loading