mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
fix: run Databases and FunctionsSchedule tests sequentially
Parallel test execution with paratest overwhelms the single databases worker when many tests create attributes simultaneously. Run these specific services sequentially with PHPUnit to ensure the worker can keep up with attribute processing jobs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2c5dee0fdd
commit
8dadcfeebe
1 changed files with 32 additions and 12 deletions
44
.github/workflows/tests.yml
vendored
44
.github/workflows/tests.yml
vendored
|
|
@ -220,12 +220,22 @@ jobs:
|
|||
|
||||
SERVICE_PATH="/usr/src/code/tests/e2e/Services/${{ matrix.service }}"
|
||||
|
||||
echo "Running with paratest (parallel) for: ${{ matrix.service }}"
|
||||
docker compose exec -T \
|
||||
-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) "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots
|
||||
# Use single process for Databases and FunctionsSchedule to avoid overwhelming the worker
|
||||
if [ "${{ matrix.service }}" == "Databases" ] || [ "${{ matrix.service }}" == "FunctionsSchedule" ]; then
|
||||
echo "Running sequentially for: ${{ matrix.service }}"
|
||||
docker compose exec -T \
|
||||
-e _APP_DATABASE_SHARED_TABLES \
|
||||
-e _APP_DATABASE_SHARED_TABLES_V1 \
|
||||
-e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \
|
||||
appwrite test "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots
|
||||
else
|
||||
echo "Running with paratest (parallel) for: ${{ matrix.service }}"
|
||||
docker compose exec -T \
|
||||
-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) "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots
|
||||
fi
|
||||
|
||||
- name: Failure Logs
|
||||
if: failure()
|
||||
|
|
@ -309,12 +319,22 @@ jobs:
|
|||
|
||||
SERVICE_PATH="/usr/src/code/tests/e2e/Services/${{ matrix.service }}"
|
||||
|
||||
echo "Running with paratest (parallel) for: ${{ matrix.service }}"
|
||||
docker compose exec -T \
|
||||
-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) "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots
|
||||
# Use single process for Databases and FunctionsSchedule to avoid overwhelming the worker
|
||||
if [ "${{ matrix.service }}" == "Databases" ] || [ "${{ matrix.service }}" == "FunctionsSchedule" ]; then
|
||||
echo "Running sequentially for: ${{ matrix.service }}"
|
||||
docker compose exec -T \
|
||||
-e _APP_DATABASE_SHARED_TABLES \
|
||||
-e _APP_DATABASE_SHARED_TABLES_V1 \
|
||||
-e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \
|
||||
appwrite test "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots
|
||||
else
|
||||
echo "Running with paratest (parallel) for: ${{ matrix.service }}"
|
||||
docker compose exec -T \
|
||||
-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) "$SERVICE_PATH" --exclude-group abuseEnabled --exclude-group screenshots
|
||||
fi
|
||||
|
||||
- name: Failure Logs
|
||||
if: failure()
|
||||
|
|
|
|||
Loading…
Reference in a new issue