Skip to content

Commit

Permalink
Prepare release 0.52.0 (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica authored Dec 12, 2023
1 parent 1494162 commit 04fb3ca
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<a href="https://www.zenml.io/company#team">Meet the Team</a>
<br />
<br />
🎉 Version 0.51.0 is out. Check out the release notes
🎉 Version 0.52.0 is out. Check out the release notes
<a href="https://github.com/zenml-io/zenml/releases">here</a>.
<br />
<br />
Expand Down
44 changes: 44 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,48 @@
<!-- markdown-link-check-disable -->
# 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

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 = "zenml"
version = "0.51.0"
version = "0.52.0"
packages = [{ include = "zenml", from = "src" }]
description = "ZenML: Write production-ready ML code."
authors = ["ZenML GmbH <info@zenml.io>"]
Expand Down
2 changes: 1 addition & 1 deletion src/zenml/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.51.0
0.52.0
2 changes: 1 addition & 1 deletion src/zenml/zen_server/deploy/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/zenml/zen_server/deploy/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
24 changes: 24 additions & 0 deletions src/zenml/zen_stores/migrations/versions/0.52.0_release.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 04fb3ca

Please sign in to comment.