ci: the integration lane runs only packages with database tests, built in parallel first
release / go (push) Successful in 1m52s
release / web (push) Failing after 5s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m15s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 4m8s
release / android (push) Canceled after 4m33s

The integration job ran `go test -p 1 -race ./...`: every package, one at
a time, including 18 with no database test whose unit tests the go lane
had already run. -p 1 also serialized compiling, about 50s before the
first test ran.

ci/db-test-packages.sh lists the packages whose tests reach Postgres
(through internal/dbtest or MINSTREL_TEST_DATABASE_URL); a package that
mentions neither cannot run a database test. The job builds those test
binaries with full parallelism (-run '^$'), then runs them serially as
before. make test-integration uses the same list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 10:19:56 -05:00
co-authored by Claude Opus 5.5
parent 56285881aa
commit 7fe0c68899
5 changed files with 41 additions and 18 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ Minstrel is not affiliated with or endorsed by ListenBrainz, MusicBrainz or Subs
- **Backend:** `docker compose up` in this repo runs Postgres and Minstrel on `:4533`.
- **Web:** `cd web && npm install && npm run dev` starts Vite on `:5173`. It proxies `/api/*` and `/rest/*` to `:4533`.
- **Tests:** `make test-short` runs the unit tests. `make test-integration` also runs the database tests, against a separate `minstrel_test` database so your dev data is never truncated.
- **Tests:** `make test-short` runs the unit tests. `make test-integration` runs the database tests, against a separate `minstrel_test` database so your dev data is never truncated.
- **Image:** `docker build -t minstrel .` builds the web app and embeds it in the server binary.
- **Branches:** work lands on `dev`; `main` changes through pull requests from `dev`.