Improve CI/CD flaky tests

This commit is contained in:
Matej Bačo
2025-02-03 11:38:36 +01:00
parent 3b961d18f9
commit 3aafceab40
5 changed files with 6 additions and 15 deletions
+3
View File
@@ -168,6 +168,9 @@ jobs:
export _APP_DATABASE_SHARED_TABLES=
export _APP_DATABASE_SHARED_TABLES_V1=
fi
echo 'Sleep 1 minute, as temporary fix for v4rc executor startup (image pulling)'
sleep 60
docker compose exec -T \
-e _APP_DATABASE_SHARED_TABLES \
-12
View File
@@ -7,25 +7,19 @@ use Appwrite\Event\Delete;
use Appwrite\Event\Event;
use Appwrite\Event\Func;
use Appwrite\Event\Usage;
use Appwrite\Event\Validator\FunctionEvent;
use Appwrite\Extend\Exception;
use Appwrite\Extend\Exception as AppwriteException;
use Appwrite\Functions\Validator\Headers;
use Appwrite\Functions\Validator\RuntimeSpecification;
use Appwrite\Messaging\Adapter\Realtime;
use Appwrite\Platform\Tasks\ScheduleExecutions;
use Appwrite\SDK\AuthType;
use Appwrite\SDK\ContentType;
use Appwrite\SDK\Method;
use Appwrite\SDK\MethodType;
use Appwrite\SDK\Response as SDKResponse;
use Appwrite\Task\Validator\Cron;
use Appwrite\Utopia\Database\Validator\CustomId;
use Appwrite\Utopia\Database\Validator\Queries\Deployments;
use Appwrite\Utopia\Database\Validator\Queries\Executions;
use Appwrite\Utopia\Database\Validator\Queries\Functions;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model\Rule;
use Executor\Executor;
use MaxMind\Db\Reader;
use Utopia\App;
@@ -43,20 +37,14 @@ use Utopia\Database\Query;
use Utopia\Database\Validator\Authorization;
use Utopia\Database\Validator\Datetime as DatetimeValidator;
use Utopia\Database\Validator\Query\Cursor;
use Utopia\Database\Validator\Roles;
use Utopia\Database\Validator\UID;
use Utopia\Storage\Device;
use Utopia\Storage\Validator\File;
use Utopia\Storage\Validator\FileExt;
use Utopia\Storage\Validator\FileSize;
use Utopia\Storage\Validator\Upload;
use Utopia\Swoole\Request;
use Utopia\System\System;
use Utopia\Validator\AnyOf;
use Utopia\Validator\ArrayList;
use Utopia\Validator\Assoc;
use Utopia\Validator\Boolean;
use Utopia\Validator\Nullable;
use Utopia\Validator\Range;
use Utopia\Validator\Text;
use Utopia\Validator\WhiteList;
+1 -1
View File
@@ -1285,7 +1285,7 @@ App::wildcard()
});
foreach (Config::getParam('services', []) as $service) {
if(!empty($service['controller'])) {
if (!empty($service['controller'])) {
include_once $service['controller'];
}
}
@@ -2,7 +2,6 @@
namespace Appwrite\Platform\Modules\Functions\Http\Functions;
use Utopia\Database\Exception\Query as QueryException;
use Appwrite\Extend\Exception;
use Appwrite\Platform\Modules\Compute\Base;
use Appwrite\SDK\AuthType;
@@ -12,6 +11,7 @@ use Appwrite\Utopia\Database\Validator\Queries\Functions;
use Appwrite\Utopia\Response;
use Utopia\Database\Database;
use Utopia\Database\Document;
use Utopia\Database\Exception\Query as QueryException;
use Utopia\Database\Query;
use Utopia\Database\Validator\Query\Cursor;
use Utopia\Platform\Action;
+1 -1
View File
@@ -145,7 +145,7 @@ class Executor
], [], true, 30);
// Temporary fix for race condition
if($response['headers']['status-code'] === 500 && \str_contains($response['body']['message'], 'already in progress')) {
if ($response['headers']['status-code'] === 500 && \str_contains($response['body']['message'], 'already in progress')) {
return true; // OK, removal already in progress
}