Fix morph-types seed race condition#2277
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PR refactors database migration seeding logic to unconditionally seed predefined morph-types using idempotent operations, removing a prior conditional existence check. Comments updated to document concurrent-seeder safety. The ChangesSeeding refactor and dependency update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bump Harmony submodule to include the in-lock HasCommit check (sillsdev/harmony#66), which closes the TOCTOU race between concurrent AddPredefinedMorphTypes callers on a fresh project (BG sync's CreateProject vs. HTTP middleware's MigrateDb). The MigrateDb pre-check was a small optimization, not a race guard — drop it, let Harmony's in-lock check handle idempotency. Note: won't build on develop until the .NET 10 chore lands (Harmony main is on .NET 10). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4f36f3d to
ba00c59
Compare
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Bumps Harmony to include the in-lock HasCommit check (sillsdev/harmony#66), closing the TOCTOU race between BG sync's
CreateProjectand the HTTP middleware'sMigrateDbon a fresh project.Drops the MigrateDb pre-check — it was an optimization, not a race guard.