Skip to content

test: pin Postgres pool size in E2E factories#49

Merged
Theauxm merged 1 commit into
mainfrom
fix/e2e-pg-pool-pinning
May 4, 2026
Merged

test: pin Postgres pool size in E2E factories#49
Theauxm merged 1 commit into
mainfrom
fix/e2e-pg-pool-pinning

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 4, 2026

Summary

JobHunt/GameServer/EnergyHub E2E factories had Maximum Pool Size=10 but no idle pruning. Each test instantiates a fresh WebApplicationFactory, which gets its own pool, so over a long suite Postgres' max_connections gets exhausted in CI (saw 30 JobHunt E2E tests fail with Npgsql.NpgsqlException: The operation has timed out on the latest release run).

Drops pool size to 4 and adds Connection Idle Lifetime=1 + Connection Pruning Interval=1 so connections don't pile up between hosts. Same fix used in Trax.Api and Trax.Scheduler for the same root cause.

Test plan

  • All four E2E factory connection strings updated consistently

@Theauxm Theauxm merged commit 6e420b8 into main May 4, 2026
1 check passed
@Theauxm Theauxm deleted the fix/e2e-pg-pool-pinning branch May 4, 2026 23:19
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented May 6, 2026

This PR is included in version 1.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant