Skip to content

Squash alembic migrations #17607

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

Closed
wants to merge 9 commits into from
Closed

Conversation

DarkaMaul
Copy link
Contributor

Discussion is in #17590

The idea is to remove all previous alembic migrations and consolidate them into a single file to improve testing time.

Marked as draft until we know if it's a good idea or not.

@DarkaMaul DarkaMaul marked this pull request as ready for review April 1, 2025 13:11
@DarkaMaul DarkaMaul requested a review from a team as a code owner April 1, 2025 13:11
@DarkaMaul
Copy link
Contributor Author

The PR is now ready for review, but the first question is: do the benefits outweigh the drawbacks?

Benefits:

Timing CI Local
With PR 52s (0) 19s
Without 1m (1) 22s
Improvement 13% 13%

The changes yield a consistent 13% performance improvement in both CI and local test execution times, saving several seconds per test run.

Drawbacks:

  • Increased code complexity: The migration process now includes two potential paths - a snapshot-based path for tests and the standard migration path

@di
Copy link
Member

di commented Apr 1, 2025

I think this is probably not worth the added complexity. I appreciate you putting the effort in here, it's hard to know if performance improvements are going to pay off in advance.

@DarkaMaul DarkaMaul closed this Apr 3, 2025
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