From ad4623f1e4f0a381139f04812b9dd48a43d6b658 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Fri, 22 May 2026 12:55:37 +0200 Subject: [PATCH] test: Bump apify-cli subprocess timeouts to 600s for heavier templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `apify push` waits server-side for the actor's Docker build to complete before returning, and the heavier templates (e.g. adaptive-parsel with a ~550 MB base image) consistently exceed the previous 120s budget — all 4 rerun attempts hit the timeout, so retries don't help. Bump every apify-cli subprocess timeout to 600s; the 1800s pytest-timeout still bounds a truly hung CLI. --- .../e2e/project_template/test_static_crawlers_templates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/project_template/test_static_crawlers_templates.py b/tests/e2e/project_template/test_static_crawlers_templates.py index f50107a8a9..6d892fa166 100644 --- a/tests/e2e/project_template/test_static_crawlers_templates.py +++ b/tests/e2e/project_template/test_static_crawlers_templates.py @@ -90,14 +90,14 @@ async def test_static_crawler_actor_at_apify( capture_output=True, check=True, cwd=tmp_path / actor_name, - timeout=120, + timeout=600, ) subprocess.run( # noqa: ASYNC221, S603 ['apify', 'init', '-y', actor_name], # noqa: S607 capture_output=True, check=True, cwd=tmp_path / actor_name, - timeout=120, + timeout=600, ) build_process = subprocess.run( # noqa: ASYNC221 @@ -108,7 +108,7 @@ async def test_static_crawler_actor_at_apify( # Prevent git from walking up into the surrounding project's .git/ when running under # a basetemp inside the repo (see --basetemp in the e2e-templates-tests poe task). env={**os.environ, 'GIT_CEILING_DIRECTORIES': str(tmp_path)}, - timeout=120, + timeout=600, ) # Get actor ID from build log actor_id_regexp = re.compile(r'https:\/\/console\.apify\.com\/actors\/(.*)#\/builds\/\d*\.\d*\.\d*')