fix: Add connect_timeout to PostgreSQL DSN and add server logs to CI

PDO ATTR_TIMEOUT does not control connection timeout for the pgsql driver.
Without connect_timeout in the DSN, the PDO constructor blocks indefinitely
if PostgreSQL isn't ready, which blocks the Swoole master process event loop
(since coroutine hooks are not enabled in http.php) and prevents all HTTP
request dispatching.

Also add appwrite server logs to CI failure output for debugging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-02-13 03:17:48 +13:00
co-authored by Claude Opus 4.6
parent 9b5695a21b
commit fc893e1c7e
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -303,6 +303,8 @@ jobs:
- name: Failure Logs
if: failure()
run: |
echo "=== Appwrite Server Logs ==="
docker compose logs appwrite
echo "=== Appwrite Worker Builds Logs ==="
docker compose logs appwrite-worker-builds
echo "=== OpenRuntimes Executor Logs ==="