Files
Jordan Frazier 5f2f287bf1 test: add PostgreSQL to migration CI tests (#12257)
* test: add PostgreSQL to migration CI tests

* [autofix.ci] apply automated fixes

* use random pg name

* [autofix.ci] apply automated fixes

* fix: rewrite _get_main_branch_head to use git grep instead of filename parsing

The old approach used --diff-filter=A and extracted revision IDs from
filenames, which broke in two ways: filenames don't always match actual
revision IDs, and modified-only migrations were silently treated as a
no-op. Now uses git grep to read revision/down_revision directly from
origin/main's migration files and computes the head from the chain.

Also skips test_upgrade_from_main_branch with a clear message when main
and branch share the same head, instead of silently doing nothing.

* [autofix.ci] apply automated fixes

* ruff

* Add postgres to install

* [autofix.ci] apply automated fixes

* comp index

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 13:26:56 +00:00
..