Skip to content

Conversation

@jason-lynch
Copy link
Member

Summary

Adds a migrate package with a mechanism to run an ordered set of migrations on startup, such as Etcd data migrations. The migrations runner uses the election package to ensure that only one server instance is running the migrations at a time. Other instances will block startup until the migrations are complete, so we should aim to keep migrations as lightweight as possible. As stated in the package documentation, these migrations should be idempotent and, where possible, non-destructive.

Testing

This PR does not add any migrations, so there are no functional changes. You should see a log message control-plane db is up to date, no migrations to run from one of the hosts.

PLAT-347

@coderabbitai
Copy link

coderabbitai bot commented Jan 14, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jason-lynch jason-lynch force-pushed the feat/PLAT-347/election-pkg branch from 448017e to 847d42a Compare January 15, 2026 13:50
@jason-lynch jason-lynch force-pushed the feat/PLAT-347/migrations branch from 64e7057 to 24aad70 Compare January 15, 2026 13:50
@jason-lynch jason-lynch force-pushed the feat/PLAT-347/election-pkg branch from 847d42a to 9238c9f Compare January 15, 2026 13:57
@jason-lynch jason-lynch force-pushed the feat/PLAT-347/migrations branch from 24aad70 to 8b2d7e1 Compare January 15, 2026 13:59
@jason-lynch jason-lynch force-pushed the feat/PLAT-347/election-pkg branch from 9238c9f to 295b6d9 Compare January 15, 2026 14:02
Adds a `migrate` package with a mechanism to run an ordered set of
migrations on startup, such as Etcd data migrations. The migrations
runner uses the `election` package to ensure that only one server
instance is running the migrations at a time. Other instances will block
startup until the migrations are complete, so we should aim to keep
migrations as lightweight as possible. As stated in the package
documentation, these migrations should be idempotent and, where
possible, non-destructive.

PLAT-347
@jason-lynch jason-lynch force-pushed the feat/PLAT-347/migrations branch from 8b2d7e1 to 278a4cb Compare January 15, 2026 14:03
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