ci: smoke test dell'immagine senza falsi errori di pipe #123

Merged
Alby96 merged 1 commits from ci/smoke-test-pipe into main 2026-11-12 14:01:14 +01:00
Owner

Il job Docker image della CI su main dopo il merge di M4 (run 236) è fallito anche se il container era pronto (/health ready, pagina di accesso servita).

Causa: curl ... /login | grep -q "Accedi" con pipefail. grep -q esce alla prima corrispondenza e chiude la pipe, curl termina con errore di scrittura (exit 23) e il passo fallisce. Dipende dai tempi: lo stesso commit era passato sulla PR #121.

Correzione: risposta e intestazioni vengono lette in una variabile e poi cercate con grep -q <<<. Nessun cambiamento al prodotto.

🤖 Generated with Claude Code

Il job *Docker image* della CI su `main` dopo il merge di M4 (run 236) è fallito anche se il container era pronto (`/health` ready, pagina di accesso servita). **Causa:** `curl ... /login | grep -q "Accedi"` con `pipefail`. `grep -q` esce alla prima corrispondenza e chiude la pipe, curl termina con errore di scrittura (exit 23) e il passo fallisce. Dipende dai tempi: lo stesso commit era passato sulla PR #121. **Correzione:** risposta e intestazioni vengono lette in una variabile e poi cercate con `grep -q <<<`. Nessun cambiamento al prodotto. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alby96 added 1 commit 2026-11-12 13:44:40 +01:00
ci: read the login page before grepping it in the image smoke test
CI / Build and test (SQLite) (pull_request) Successful in 2m44s
CI / PostgreSQL 16 integration (pull_request) Skipped
CI / PostgreSQL 17 integration (pull_request) Skipped
CI / YAML check (pull_request) Successful in 6s
CI / Docker image (pull_request) Successful in 1m28s
5ba28483a8
The Docker image job failed on main after the M4 merge although the
container was ready: grep -q stops at the first match and closes the pipe,
curl then fails with a write error (exit 23) and pipefail fails the step.
It depends on timing, which is why the same commit passed on the pull
request. The response and the headers are now read into variables first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 merged commit fa9304834a into main 2026-11-12 14:01:14 +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/Khaemhat#123