From 511d738121a4a635812fd3b9ff7fc53c64eda735 Mon Sep 17 00:00:00 2001 From: Sayak Paul Date: Fri, 11 Apr 2025 14:06:52 +0530 Subject: [PATCH 1/2] [CI] relax tolerance for unclip further (#11268) relax tolerance for unclip further. --- tests/pipelines/unclip/test_unclip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pipelines/unclip/test_unclip.py b/tests/pipelines/unclip/test_unclip.py index 26a1bead01..834d97f30d 100644 --- a/tests/pipelines/unclip/test_unclip.py +++ b/tests/pipelines/unclip/test_unclip.py @@ -381,7 +381,7 @@ class UnCLIPPipelineFastTests(PipelineTesterMixin, unittest.TestCase): ] self._test_inference_batch_single_identical( - additional_params_copy_to_batched_inputs=additional_params_copy_to_batched_inputs, expected_max_diff=5e-3 + additional_params_copy_to_batched_inputs=additional_params_copy_to_batched_inputs, expected_max_diff=9.8e-3 ) def test_inference_batch_consistent(self): From 7054a34978e68bc2b7241378c07d938066c1aa64 Mon Sep 17 00:00:00 2001 From: Sayak Paul Date: Fri, 11 Apr 2025 14:19:46 +0530 Subject: [PATCH 2/2] do not use `DIFFUSERS_REQUEST_TIMEOUT` for notification bot (#11273) fix to a constant --- utils/notify_slack_about_release.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/notify_slack_about_release.py b/utils/notify_slack_about_release.py index 9d4d11f450..0c7737a48b 100644 --- a/utils/notify_slack_about_release.py +++ b/utils/notify_slack_about_release.py @@ -17,8 +17,6 @@ import os import requests -from ..src.diffusers.utils.constants import DIFFUSERS_REQUEST_TIMEOUT - # Configuration LIBRARY_NAME = "diffusers" @@ -28,7 +26,7 @@ SLACK_WEBHOOK_URL = os.getenv("SLACK_WEBHOOK_URL") def check_pypi_for_latest_release(library_name): """Check PyPI for the latest release of the library.""" - response = requests.get(f"https://pypi.org/pypi/{library_name}/json", timeout=DIFFUSERS_REQUEST_TIMEOUT) + response = requests.get(f"https://pypi.org/pypi/{library_name}/json", timeout=60) if response.status_code == 200: data = response.json() return data["info"]["version"] @@ -40,7 +38,7 @@ def check_pypi_for_latest_release(library_name): def get_github_release_info(github_repo): """Fetch the latest release info from GitHub.""" url = f"https://api.github.com/repos/{github_repo}/releases/latest" - response = requests.get(url, timeout=DIFFUSERS_REQUEST_TIMEOUT) + response = requests.get(url, timeout=60) if response.status_code == 200: data = response.json()