Skip to content

feat: for schema tests, try to use pg_dump #1562

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

Merged
merged 2 commits into from
Apr 22, 2025
Merged

Conversation

samrose
Copy link
Collaborator

@samrose samrose commented Apr 21, 2025

What kind of change does this PR introduce?

dbmate works for generating new migrations, but it causes problems for generating schema dumps

This PR attempts to switch to using pg_dump to generate the schemas, which are only used for testing idempotency of the migrations in ci. pg_dump likely will be good enough for that.

@samrose samrose marked this pull request as ready for review April 21, 2025 23:24
@samrose samrose requested review from a team as code owners April 21, 2025 23:24
@samrose samrose force-pushed the sam/schemas-pg-dump branch from a4e3784 to 86e4595 Compare April 21, 2025 23:30
@samrose samrose requested a review from steve-chavez April 21, 2025 23:31
@samrose samrose merged commit db4b292 into develop Apr 22, 2025
14 checks passed
@samrose samrose deleted the sam/schemas-pg-dump branch April 22, 2025 15:14
soedirgo added a commit that referenced this pull request Apr 23, 2025
Trailing whitespace were somehow added in
#1562; probably different
handling between dbmate and pg_dump
soedirgo added a commit that referenced this pull request Apr 24, 2025
* fix: grant Vault privs to service_role

* adjust tests according to the fix

* chore: bump versions

* fix: missing Vault privileges for postgres

* fix: also privs in the migration

* test: schema snapshots changed

Trailing whitespace were somehow added in
#1562; probably different
handling between dbmate and pg_dump

---------

Co-authored-by: steve-chavez <[email protected]>
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.

2 participants