From 085ce949f3dbf3127267414d36c2469abc7b71de Mon Sep 17 00:00:00 2001 From: Stefan Nica Date: Wed, 10 Jul 2024 19:36:27 +0200 Subject: [PATCH 1/4] Fix vulnerabilities --- template/gradio/requirements.txt | 2 +- template/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/gradio/requirements.txt b/template/gradio/requirements.txt index 4ae46ad..1bddfdf 100644 --- a/template/gradio/requirements.txt +++ b/template/gradio/requirements.txt @@ -7,6 +7,6 @@ datasets==2.12.0 numpy==1.22.4 pandas==1.5.3 session_info==1.0.0 -scikit-learn==1.2.2 +scikit-learn==1.5.0 transformers==4.28.1 IPython==7.34.0 \ No newline at end of file diff --git a/template/requirements.txt b/template/requirements.txt index ee4e7af..f7f9817 100644 --- a/template/requirements.txt +++ b/template/requirements.txt @@ -1,4 +1,4 @@ torchvision accelerate gradio -zenml[server]==0.56.3 +zenml[server]>=0.56.3 From a03fbad3a99ddd97ff2f52f8819902d036db289d Mon Sep 17 00:00:00 2001 From: Andrei Vishniakov <31008759+avishniakov@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:40:54 +0200 Subject: [PATCH 2/4] try/pass windows tests clean-up --- tests/conftest.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index aaec33c..5ec3260 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,6 +14,7 @@ import os +import sys import shutil from typing import Generator @@ -99,4 +100,10 @@ def clean_zenml_client( # remove all traces, and change working directory back to base path os.chdir(orig_cwd) - shutil.rmtree(str(tmp_path)) + if sys.platform == "win32": + try: + shutil.rmtree(str(tmp_path)) + except: + pass + else: + shutil.rmtree(str(tmp_path)) From 51daa37dffb96e7a25919743960dfe4e42ca4034 Mon Sep 17 00:00:00 2001 From: Andrei Vishniakov <31008759+avishniakov@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:42:53 +0200 Subject: [PATCH 3/4] no fail-fast in tests --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 230ed9c..20b6285 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: run-tests: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: stack-name: [local] os: [windows-latest, ubuntu-latest, macos-13] From 351c0fe787524d7874ce1403759d04afa3abc3fa Mon Sep 17 00:00:00 2001 From: Andrei Vishniakov <31008759+avishniakov@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:22:35 +0200 Subject: [PATCH 4/4] coderabbitai --- tests/conftest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 5ec3260..d2be666 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -13,6 +13,7 @@ # permissions and limitations under the License. +import contextlib import os import sys import shutil @@ -101,9 +102,7 @@ def clean_zenml_client( # remove all traces, and change working directory back to base path os.chdir(orig_cwd) if sys.platform == "win32": - try: + with contextlib.suppress(Exception): shutil.rmtree(str(tmp_path)) - except: - pass else: shutil.rmtree(str(tmp_path))