Repository navigation
bridge: add a Node storage backend, and stop silently downgrading the journal mode #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a7294ac
bridge: add a Node storage backend for the SQLite worker
Roasbeef 2059143
bridge: refuse to silently substitute memory for durable storage
Roasbeef f5add42
bridge: stop silently substituting a weaker journal mode
Roasbeef 5f8fb72
bridge: make the nodefs lock and its durability real
Roasbeef 1aa2f0c
bridge: extend the journal mode readback to the pragma list
Roasbeef 8b15ed7
open: reject an unparseable require_persistent
Roasbeef 9e5b7d5
ci: run the Node storage backend tests
Roasbeef File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟠 major — No CI job runs any of this.
node-testis wired intomake test, but.github/workflows/ci.ymlnever invokesmake test— thecompilejob runsgo test -v ./...directly (a host build, sodriver_node_js_wasm_test.gois excluded by itsjs && wasmtag),browser-testrunsmake browser-test, andplaywright-testrunsnpm test. This PR also addstestMatch: "**/*.spec.js"toplaywright.config.js, which explicitly excludestests/node-backend.test.cjsfrom the Playwright job.Net: the 606-line
sqlite-node-vfs.js, the 553-linetests/node-backend.test.cjs, and the 293-linedriver_node_js_wasm_test.goare covered by a green board that never executes them. For the storage layer under a wallet key store, a green CI that does not run it is worse than no CI, because it reads as coverage.Both suites do pass locally —
node --test tests/node-backend.test.cjs(19/19) andGOOS=js GOARCH=wasm go test -exec "node scripts/node-wasm-test-exec.cjs" -run TestNodeDriver ./(5/5) — so this is a wiring gap, not a broken harness. Please add anode-testjob toci.ymlin this PR (setup-node +make node-test) so the next change to the VFS is caught by the board rather than by a wallet.