diff --git a/dvc/repo/experiments/executor/base.py b/dvc/repo/experiments/executor/base.py index 1c024cafe..94c19d78c 100644 --- a/dvc/repo/experiments/executor/base.py +++ b/dvc/repo/experiments/executor/base.py @@ -499,9 +499,9 @@ class BaseExecutor(ABC): git_remote, repro_force, ) - info.result_hash = exp_hash - info.result_ref = ref - info.result_force = repro_force + info.result_hash = exp_hash + info.result_ref = ref + info.result_force = repro_force # ideally we would return stages here like a normal repro() call, but # stages is not currently picklable and cannot be returned across diff --git a/tests/func/experiments/test_experiments.py b/tests/func/experiments/test_experiments.py index fb94ee4b0..84281b9a7 100644 --- a/tests/func/experiments/test_experiments.py +++ b/tests/func/experiments/test_experiments.py @@ -748,3 +748,9 @@ def test_experiment_unchanged(tmp_dir, scm, dvc, exp_stage): dvc.experiments.run(exp_stage.addressing) assert len(dvc.experiments.ls()["master"]) == 2 + + +def test_experiment_run_dry(tmp_dir, scm, dvc, exp_stage): + dvc.experiments.run(exp_stage.addressing, dry=True) + + assert len(dvc.experiments.ls()["master"]) == 0