CI: Trying to analyze Psql CI fails

This commit is contained in:
Griatch 2026-02-14 19:39:12 +01:00
parent d6c7c197bc
commit 3a8be92acc
3 changed files with 27 additions and 2 deletions

View file

@ -46,7 +46,18 @@ DATABASES = {
"PASSWORD": "password",
"HOST": "localhost",
"PORT": "", # use default
"TEST": {"NAME": "default"},
# Fail fast in CI if queries block or run unreasonably long so hangs
# produce actionable errors instead of job-level timeout cancellations.
"OPTIONS": {
"options": (
"-c lock_timeout=30000 "
"-c statement_timeout=300000 "
"-c idle_in_transaction_session_timeout=60000"
)
},
# Keep this explicit and distinct from the default alias/database to avoid
# any ambiguity when using Django's test runner in CI.
"TEST": {"NAME": "test_evennia"},
}
}