Skip to content

docs: revise Slice 2a Plan 1 to native PostgreSQL (no Docker)#30

Merged
malinfossum merged 2 commits into
mainfrom
docs/slice2a-plan1-native
Jul 11, 2026
Merged

docs: revise Slice 2a Plan 1 to native PostgreSQL (no Docker)#30
malinfossum merged 2 commits into
mainfrom
docs/slice2a-plan1-native

Conversation

@malinfossum

Copy link
Copy Markdown
Collaborator

Supersedes the Postgres delivery in #29. The only change is how Postgres runs: a native PostgreSQL service locally + a Postgres service container on CI, instead of Docker/Testcontainers. Same two-tier test strategy (SQLite unit tests + real Postgres integration tests), same EF migrations, same ConnectionStrings:WendDb seam.

Rationale: keeping Postgres native avoids the Docker/Hyper-V requirement on Windows dev machines. Henry has agreed to the switch.

What changed vs. the original plan

  • App + local integration tests → native Postgres service (no Docker).
  • Repo unit tests → unchanged (in-memory SQLite).
  • CI → Postgres service container; tests read WEND_TEST_PG.
  • Dropped the Testcontainers.PostgreSql dependency.

Stress-test hardening folded in

  • Fixture drops leftover wend_test_% databases at run start (persistent-server cleanup).
  • Removed a global ClearAllPools(); rely on DROP DATABASE ... WITH (FORCE).
  • Documented: keep API tests sequential (avoids template1 contention); the test password default is test-only; CI Host=localhost assumes no job container:.

Docs only — build follows once native Postgres is installed locally.

@malinfossum
malinfossum merged commit 1ba36ee into main Jul 11, 2026
1 check passed
@malinfossum
malinfossum deleted the docs/slice2a-plan1-native branch July 11, 2026 16:30
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