From 8be633a140e4144702eef9c35d196b5e8ac44e7c Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sat, 21 Feb 2026 00:38:39 +1300 Subject: [PATCH] fix: remove --functional from paratest to use class-level parallelism With --functional mode, every test method gets its own process with no static cache sharing. This causes each method to independently create databases, collections, and attributes, flooding the serial database worker queue. Without --functional, each test class shares static caches between methods, dramatically reducing schema operation count. Also reverts _APP_WORKERS_NUM change since worker must remain serial. Co-Authored-By: Claude Opus 4.6 --- .env | 1 - .github/workflows/tests.yml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.env b/.env index d08d69fba7..9a8613f685 100644 --- a/.env +++ b/.env @@ -2,7 +2,6 @@ _APP_ENV=development _APP_EDITION=self-hosted _APP_LOCALE=en _APP_WORKER_PER_CORE=6 -_APP_WORKERS_NUM=4 _APP_COMPRESSION_ENABLED=enabled _APP_COMPRESSION_MIN_SIZE_BYTES=1024 _APP_CONSOLE_WHITELIST_ROOT=disabled diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f752128234..faf47bbcd0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -282,7 +282,7 @@ jobs: -e _APP_DB_PORT="${{ env._APP_DB_PORT }}" \ -e _APP_DB_SCHEMA=appwrite \ -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ - appwrite vendor/bin/paratest --processes $(nproc) --functional "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots --exclude-group ciIgnore --log-junit tests/e2e/Services/${{ matrix.service }}/junit.xml + appwrite vendor/bin/paratest --processes $(nproc) "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots --exclude-group ciIgnore --log-junit tests/e2e/Services/${{ matrix.service }}/junit.xml - name: Failure Logs if: failure() @@ -380,7 +380,7 @@ jobs: -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ - appwrite vendor/bin/paratest --processes $(nproc) --functional "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots --exclude-group ciIgnore --log-junit tests/e2e/Services/${{ matrix.service }}/junit.xml + appwrite vendor/bin/paratest --processes $(nproc) "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots --exclude-group ciIgnore --log-junit tests/e2e/Services/${{ matrix.service }}/junit.xml - name: Failure Logs if: failure()