CI: anche i dati del servizio PostgreSQL stanno in memoria #112

Merged
Alby96 merged 1 commits from ci-postgres-ram into main 2026-12-03 15:33:30 +01:00
Owner

Nella CI della Fase 9 (#111, corsa 576) il lavoro PostgreSQL è caduto una volta su un timeout di lettura mentre un test si collegava al database. Il registro del servizio mostrava il disco dell'esecutore fermo: un checkpoint di 25 secondi anche con fsync spento (ADR 0015) e un DROP DATABASE … WITH (FORCE) che aspettava un processo bloccato.

Cosa cambia

  • Il servizio postgres:18 della CI monta un tmpfs da 1 GB su /var/lib/postgresql, la cartella che in PostgreSQL 18 contiene i dati (/var/lib/postgresql/18/docker). Immagine e impostazioni dell'ADR 0015 restano quelle.
  • ADR 0019: aggiornamento del 3 dicembre 2026 con il motivo e la prova. STATE.md aggiornato.

Prove

  • In locale, nel contenitore della CI contro postgres:18 con le stesse opzioni: 706 test superati su 709 (3 ignorati), picco di 295 MB nel tmpfs, nessuno stallo nel registro del servizio.
  • tasks check: 709 test, 683 superati, 26 ignorati.

Fuori dalla CI non cambia niente.

🤖 Generated with Claude Code

Nella CI della Fase 9 (#111, corsa 576) il lavoro PostgreSQL è caduto una volta su un timeout di lettura mentre un test si collegava al database. Il registro del servizio mostrava il disco dell'esecutore fermo: un checkpoint di 25 secondi anche con `fsync` spento (ADR 0015) e un `DROP DATABASE … WITH (FORCE)` che aspettava un processo bloccato. **Cosa cambia** - Il servizio `postgres:18` della CI monta un `tmpfs` da 1 GB su `/var/lib/postgresql`, la cartella che in PostgreSQL 18 contiene i dati (`/var/lib/postgresql/18/docker`). Immagine e impostazioni dell'ADR 0015 restano quelle. - ADR 0019: aggiornamento del 3 dicembre 2026 con il motivo e la prova. `STATE.md` aggiornato. **Prove** - In locale, nel contenitore della CI contro `postgres:18` con le stesse opzioni: 706 test superati su 709 (3 ignorati), picco di 295 MB nel `tmpfs`, nessuno stallo nel registro del servizio. - `tasks check`: 709 test, 683 superati, 26 ignorati. Fuori dalla CI non cambia niente. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alby96 added 1 commit 2026-12-03 14:33:08 +01:00
Keep the data of the CI's PostgreSQL service in memory
ci / test (postgres) (push) Successful in 5m50s
ci / test (sqlite) (push) Successful in 5m11s
ci / test (postgres) (pull_request) Successful in 5m40s
ci / test (sqlite) (pull_request) Successful in 5m0s
ci / image (push) Successful in 2m37s
ci / image (pull_request) Successful in 1m0s
46e4a2bf6a
The PostgreSQL job of the Phase 9 CI failed once on a read timeout while a
test connected: the service log showed the runner's disk stalled, with a
25-second checkpoint even with fsync off and a forced DROP DATABASE
waiting on a stuck backend. The data of the service now live on a tmpfs
at /var/lib/postgresql, which holds PGDATA in PostgreSQL 18, like the
SQLite test databases already do (ADR 0019).

Tried in the CI's SDK container against postgres:18 with the same
options: 706 tests passed of 709 (3 skipped), peak use 295 MB, no stall.
The limit is 1 GB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 merged commit 3c57b3e84c into main 2026-12-03 15:33:30 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BalboSoft/Anubis#112