Turn off disk syncs on the CI test PostgreSQL (refs #98)
ci / test (postgres) (push) Successful in 3m13s
ci / test (sqlite) (push) Successful in 4m23s
ci / test (postgres) (pull_request) Successful in 3m41s
ci / test (sqlite) (pull_request) Successful in 4m28s
ci / image (push) Successful in 1m46s
ci / image (pull_request) Successful in 1m1s
ci / test (postgres) (push) Successful in 3m13s
ci / test (sqlite) (push) Successful in 4m23s
ci / test (postgres) (pull_request) Successful in 3m41s
ci / test (sqlite) (pull_request) Successful in 4m28s
ci / image (push) Successful in 1m46s
ci / image (pull_request) Successful in 1m1s
With the restarts gone, a rerun still failed 7 tests on read timeouts. The server log shows why: every DROP DATABASE of the tests forces an immediate checkpoint, one at a time, and on the runner's disk the sync alone took up to 37 seconds, so queued drops passed the client's 30-second timeout. The service is a throwaway, so initdb now sets fsync, synchronous_commit and full_page_writes off. docker-compose.yml and real databases keep them on. ADR 0015 updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
73f2345047
commit
74809068af
2 files changed
+21
-4
No files matched your search
@@ -23,6 +23,9 @@ jobs:
|
||||
POSTGRES_DB: anubis
|
||||
POSTGRES_USER: anubis
|
||||
POSTGRES_PASSWORD: anubis-ci
|
||||
# A throwaway server on a slow disk: without syncs to disk, the checkpoint that every DROP DATABASE of the
|
||||
# tests forces takes milliseconds instead of up to 37 seconds (ADR 0015). Never for a real database.
|
||||
POSTGRES_INITDB_ARGS: "--no-sync -c fsync=off -c synchronous_commit=off -c full_page_writes=off"
|
||||
# --init and a pg_isready that gives up before Docker does (ADR 0015, issue #98). Without them a health
|
||||
# check that outlives its timeout leaves pg_isready to PostgreSQL as PID 1, and its exit restarts the server.
|
||||
options: >-
|
||||
|
||||
Reference in new issue
Block a user