Keep the test databases of the CI in memory
ci / test (postgres) (push) Successful in 6m54s
ci / test (sqlite) (push) Successful in 5m17s
ci / test (postgres) (pull_request) Successful in 6m51s
ci / test (sqlite) (pull_request) Successful in 7m17s
ci / image (push) Successful in 1m0s
ci / image (pull_request) Successful in 1m40s

The disk of the runner stops for seconds under load, and the health check of a
test rightly answered "unavailable" after five. PostgreSQL was already spared
the syncs (ADR 0015); the SQLite tests now use a temporary folder in memory, and
the health test looks at the answer it settles on (ADR 0019).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-01 17:31:13 +01:00
1 parent 3da9b00f44
commit e8b3500db6
3 files changed
+42 -3

No files matched your search

+5 -1
View File
@@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:10.0
# The databases of the tests live in memory: the disk of the runner stops for seconds under load (ADR 0019).
options: --tmpfs /test-tmp:size=4g
strategy:
fail-fast: false
matrix:
@@ -50,7 +52,9 @@ jobs:
git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch -q --depth 1 origin "${{ github.sha }}"
git checkout -q FETCH_HEAD
- name: Check
run: sh ./tasks.sh check
run: |
df -h /test-tmp
TMPDIR=/test-tmp sh ./tasks.sh check
# The log of the PostgreSQL service, read through the Docker socket the runner mounts in the job (issue #98).
- name: PostgreSQL log
if: always() && matrix.db == 'postgres'