Skip to content

test(schema): re-vendor all central migrations - #67

Open
kcrmin wants to merge 1 commit into
developfrom
test/revendor-central-migration
Open

kcrmin wants to merge 1 commit into
developfrom
test/revendor-central-migration

Conversation

@kcrmin

@kcrmin kcrmin commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

What and why

The vendored central Flyway bundle under db/migration-contributions/fixtures/central-migration/ held 4 of the 8 central migrations, and its V1 copy had CRLF line endings. When the superproject is found, conftest cross-checks the copy against backend/db-migration, so every integration test errored.

  • Re-vendor all 8 migrations as LF bytes, identical to backend develop, and regenerate central-migration.sha256.
  • .gitattributes: text eol=lf replaces -text, so a CRLF working copy can no longer be committed.
  • Two fast unit tests check that every vendored file has a matching digest and that the copy contains no CR bytes, so drift fails gate3/gate6 before Docker starts.

Verified

  • gate8 bare (I2S_SUPERPROJECT_ROOT=/nonexistent, vendored bundle only), PostgreSQL 16 Testcontainers + LocalStack 4.7.0 on 4566: 160 passed, 0 skipped, 0 errors; JUnit assertion passed.
  • gate8 with superproject detection (vendored copy cross-checked against backend/db-migration): 160 passed, 0 skipped, 0 errors; JUnit assertion passed.
  • sha256sum -c ../central-migration.sha256: all 8 OK. Each digest also matches backend origin/develop.
  • gate3: 1093 passed, coverage 89.10%. gate6: validator OK, 23 passed. ruff check . clean.

Checklist

  • All 8 central migrations vendored, byte-identical to backend develop
  • Digest file regenerated and LF-only
  • gate8 green in both bundle-resolution modes
  • No applied migration changed (fixture copy only)

Depends on #65 for green CI: develop currently resolves pandas-market-calendars 5.5.0, which trips CalendarSourceDrift in gate3/gate8 regardless of this change. Rebase after #65 merges.

The copy had 4 of 8 files and a CRLF V1, so the superproject
cross-check errored every integration test. Keep the copy LF.
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.

1 participant