Harden the smoke test #7

Stängd
öppnade 2026-10-08 21:12:34 +00:00 av supernaut · 0 kommentarer
Ägare

What

scripts/smoke-test.sh publishes -p 9000:9000 on all interfaces, falls through silently when Postgres never gets ready, and uses an untracked Postgres tag. No shellcheck step runs although the script has a shellcheck directive.

Why

Two runs on one host collide. A dead Postgres shows up as a vague Keycloak error. The Postgres tag drifts from production.

Failing case

Postgres never becomes ready: the loop ends and the failure appears later in Keycloak logs.

Fix

Drop the publish or bind 127.0.0.1. Fail explicitly after the readiness loop. Track the Postgres tag with Renovate. Add a shellcheck step.

Done when

  • No fixed host port
  • Dead Postgres reports 'postgres not ready'
  • Postgres tag tracked
  • shellcheck runs in CI
## What `scripts/smoke-test.sh` publishes `-p 9000:9000` on all interfaces, falls through silently when Postgres never gets ready, and uses an untracked Postgres tag. No shellcheck step runs although the script has a shellcheck directive. ## Why Two runs on one host collide. A dead Postgres shows up as a vague Keycloak error. The Postgres tag drifts from production. ## Failing case Postgres never becomes ready: the loop ends and the failure appears later in Keycloak logs. ## Fix Drop the publish or bind `127.0.0.1`. Fail explicitly after the readiness loop. Track the Postgres tag with Renovate. Add a shellcheck step. ## Done when - [ ] No fixed host port - [ ] Dead Postgres reports 'postgres not ready' - [ ] Postgres tag tracked - [ ] shellcheck runs in CI
supernaut lade till detta till projektet Bitborg Keycloak 2026-10-08 21:14:31 +00:00
supernaut refererade till detta ärende från en incheckning 2026-10-13 06:00:52 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-keycloak#7
Ingen beskrivning angiven.