Skip to content

feat(dev): add ephemeral PostgreSQL for local runs - #68

Merged
denyrt merged 2 commits into
mainfrom
feat/ephemeral-postgres-for-local-runs
Dec 3, 2026
Merged

denyrt merged 2 commits into
mainfrom
feat/ephemeral-postgres-for-local-runs

Conversation

@denyrt

@denyrt denyrt commented Dec 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Add the Development-only AppHost setting Postgres:Ephemeral (Postgres__Ephemeral as an environment variable). Local opt-in runs use a temporary PostgreSQL mount and run the existing migrations on startup.
  • Keep the persistent volume as the default and allow either auto-confirm or Mailpit with the optional setting. Retain the browser E2E labels and connection behavior.
  • Document how to switch between clean and persistent local runs.

Validation

  • dotnet build ChessRealms.Platform.slnx --no-restore and dotnet test ChessRealms.Platform.slnx --no-build --no-restore passed (143 tests).
  • dotnet build tests/ChessRealms.Platform.Identity.E2E.Tests --no-restore and pwsh -File scripts/test-identity-e2e.ps1 passed (26 tests). The new checks verify the default volume in both email configurations and confirm that a table created in one ephemeral run is absent from the next, after the migrations run again.
  • git diff --check passed. Verified that this branch and the README refresh in docs: refresh the platform development guide #67 can merge without conflicts.

@denyrt
denyrt merged commit e2fc893 into main Dec 3, 2026
9 checks passed
@denyrt
denyrt deleted the feat/ephemeral-postgres-for-local-runs branch December 3, 2026 00:38
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