Skip to content

Commit

Permalink
Merge pull request #188 from getindata/release-0.7.2
Browse files Browse the repository at this point in the history
Release 0.7.2
  • Loading branch information
szczeles authored Sep 22, 2022
2 parents d4166d4 + 5ddfb57 commit ec4ac27
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.1
current_version = 0.7.2

[bumpversion:file:pyproject.toml]

Expand Down
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: Kedro plugin with Kubeflow Pipelines support
docs_url: https://kedro-kubeflow.readthedocs.io/
full_name: Kedro Kubeflow Plugin
github_url: https://github.com/getindata/kedro-kubeflow
initial_version: 0.7.1
initial_version: 0.7.2
keywords:
- kedro-plugin
- kubeflow
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [0.7.2] - 2022-09-22

- Fixed compatibility with kedro-mlflow >= 0.8

## [0.7.1] - 2022-09-21

- Support latest changes in Dex login screens
Expand Down Expand Up @@ -159,7 +163,9 @@
- Method to schedule runs for most recent version of given pipeline `kedro kubeflow schedule`
- Shortcut to open UI for pipelines using `kedro kubeflow ui`

[Unreleased]: https://github.com/getindata/kedro-kubeflow/compare/0.7.1...HEAD
[Unreleased]: https://github.com/getindata/kedro-kubeflow/compare/0.7.2...HEAD

[0.7.2]: https://github.com/getindata/kedro-kubeflow/compare/0.7.1...0.7.2

[0.7.1]: https://github.com/getindata/kedro-kubeflow/compare/0.7.0...0.7.1

Expand Down
2 changes: 1 addition & 1 deletion kedro_kubeflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.1"
__version__ = "0.7.2"
5 changes: 4 additions & 1 deletion kedro_kubeflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ def mlflow_start(ctx, kubeflow_run_id: str, output: str):
raise click.ClickException("Could not read MLFlow config")

run = mlflow.start_run(
experiment_id=mlflow_conf.experiment.experiment_id, nested=False
experiment_id=mlflow.get_experiment_by_name(
mlflow_conf.tracking.experiment.name
).experiment_id,
nested=False,
)
mlflow.set_tag("kubeflow_run_id", kubeflow_run_id)
with open(output, "w") as f:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kedro-kubeflow"
version = "0.7.1"
version = "0.7.2"
description = "Kedro plugin with Kubeflow Pipelines support"
readme = "README.md"
authors = ['Mateusz Pytel <[email protected]>', 'Mariusz Strzelecki <[email protected]>']
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sonar.tests=tests/
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.version=3.9

sonar.projectVersion=0.7.1
sonar.projectVersion=0.7.2
sonar.projectDescription=Kedro plugin with Kubeflow Pipelines support
sonar.links.homepage=https://kedro-kubeflow.readthedocs.io/
sonar.links.ci=https://github.com/getindata/kedro-kubeflow/actions
Expand Down
8 changes: 7 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,16 @@ def test_init_with_github_actions(self, cwd):

@patch("mlflow.start_run")
@patch("mlflow.set_tag")
def test_mlflow_start(self, set_tag_mock, start_run_mock):
@patch("mlflow.get_experiment_by_name")
def test_mlflow_start(
self, get_experiment_by_name_mock, set_tag_mock, start_run_mock
):
context_helper = MagicMock(ContextHelper)
config = dict(context_helper=context_helper)
runner = CliRunner()
get_experiment_by_name_mock.return_value = type(
"obj", (object,), {"experiment_id": 47}
)
start_run_mock.return_value = namedtuple("InfoObject", "info")(
namedtuple("RunIdObject", "run_id")("MLFLOW_RUN_ID")
)
Expand Down

0 comments on commit ec4ac27

Please sign in to comment.