Skip to content

testing: Add a system-provided postgres for testing #8323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Jun 6, 2025

  • testing: Add a system-postgres mode for faster testing

Postgres can be slow to spin up and down clusters for each test. This
patch allows us to just test against an externally managed postgres
instance. This is particularly interesting in CI, where we can run a
postgres service in a separate container.

The provider still uses nonce-based multitenancy. It tries to clean
up, but it can fail if a test gets interrupted or teardown fails.

Checklist

Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:

  • The changelog has been updated in the relevant commit(s) according to the guidelines.
  • [-] Tests have been added or modified to reflect the changes.
  • [-] Documentation has been reviewed and updated as needed.
  • Related issues have been listed and linked, including any that this PR closes.

Changelog-None

@cdecker cdecker force-pushed the 202506-system-postgres branch from 96fb94b to 3e533c0 Compare June 6, 2025 00:57
cdecker added 2 commits June 6, 2025 16:55
Postgres can be slow to spin up and down clusters for each test. This
patch allows us to just test against an externally managed postgres
instance. This is particularly interesting in CI, where we can run a
postgres service in a separate container.

The provider still uses nonce-based multitenancy. It tries to clean
up, but it can fail if a test gets interrupted or teardown fails.
@cdecker cdecker force-pushed the 202506-system-postgres branch from 3e533c0 to c245951 Compare June 6, 2025 14:55
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