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

Migrations are flaky #17428

Open
miketheman opened this issue Jan 16, 2025 · 2 comments
Open

Migrations are flaky #17428

miketheman opened this issue Jan 16, 2025 · 2 comments
Labels
data quality developer experience Anything that improves the experience for Warehouse devs

Comments

@miketheman
Copy link
Member

Recent migration efforts have shown that some of the operations requested fail within the time allotted, leading to deploy-time errors. One recent example:

OperationalError: (psycopg.errors.QueryCanceled) canceling statement due to statement timeout
[SQL: ALTER TABLE public."projects" 
                ALTER COLUMN lifecycle_status TYPE public.lifecyclestatus 
                USING lifecycle_status::text::public.lifecyclestatus
                ]

Other migrations with tweaks/twiddles:

One Idea, not a great one: #16235

These are often related to some of our more "popular" tables, like projects/releases/files - and we should be able to ship migrations with a little more confidence than we do right now.

@miketheman miketheman added data quality developer experience Anything that improves the experience for Warehouse devs labels Jan 16, 2025
@miketheman
Copy link
Member Author

Specifically for enums, we use https://pypi.org/project/alembic-postgresql-enum/ - so it's possible that sync_enum_values() is trying to do too much?

@miketheman
Copy link
Member Author

One idea is https://pgroll.com/ but would require a pretty large restructure of our db/org/migrations, and doesn't support changing enum types yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data quality developer experience Anything that improves the experience for Warehouse devs
Projects
None yet
Development

No branches or pull requests

1 participant