From bc9b52ef7e5113d297c9dc06cf56981d51bb593d Mon Sep 17 00:00:00 2001 From: Maxim Vafin Date: Mon, 30 Oct 2023 15:27:00 +0100 Subject: [PATCH] Increase timeout for hub tests (#20764) --- .github/workflows/linux.yml | 4 ++-- tests/model_hub_tests/torch_tests/test_hf_transformers.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 7d346f98911..06825e2ece1 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1203,7 +1203,7 @@ jobs: run: shell: bash runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-20.04-16-cores' || 'ubuntu-20.04-8-cores'}} - timeout-minutes: ${{ github.event_name == 'schedule' && 300 || 5 }} + timeout-minutes: ${{ github.event_name == 'schedule' && 400 || 5 }} # TODO: Switch back to self-hosted runners # container: # image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04 @@ -1280,7 +1280,7 @@ jobs: PyTorch_Models_Tests: name: PyTorch Models tests needs: Build - timeout-minutes: ${{ github.event_name == 'schedule' && 300 || 30 }} + timeout-minutes: ${{ github.event_name == 'schedule' && 400 || 30 }} defaults: run: shell: bash diff --git a/tests/model_hub_tests/torch_tests/test_hf_transformers.py b/tests/model_hub_tests/torch_tests/test_hf_transformers.py index 8e3ea5ecfdd..0dfef7deaae 100644 --- a/tests/model_hub_tests/torch_tests/test_hf_transformers.py +++ b/tests/model_hub_tests/torch_tests/test_hf_transformers.py @@ -53,7 +53,7 @@ class TestTransformersModel(TestConvertModel): from PIL import Image import requests - self.infer_timeout = 1200 + self.infer_timeout = 800 url = "http://images.cocodataset.org/val2017/000000039769.jpg" self.image = Image.open(requests.get(url, stream=True).raw)