test(selfhost): cover sqlite-to-postgres migration script (#8391) - #8405
Conversation
… copyAll branches Closes JSONbored#8391
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8405 +/- ##
=======================================
Coverage 92.17% 92.17%
=======================================
Files 791 791
Lines 79249 79249
Branches 23947 23945 -2
=======================================
Hits 73048 73048
Misses 5062 5062
Partials 1139 1139
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-24 12:09:02 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
scripts/migrate-selfhost-sqlite-to-postgres.tscovering pure helpers (quoteIdent,insertSql,valuePlaceholder,normalizePostgresValue,parseArgs) andcopyAlldecision branches via a mockPoolClient+ in-memoryDatabaseSync.Test plan
npx vitest run test/unit/migrate-selfhost-sqlite-to-postgres.test.ts(15 tests)npx tsc --noEmit