From f83f64ffd7f1350ac732f2b2e33639c1c932c536 Mon Sep 17 00:00:00 2001 From: Aaron Pham <29749331+aarnphm@users.noreply.github.com> Date: Wed, 22 Nov 2023 05:00:33 -0500 Subject: [PATCH] fix(infra): setup higher timer for building container images (#723) * fix(infra): setup higher timer for building container images Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * chore: remove invalid tests Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --------- Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- openllm-python/tests/configuration_test.py | 21 --------------------- tools/run-release-action | 3 ++- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/openllm-python/tests/configuration_test.py b/openllm-python/tests/configuration_test.py index cde032fa..fafa4098 100644 --- a/openllm-python/tests/configuration_test.py +++ b/openllm-python/tests/configuration_test.py @@ -1,7 +1,6 @@ from __future__ import annotations import contextlib import os -import sys import typing as t from unittest import mock @@ -15,26 +14,6 @@ from openllm_core._configuration import GenerationConfig, ModelSettings, field_e from ._strategies._configuration import make_llm_config, model_settings -# XXX: @aarnphm fixes TypedDict behaviour in 3.11 -@pytest.mark.skipif( - sys.version_info[:2] == (3, 11), reason='TypedDict in 3.11 behaves differently, so we need to fix this' -) -def test_missing_default(): - with pytest.raises(ValueError, match='Missing required fields *'): - make_llm_config('MissingDefaultId', {'name_type': 'lowercase', 'requirements': ['bentoml']}) - with pytest.raises(ValueError, match='Missing required fields *'): - make_llm_config('MissingModelId', {'default_id': 'huggingface/t5-tiny-testing', 'requirements': ['bentoml']}) - with pytest.raises(ValueError, match='Missing required fields *'): - make_llm_config( - 'MissingArchitecture', - { - 'default_id': 'huggingface/t5-tiny-testing', - 'model_ids': ['huggingface/t5-tiny-testing'], - 'requirements': ['bentoml'], - }, - ) - - def test_forbidden_access(): cl_ = make_llm_config( 'ForbiddenAccess', diff --git a/tools/run-release-action b/tools/run-release-action index c9bed983..7eb00391 100755 --- a/tools/run-release-action +++ b/tools/run-release-action @@ -101,6 +101,7 @@ while true; do sleep 10 done -sleep 5 +echo "Sleeping for 15 minutes to allow the release to propagate and PyPI to be published..." +sleep 900 echo "Building OpenLLM container for ${RELEASE_TAG}..." gh workflow run build.yml -R bentoml/openllm -r "${RELEASE_TAG}"