Skip to content
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

Refactor MigrationRunner::run_migrations() to call a helper #10232

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tristan957
Copy link
Member

@tristan957 tristan957 commented Dec 23, 2024

This will make it easier to add per-db migrations, such as that for
CVE-2024-4317.

Link: https://www.postgresql.org/support/security/CVE-2024-4317/
Signed-off-by: Tristan Partin [email protected]

@tristan957 tristan957 requested a review from a team as a code owner December 23, 2024 17:44
@tristan957 tristan957 requested review from lubennikovaav and removed request for a team December 23, 2024 17:44
Copy link

github-actions bot commented Dec 23, 2024

7227 tests run: 6874 passed, 0 failed, 353 skipped (full report)


Flaky tests (3)

Postgres 17

Postgres 16

  • test_physical_replication_config_mismatch_max_locks_per_transaction: release-arm64

Code coverage* (full report)

  • functions: 31.2% (8411 of 26967 functions)
  • lines: 48.0% (66795 of 139228 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
f6daa2e at 2025-01-06T21:00:16.477Z :recycle:

@tristan957 tristan957 force-pushed the tristan957/inline-queries branch from 5d2e111 to 1fe1430 Compare January 2, 2025 18:46
Base automatically changed from tristan957/inline-queries to main January 2, 2025 22:13
@tristan957 tristan957 force-pushed the tristan957/refactor branch from 0ce45be to 042e5ae Compare January 2, 2025 22:16
@tristan957 tristan957 requested a review from ololobus January 3, 2025 04:56
@tristan957 tristan957 enabled auto-merge January 3, 2025 04:56
compute_tools/src/migration.rs Outdated Show resolved Hide resolved
compute_tools/src/migration.rs Outdated Show resolved Hide resolved
@tristan957 tristan957 force-pushed the tristan957/refactor branch from 042e5ae to c25f765 Compare January 6, 2025 15:10
@tristan957
Copy link
Member Author

I also recently learned that the tokio_postgres::Client has a transaction method, so I switched us to use that.

@tristan957 tristan957 force-pushed the tristan957/refactor branch from c25f765 to 6d0c0a5 Compare January 6, 2025 15:19
Copy link
Member

@ololobus ololobus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few NITs, but otherwise LGTM

compute_tools/src/migration.rs Outdated Show resolved Hide resolved
compute_tools/src/migration.rs Outdated Show resolved Hide resolved
compute_tools/src/migration.rs Outdated Show resolved Hide resolved
@tristan957
Copy link
Member Author

Left a few NITs, but otherwise LGTM

Cool. Thanks for the reviews!

@tristan957 tristan957 force-pushed the tristan957/refactor branch from 6d0c0a5 to 82510c5 Compare January 6, 2025 19:52
This will make it easier to add cluster migrations, such as that for
CVE-2024-4317.

Link: https://www.postgresql.org/support/security/CVE-2024-4317/
Signed-off-by: Tristan Partin <[email protected]>
@tristan957 tristan957 force-pushed the tristan957/refactor branch from 82510c5 to f6daa2e Compare January 6, 2025 19:57
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