test(db): run the PostgreSQL provider tests in CI #31
Reference in New Issue
Block a user
Delete Branch "benvin/pg-tests-in-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The fork runs on PostgreSQL in production, but Jellyfin.Database.Tests.PostgreSQL ran in neither CI step: build-test filters out its RequiresDocker trait and postgres-migration-chain never named the project. Three bugs reached production through that gap, and two of the project's own tests had been red the whole time.
Closes #23
tests/Jellyfin.Database.Tests.PostgreSQL/Jellyfin.Database.Tests.PostgreSQL.csproj:23 — ProjectReference on Jellyfin.Server.Tests.csproj drags in the whole Jellyfin.Server dependency graph solely to reuse PostgreSqlTestServer.cs: this project's build output grows 44M → 754M and the full-solution build grows 5.7G → 6.4G (measured), eating the workspace-volume headroom .woodpecker/ci.yaml:25 still documents as 4.1G (now ~3.4G) → replace with a linked
<Compile Include="../Jellyfin.Server.Tests/Migrations/PostgreSqlTestServer.cs" Link="PostgreSqlTestServer.cs" />plus direct Testcontainers.PostgreSql/DotNet.Testcontainers.Builders package refs, and update the ci.yaml headroom comment.No findings.