Repository navigation
test(sqlite): fix two SQLite boundary tests on native Windows - #2824
Closed
pablodiazjorge wants to merge 1 commit into
Closed
pablodiazjorge wants to merge 1 commit into
pablodiazjorge wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
|
8 tasks done
morluto
force-pushed
the
test/windows-sqlite-boundary
branch
from
October 13, 2026 18:29
2fc8a8a to
88f447c
Compare
morluto
force-pushed
the
test/windows-sqlite-boundary
branch
from
October 13, 2026 18:54
88f447c to
e9a946b
Compare
Contributor
Author
|
Closing, since these changes landed on main in 5b7fe94: the descriptor cleanup test as proposed, and the provider test with only SystemRoot on Windows. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two SQLite boundary tests fail on native Windows because of assumptions in the tests themselves; the provider behaves correctly. No issue is linked: I found them while verifying
inspect_sqlite_database(#2271) on Windows, which CI does not cover (sqlite-runtime.ymlruns on Ubuntu only). The fix touches only these two test files, like #2312. The same verification found a real misclassification ofEBUSYon Windows, reported separately in #2822.Problem and expected behavior
Smallest trigger, on Windows with Node 24.18.0:
npx vitest run tests/boundary/sqlite/sqliteDatabaseProvider.test.ts tests/boundary/sqlite/sqliteDatabaseDescriptorCleanup.test.tsgives 2 failures on117bd23dd. Expected: both tests reach their assertions and pass.sqliteDatabaseProvider› cancels an acquired SQLite worker and removes its private snapshotProviderAdapterError("Provider process fixture exited before readiness") instead ofAnalysisCancelledError{}). WithoutSystemRoot, Node aborts at startup on Windows (Assertion failed: ncrypto::CSPRNG(nullptr, 0), exit 134), so the fixture never printsreadysqliteDatabaseDescriptorCleanup› retains reply-read cancellation and retries the failed reply descriptor closeexecution_failure: "execution_failure"instead of"cancelled"Delete owned object by handle failed […] (Win32 145), directory not empty), so the provider reports the root cleanup failure and keeps the cancellation asdiagnostics.previous_error. POSIX unlinks open files, so the root is removed thereChange and scope
sqliteDatabaseProvider.test.ts: the cancellation test passesprocess.env, likecreateProviderin the same file.sqliteDatabaseDescriptorCleanup.test.ts: on Windows, the reply-read test expects the root cleanup error with the original cancellation as its previous error (sameexecution_failure, resource and captured output as before). Elsewhere the expectation is unchanged. The shutdown retry assertions that follow are unchanged and pass on both platforms.No product code changes.
Contribution scope: not applicable (test-only fix within existing boundaries).
Contract and boundary impact
docs/public/product-catalog.json), package, or installation impact: none.Evidence and regression coverage
117bd23ddthe SQLite test files give 2 failed, 89 passed, 9 skipped on Windows; the errors are in the table.Validation performed
Windows 11 x64 (10.0.26300), non-elevated, Node 24.18.0, with the Windows native addon built from the same commit.
git ls-files | grep sqlite | grep test.ts) on117bd23dd: 2 failed, 89 passed, 9 skipped.npx oxfmt --checkon the two files: passed.npm run check:fast: typecheck passed; lint reports twomax-lines-per-functionerrors that are already onmain(ghidraLauncher.test.tsandGhidraFunctionValues.test.ts, from fix(ghidra): warn when callee/caller reads stop at a truncated function body #2360), none in the changed files.Compatibility, safety, and release
Before merge
type(scope): outcome.