Repository navigation
fix(db): close failed initialization connections - #13342
diegosouzapw merged 4 commits into
Conversation
…t-handle-leak-13303-conflicts # Conflicts: # src/lib/db/core.ts
|
Thanks for tracking down the Windows handle-leak in |
Resolves the conflict in src/lib/db/core.ts — the base moved the startup health-check while this branch wrapped the init in try/finally (whole-block re-indent). Took the base's file and re-applied this PR's real delta (+23/-1 ignoring whitespace): probe hoisted + closed in catch/finally, and the real connection closed when init throws before setDb. typecheck:core clean, 155 DB tests green. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
|
Thanks @voidstackloop — merging via the release merge-train. Validated in local merge-train /tmp/mt-train3b.log on 192.168.0.113 @ train tip 408e2128791696a18966681953136fc96aeb99b0 (32 PRs boarded): static gates green; full test:unit 40694 tests, 17 failing — every one reproduces on the pure release tip (base-red sweep list), zero new reds. Merged --admin per merge-gates §4/§7. |
c07cebb
into
cheaper-inference:release/v3.8.51
…3342) * fix(db): close failed initialization connections * docs: add changelog fragment for cheaper-inference#13303 db handle-leak fix --------- Co-authored-by: voidstackloop <voidstackloop@users.noreply.github.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Summary
call_logscolumns before schema indexes reference themValidation
tests/unit/db-core-init.test.ts: 14/14 passed on Windowsnpm run typecheck:corenpm run check:cyclesprettier --check src/lib/db/core.tscore.tsFixes #13303