v26.05.26.3 — hotfix: migration 0022 pre-merge across ENTIRE (canonical+others) group #25
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Second hotfix for the v26.05.26.1 alembic 0022 migration. v26.05.26.2 fixed one collision case but missed another.
What broke this time
v26.05.26.2's pre-merge only looked for collisions where
keep.source_id = canonicalANDdrop_.source_id ∈ others. It missed the case where two non-canonical Sources both have Posts with the sameexternal_post_id, and canonical has none. Bulk UPDATE moves the first one onto canonical cleanly, then collides on the second.Fix
Group ALL Posts in the
(artist, platform)byexternal_post_id(across canonical AND all others). For any group with count > 1:This now handles both:
Plus the (rare) case where canonical and multiple "others" all share the same epid — keep canonical's, drop all others.
Bonus: ci.yml cache steps removed entirely
1803a09was already on dev — removed the fourCache pip wheelssteps. act_runner's cache backend has been broken for 11+ days; the cached path wasn't even uv's actual cache dir. ~30s/job cost, simpler ci.yml. Riding along with this hotfix.Test plan
:latest. Alembic should apply 0022 cleanly this time.🤖 Generated with Claude Code