ci: run the postgres tests in ci #61

Stängd
öppnade 2026-10-01 15:10:27 +00:00 av supernaut · 0 kommentarer
Ägare

Problem

The Postgres tests (webhook idempotency, withdrawal, sweep, invoice allocator) skip unless TEST_DATABASE_URL is set. CI has no Postgres, so 28 of 243 tests never run there, and billing.ts coverage reads about 10 %. These are the money paths.

Done when

ci.yml starts a throwaway Postgres 17 (service container or podman run), sets TEST_DATABASE_URL, and the DB tests run and gate the PR. A deliberately broken allocator fails CI.

## Problem The Postgres tests (webhook idempotency, withdrawal, sweep, invoice allocator) skip unless `TEST_DATABASE_URL` is set. CI has no Postgres, so 28 of 243 tests never run there, and `billing.ts` coverage reads about 10 %. These are the money paths. ## Done when `ci.yml` starts a throwaway Postgres 17 (service container or `podman run`), sets `TEST_DATABASE_URL`, and the DB tests run and gate the PR. A deliberately broken allocator fails CI.
supernaut lade till detta till projektet Bitborg Payment 2026-10-01 15:10:37 +00:00
supernaut refererade till detta ärende från en incheckning 2026-10-01 18:20:24 +00:00
supernaut refererade till detta ärende från en incheckning 2026-10-01 19:48:31 +00:00
supernaut refererade till detta ärende från en incheckning 2026-10-02 17:57:02 +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-payment#61
Ingen beskrivning angiven.