mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 07:18:28 +01:00
* experiments: add initial local tmpdir executor * fix detached head pull * experiments: include unchanged (unrepro'd) stages in experiment hash * experiments: repro single experiment using tmpdir executor by default * stage experiments as stash commits before running * include repro args/kwargs in stashed experiments * support running arbitrary experiment commits (including stash commits) * experiments: use ProcessPoolExecutor * experiments: add `dvc exp` alias for `dvc experiments` * experiments: add `dvc repro --experiment --queue` * `--queue` can be used to stage an experiment for future execution * experiments: show queued (unexecuted) experiments in `dvc exp show` * revert ProcessPoolExecutor change * experiments: add `dvc repro --run-all [--jobs]` * `--run-all` can be used to run all queued experiments in parallel * cleanup output * experiments: use ProcessPoolExecutor * fix returning unpicklable objects error * update tests * fix windows cleanup issue * on windows tempdir cannot be removed if we are chdir'd into that directory
21 lines
573 B
Python
21 lines
573 B
Python
from tests.func.test_repro_multistage import COPY_SCRIPT
|
|
|
|
|
|
def test_show_simple(tmp_dir, scm, dvc):
|
|
tmp_dir.gen("copy.py", COPY_SCRIPT)
|
|
tmp_dir.gen("params.yaml", "foo: 1")
|
|
dvc.run(
|
|
cmd="python copy.py params.yaml metrics.yaml",
|
|
metrics_no_cache=["metrics.yaml"],
|
|
params=["foo"],
|
|
single_stage=True,
|
|
)
|
|
|
|
assert dvc.experiments.show()["workspace"] == {
|
|
"baseline": {
|
|
"metrics": {"metrics.yaml": {"foo": 1}},
|
|
"params": {"params.yaml": {"foo": 1}},
|
|
"queued": False,
|
|
}
|
|
}
|