Skip to content

fix(migrate): relax integration test — version from filename prefix not file count - #485

Merged
tayebmokni merged 2 commits into
mainfrom
fix/relax-migrate-test
May 26, 2026
Merged

fix(migrate): relax integration test — version from filename prefix not file count#485
tayebmokni merged 2 commits into
mainfrom
fix/relax-migrate-test

Conversation

@tayebmokni

Copy link
Copy Markdown
Contributor

Was blocking every PR with a migration that skipped a slot. See body for why.

🤖 Generated with Claude Code

The TestRun_IntegrationApplyAndRollback assertion required
count(*.up.sql) == max_applied_version. That breaks when
parallel branches each pick a non-contiguous migration slot
(every PR's CI fails until you renumber every other PR's
migration). Use the lexically-greatest filename's numeric
prefix instead — the migration runner uses the prefix as
the version anyway, so the assertion is still meaningful but
no longer over-constrained.

Signed-off-by: Tayeb Mokni <tayeb.mokni@gmail.com>
@tayebmokni
tayebmokni enabled auto-merge (squash) May 26, 2026 18:26
Pushes the testing.Short() skip up into the three container
helpers themselves rather than scattering it across 20+ call
sites. Every integration test that calls containers.Postgres(),
.Redis(), or .MinIO() now skips automatically under -short.

The nightly-full-tests workflow runs without -short so these
paths are still exercised against tip-of-main.

Signed-off-by: Tayeb Mokni <tayeb.mokni@gmail.com>
@tayebmokni
tayebmokni merged commit 563f0ab into main May 26, 2026
19 of 25 checks passed
@tayebmokni
tayebmokni deleted the fix/relax-migrate-test branch May 26, 2026 21:40
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