Jellyfin.Database.Tests.PostgreSQL is not run in CI and has 3 failing tests #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Context: multi-replica stateless deployment (two 2-replica apps,
cheeztvandfafflix, each one PostgreSQL plus valkey, no sticky sessions). Tracking: #12.Problem
.woodpecker/ci.yaml'spostgres-migration-chainstep is scoped totests/Jellyfin.Server.Tests, soJellyfin.Database.Tests.PostgreSQLnever runs in CI at all.Run against PostgreSQL 16 it fails three tests, identically on
main:PurgeDatabase_EmptiesTablesAndResetsFkRole— EF 10 scalar-query column naming.Crud_DisplayPreferences— FK violation from the test's own fixture data.RunScheduledOptimisation_ExecutesWithoutError— passes in isolation; collateral from shared container state inPostgreSqlProviderTests.The PostgreSQL provider going unexercised in CI is the direct reason three separate bugs reached production.
Proposal
Convert the project to the in-step
PostgreSqlTestServerpattern, give each test its own database so shared container state cannot leak between tests, fix the three failures, and fold the project into the existingpostgres-migration-chainstep rather than adding a second step and a second container.Acceptance
postgres-migration-chainrunsJellyfin.Database.Tests.PostgreSQL, and the whole project passes.RunScheduledOptimisation_ExecutesWithoutErrorpasses both in isolation and in the full run.