You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(embed): resolve default DB path from positional dir, not cwd (#1869)
fix(embed): resolve default DB path from positional dir, not cwd (#1869)
Fixes embed's default DB path resolution to prefer the positional <dir>
argument over process.cwd(), matching build's behavior. Also fixes two
Greptile-flagged issues: rootDirHint priority in findDbPath's no-DB-found
fallback, and resolveBusyTimeoutMs's config lookup path.
While resolving CI on this PR, found and fixed a genuine Windows-only
test bug: the #1869 regression test opened two `Database(readonly)`
handles for verification queries and never closed them. POSIX tolerates
unlinking a file with an open handle, masking the leak on macOS/Linux,
but Windows does not — afterAll's fs.rmSync failed with EBUSY: resource
busy or locked, unlink '...\graph.db'. Fixed to close handles per the
file's own established pattern; Windows Node 22 tests pass clean now.
The Pre-publish benchmark gate failed once after that fix (the routine
flaky "1-file rebuild" timing gate seen on prior PRs) and passed clean
on rerun with no code changes.
0 commit comments