diff --git a/README.md b/README.md index cbcf0ac76c0..c8892e49f38 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Meet the Team

- 🎉 Version 0.51.0 is out. Check out the release notes + 🎉 Version 0.52.0 is out. Check out the release notes here.

diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index a4a5af2c6ac..8a9dd34bfb5 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,4 +1,48 @@ +# 0.52.0 + +This adds the ability to pass in pipeline parameters as YAML configuration and fixes a couple of minor issues affecting the W&B integration and the way expiring credentials are refreshed when service connectors are used. + +## Breaking Change + +The current pipeline YAML configurations are now being validated to ensure that configured parameters match what is available in the code. This means that if you have a pipeline that is configured with a parameter that has a different value that what is provided through code, the pipeline will fail to run. This is a breaking change, but it is a good thing as it will help you catch errors early on. + +This is an example of a pipeline configuration that will fail to run: + +```yaml +parameters: + some_param: 24 + +steps: + my_step: + parameters: + input_2: 42 +``` + +```python +# run.py +@step +def my_step(input_1: int, input_2: int) -> None: + pass + +@pipeline +def my_pipeline(some_param: int): + # here an error will be raised since `input_2` is + # `42` in config, but `43` was provided in the code + my_step(input_1=42, input_2=43) + +if __name__=="__main__": + # here an error will be raised since `some_param` is + # `24` in config, but `23` was provided in the code + my_pipeline(23) +``` + +## What's Changed +* Passing pipeline parameters as yaml config by @avishniakov in https://github.com/zenml-io/zenml/pull/2058 +* Side-effect free tests by @avishniakov in https://github.com/zenml-io/zenml/pull/2065 +* Fix various bugs by @stefannica in https://github.com/zenml-io/zenml/pull/2124 + +**Full Changelog**: https://github.com/zenml-io/zenml/compare/0.51.0...0.52.0 # 0.51.0 diff --git a/pyproject.toml b/pyproject.toml index d9dc65772de..98f3785678c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "zenml" -version = "0.51.0" +version = "0.52.0" packages = [{ include = "zenml", from = "src" }] description = "ZenML: Write production-ready ML code." authors = ["ZenML GmbH "] diff --git a/src/zenml/VERSION b/src/zenml/VERSION index c5d4cee36a1..4f9b378b40f 100644 --- a/src/zenml/VERSION +++ b/src/zenml/VERSION @@ -1 +1 @@ -0.51.0 +0.52.0 diff --git a/src/zenml/zen_server/deploy/helm/Chart.yaml b/src/zenml/zen_server/deploy/helm/Chart.yaml index e797dd1c6c9..b1fbbe7e273 100644 --- a/src/zenml/zen_server/deploy/helm/Chart.yaml +++ b/src/zenml/zen_server/deploy/helm/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: zenml -version: "0.51.0" +version: "0.52.0" description: Open source MLOps framework for portable production ready ML pipelines keywords: - mlops diff --git a/src/zenml/zen_server/deploy/helm/README.md b/src/zenml/zen_server/deploy/helm/README.md index 9073038ba0f..23fa57d6d41 100644 --- a/src/zenml/zen_server/deploy/helm/README.md +++ b/src/zenml/zen_server/deploy/helm/README.md @@ -20,8 +20,8 @@ ZenML is an open-source MLOps framework designed to help you create robust, main To install the ZenML chart directly from Amazon ECR, use the following command: ```bash -# example command for version 0.51.0 -helm install my-zenml oci://public.ecr.aws/zenml/zenml --version 0.51.0 +# example command for version 0.52.0 +helm install my-zenml oci://public.ecr.aws/zenml/zenml --version 0.52.0 ``` Note: Ensure you have OCI support enabled in your Helm client and that you are authenticated with Amazon ECR. diff --git a/src/zenml/zen_stores/migrations/versions/0.52.0_release.py b/src/zenml/zen_stores/migrations/versions/0.52.0_release.py new file mode 100644 index 00000000000..e71cab09ec7 --- /dev/null +++ b/src/zenml/zen_stores/migrations/versions/0.52.0_release.py @@ -0,0 +1,24 @@ +"""Release [0.52.0]. + +Revision ID: 0.52.0 +Revises: e5225281b4d3 +Create Date: 2023-12-12 17:15:11.532341 + +""" + + +# revision identifiers, used by Alembic. +revision = "0.52.0" +down_revision = "e5225281b4d3" +branch_labels = None +depends_on = None + + +def upgrade() -> None: + """Upgrade database schema and/or data, creating a new revision.""" + pass + + +def downgrade() -> None: + """Downgrade database schema and/or data back to the previous revision.""" + pass