Skip to content

fix(alembic): merge diverged migration heads#13094

Merged
fregataa merged 2 commits into
mainfrom
fix/alembic-merge-heads
Jul 23, 2026
Merged

fix(alembic): merge diverged migration heads#13094
fregataa merged 2 commits into
mainfrom
fix/alembic-merge-heads

Conversation

@seedspirit

Copy link
Copy Markdown
Contributor

Summary

Root cause

Two independently merged migrations both used b3e8f1a24c76 as their down_revision, leaving main with two Alembic heads.

Developer impact

Manager schema upgrades can target head again without Alembic reporting multiple heads.

Test plan

  • ./py -m alembic -c alembic.ini heads --verbose
  • ./py -m alembic -c alembic.ini history -r b3e8f1a24c76:heads
  • pants fmt ::
  • pants fix ::
  • pants lint --changed-since=origin/main
  • Pre-push changed-since lint, type check, and test hook

@github-actions github-actions Bot added size:S 10~30 LoC comp:manager Related to Manager component require:db-migration Automatically set when alembic migrations are added or updated labels Jul 23, 2026
@seedspirit
seedspirit marked this pull request as ready for review July 23, 2026 13:24
@seedspirit
seedspirit requested a review from a team as a code owner July 23, 2026 13:24
Copilot AI review requested due to automatic review settings July 23, 2026 13:24
@seedspirit seedspirit added the skip:changelog Make the action workflow to skip towncrier check label Jul 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an empty Alembic merge migration to restore a single manager schema head.

Changes:

  • Merges revisions 339ae21cb8ec and 39fadbbea696.
  • Adds a changelog fragment.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/ai/backend/manager/models/alembic/versions/5405ee0d8eed_merge_heads_339ae21cb8ec_and_.py Defines the empty merge revision.
changes/13094.misc.md Records the migration-head reconciliation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fregataa
fregataa merged commit 9594aab into main Jul 23, 2026
42 checks passed
@fregataa
fregataa deleted the fix/alembic-merge-heads branch July 23, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:manager Related to Manager component require:db-migration Automatically set when alembic migrations are added or updated size:S 10~30 LoC skip:changelog Make the action workflow to skip towncrier check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants