Fase 9 — Rifinitura e consegna in Docker #111

Merged
Alby96 merged 18 commits from fase-9 into main 2026-12-03 14:07:16 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 76c19d533b - Show all commits

No files matched your search

+2 -1
View File
@@ -14,7 +14,8 @@ jobs:
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
# exec: Docker mounts a tmpfs noexec by default, and the tests run the fake git and docker they write there.
options: --tmpfs /test-tmp:size=4g,exec
strategy:
fail-fast: false
matrix:
+1 -1
View File
@@ -10,7 +10,7 @@ Il 1° dicembre 2026 la CI di `main` (run 557, lavoro `test (sqlite)`) è fallit
## Decisione
1. **Cartella temporanea in memoria.** Il contenitore del lavoro `test` monta un `tmpfs` da 4 GB al massimo in `/test-tmp`, e le prove la usano come cartella temporanea (`TMPDIR`). Il codice di Anubis e le impostazioni di SQLite restano quelli veri.
1. **Cartella temporanea in memoria.** Il contenitore del lavoro `test` monta un `tmpfs` da 4 GB al massimo in `/test-tmp`, e le prove la usano come cartella temporanea (`TMPDIR`). Il codice di Anubis e le impostazioni di SQLite restano quelli veri. Il montaggio ha l'opzione `exec`: Docker monta un `tmpfs` senza permesso di esecuzione, e i test dello script di pubblicazione (Fase 9) scrivono ed eseguono lì i loro `git` e `docker` finti. Senza `exec` parte il `git` vero e 18 test cadono (provato il 3/12/2026 nel contenitore della CI: 18 su 37 senza, 37 su 37 con).
2. **Il test di `/health` aspetta.** Un computer fermo da più di 5 secondi *deve* risultare non disponibile: il test guarda la risposta a cui si arriva entro 30 secondi. Uno scheduler o un database davvero fermi lo fanno fallire ancora, e il messaggio dice quale.
## Alternative scartate