cb60d4f7
ci: run the suites against a real Postgres on the builder
93 test files across 16 packages had never run on builds.sr.ht. The manifest brings up a Postgres in the VM, exports SPECSRHT_TEST_PG and runs gofmt, go vet and `make test` before abuild. The DSN guard is the point of it. db/db_test.go, service/fixture_test.go and cmd/specsrht-migrate/main_test.go all gate on that variable, so an unset DSN does not fail anything — it skips 67 tests (counted, with and against a local Postgres) and leaves the build green over the whole persistence layer, the schema/migrations agreement check included. options="!check" in the APKBUILD means this task is the only place the suites run at all, so the guard is what makes that line true. TEST_TIMEOUT lands with it rather than after the first goroutine dump: the toolchain's default is a silent ten minutes.
Eugene Blikh <bigbes@gmail.com> — 2026-08-08 22:32:38 UTC
Commit cb60d4f754f4ea21121414f7e3fc8b10118c8ac4 —
view raw patch
Parent(s):
8255ff90
| File | Status | + | − |
|---|---|---|---|
.build.yml
|
M | +34 | |
APKBUILD
|
M | +7 | -1 |
Makefile
|
M | +20 | -1 |
docs/ci.md
|
M | +55 | -2 |