From b453936f81b13bd61d49f5b189bc2627be2dd222 Mon Sep 17 00:00:00 2001 From: Devis Lucato Date: Mon, 15 May 2023 11:37:12 -0700 Subject: [PATCH] Bump python release number - 0.2.8.dev (#1000) * New version number for next SK Python release * Change integration tests retry logic to progressively back off from 2 to 7 secs --- python/pyproject.toml | 2 +- python/tests/integration/completions/e2e_text_completion.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 58cbb9e31165..d3dec1b4843f 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-kernel" -version = "0.2.7.dev" +version = "0.2.8.dev" description = "" authors = ["Microsoft "] readme = "pip/README.md" diff --git a/python/tests/integration/completions/e2e_text_completion.py b/python/tests/integration/completions/e2e_text_completion.py index 5e30cef42201..14d7fc0f789f 100644 --- a/python/tests/integration/completions/e2e_text_completion.py +++ b/python/tests/integration/completions/e2e_text_completion.py @@ -12,7 +12,9 @@ logger = logging.getLogger() -async def retry(func, retries=15, delay=1): +async def retry(func, retries=20): + min_delay = 2 + max_delay = 7 for i in range(retries): try: result = str(await func()) @@ -23,7 +25,7 @@ async def retry(func, retries=15, delay=1): logger.error(f"Retry {i + 1}: {e}") if i == retries - 1: # Last retry raise - time.sleep(delay) + time.sleep(max(min(i, max_delay), min_delay)) async def summarize_function_test(kernel: sk.Kernel):