diff --git a/dvc/repo/experiments/executor/base.py b/dvc/repo/experiments/executor/base.py index c00354d0d..32b82de42 100644 --- a/dvc/repo/experiments/executor/base.py +++ b/dvc/repo/experiments/executor/base.py @@ -21,6 +21,7 @@ from typing import ( Union, ) +from funcy import get_in from scmrepo.exceptions import SCMError from dvc.env import DVC_EXP_AUTO_PUSH, DVC_EXP_GIT_REMOTE @@ -590,6 +591,7 @@ class BaseExecutor(ABC): info.name, "dvc", experiment_rev=dvc.experiments.scm.get_ref(EXEC_BRANCH), + metrics=get_in(dvc.metrics.show(), ["", "data"]), ) if infofile is not None: diff --git a/pyproject.toml b/pyproject.toml index dd97f61c2..1cf0eb615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ dependencies = [ "dvc-data>=0.42.1,<0.43", "dvc-http", "dvc-render>=0.1.2", - "dvc-studio-client>=0.1.1", + "dvc-studio-client>=0.5.0,<1", "dvc-task>=0.2.0,<1", "flatten_dict<1,>=0.4.1", "flufl.lock>=5", diff --git a/tests/integration/test_studio_live_experiments.py b/tests/integration/test_studio_live_experiments.py index c43c253f2..1f3a91d3b 100644 --- a/tests/integration/test_studio_live_experiments.py +++ b/tests/integration/test_studio_live_experiments.py @@ -38,4 +38,5 @@ def test_post_to_studio(tmp_dir, dvc, scm, exp_stage, mocker, monkeypatch, tmp): "name": name, "client": "dvc", "experiment_rev": exp_rev, + "metrics": {"metrics.yaml": {"data": {"foo": 1}}}, }