From aa369dc371de5e8b73226633dfad0f2d8ce8dd73 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 13 Feb 2026 09:16:27 +1300 Subject: [PATCH] fix: increase Sites activation timeout to 600s and add retry to testScopes MongoDB CI builds take longer to process the deployment queue, causing testSiteDomainReclaiming to timeout at 400s. Increase to 600s. testScopes has an intermittent 401 auth failure - add #[Retry(count: 3)] for resilience. Co-Authored-By: Claude Opus 4.6 --- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 1 + tests/e2e/Services/Sites/SitesBase.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index c1a4f7e8a9..bc64ea21c3 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -1776,6 +1776,7 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals(204, $user['headers']['status-code']); } + #[Retry(count: 3)] public function testScopes() { $functionId = $this->setupFunction([ diff --git a/tests/e2e/Services/Sites/SitesBase.php b/tests/e2e/Services/Sites/SitesBase.php index 23c1a40263..6d0bfbcb4c 100644 --- a/tests/e2e/Services/Sites/SitesBase.php +++ b/tests/e2e/Services/Sites/SitesBase.php @@ -76,7 +76,7 @@ trait SitesBase 'x-appwrite-key' => $this->getProject()['apiKey'], ])); $this->assertEquals($deploymentId, $site['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($site['body'], JSON_PRETTY_PRINT)); - }, 400000, 500); + }, 600000, 500); } return $deploymentId;