Skip to content

Commit

Permalink
Prepare 0.57.0-rc2 (#2651)
Browse files Browse the repository at this point in the history
* Prepare 0.57.0-rc2

* align versions with expected format

* align versions with expected format

* extend CSP for stacks video
  • Loading branch information
avishniakov committed Apr 30, 2024
1 parent bd397ba commit ecfbdce
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<a href="https://github.com/zenml-io/zenml-projects">Projects Showcase</a>
<br />
<br />
🎉 Version 0.57.0rc1 is out. Check out the release notes
🎉 Version 0.57.0rc2 is out. Check out the release notes
<a href="https://github.com/zenml-io/zenml/releases">here</a>.
<br />
🖥️ Download our VS Code Extension <a href="https://marketplace.visualstudio.com/items?itemName=ZenML.zenml-vscode">here</a>.
Expand Down
16 changes: 16 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<!-- markdown-link-check-disable -->

# 0.57.0rc2

This release candidate introduces support for the fully new ZenML Dashboard experience,
a number of improvement to documentation and a few bug fixes.

## What's Changed
* Fix CI by @strickvl in https://github.com/zenml-io/zenml/pull/2645
* Misc/prepare release 0.57.0rc1 by @avishniakov in https://github.com/zenml-io/zenml/pull/2646
* Add rate limiting to user password reset operations by @stefannica in https://github.com/zenml-io/zenml/pull/2643
* Set zenml server name to default if not customized by @stefannica in https://github.com/zenml-io/zenml/pull/2647
* Docker release fix by @avishniakov in https://github.com/zenml-io/zenml/pull/2649
* Fix dashboard urls by @schustmi in https://github.com/zenml-io/zenml/pull/2648


**Full Changelog**: https://github.com/zenml-io/zenml/compare/0.57.0rc1...0.57.0-rc2

# 0.57.0rc1

This release candidate introduces support for the fully new ZenML Dashboard experience,
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.57.0rc1"
version = "0.57.0rc2"
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 scripts/install-dashboard.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# TODO: remove me after release is stable
TAG="v0.17.0-rc1"
TAG="v0.17.0-rc2"


APP_NAME="zenml-dashboard"
Expand Down
2 changes: 1 addition & 1 deletion src/zenml/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.57.0rc1
0.57.0rc2
22 changes: 17 additions & 5 deletions src/zenml/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,29 @@ def handle_int_env_var(var: str, default: int = 0) -> int:
DEFAULT_ZENML_SERVER_SECURE_HEADERS_XFO = "SAMEORIGIN"
DEFAULT_ZENML_SERVER_SECURE_HEADERS_XXP = "0"
DEFAULT_ZENML_SERVER_SECURE_HEADERS_CONTENT = "nosniff"
_csp_script_src_urls = ["https://widgets-v3.featureos.app"]
_csp_connect_src_urls = ["https://sdkdocs.zenml.io", "https://hubapi.zenml.io"]
_csp_img_src_urls = [
"https://public-flavor-logos.s3.eu-central-1.amazonaws.com",
"https://avatar.vercel.sh",
]
_csp_frame_src_urls = [
"https://zenml.hellonext.co",
"https://sdkdocs.zenml.io",
"https://widgets-v3.hellonext.co",
"https://widgets-v3.featureos.app",
"https://zenml.portal.trainn.co",
]
DEFAULT_ZENML_SERVER_SECURE_HEADERS_CSP = (
"default-src 'none'; "
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://widgets-v3.featureos.app; "
"connect-src 'self' https://sdkdocs.zenml.io https://hubapi.zenml.io; "
"img-src 'self' data: https://public-flavor-logos.s3.eu-central-1.amazonaws.com"
" https://avatar.vercel.sh; "
f"script-src 'self' 'unsafe-inline' 'unsafe-eval' {' '.join(_csp_script_src_urls)}; "
f"connect-src 'self' {' '.join(_csp_connect_src_urls)}; "
f"img-src 'self' data: {' '.join(_csp_img_src_urls)}; "
"style-src 'self' 'unsafe-inline'; "
"base-uri 'self'; "
"form-action 'self'; "
"font-src 'self';"
"frame-src https://zenml.hellonext.co https://sdkdocs.zenml.io https://widgets-v3.hellonext.co https://widgets-v3.featureos.app"
f"frame-src {' '.join(_csp_frame_src_urls)}"
)
DEFAULT_ZENML_SERVER_SECURE_HEADERS_REFERRER = "no-referrer-when-downgrade"
DEFAULT_ZENML_SERVER_SECURE_HEADERS_CACHE = (
Expand Down
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.57.0rc1"
version: "0.57.0-rc2"
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.57.0rc1
helm install my-zenml oci://public.ecr.aws/zenml/zenml --version 0.57.0rc1
# example command for version 0.57.0-rc2
helm install my-zenml oci://public.ecr.aws/zenml/zenml --version 0.57.0-rc2
```

Note: Ensure you have OCI support enabled in your Helm client and that you are authenticated with Amazon ECR.
Expand Down
23 changes: 23 additions & 0 deletions src/zenml/zen_stores/migrations/versions/0.57.0.rc2_release.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""Release [0.57.0rc2].
Revision ID: 0.57.0rc2
Revises: 0.57.0rc1
Create Date: 2024-04-30 13:13:47.380816
"""

# revision identifiers, used by Alembic.
revision = "0.57.0rc2"
down_revision = "0.57.0rc1"
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 ecfbdce

Please sign in to comment.