Skip to content

fix(kv-store): exclude @aztec/sqlite3mc-wasm from vitest optimizeDeps#22929

Merged
mverzilli merged 1 commit into
merge-train/fairiesfrom
martin/fix-vitest-sqlite3mc-exclude
May 4, 2026
Merged

fix(kv-store): exclude @aztec/sqlite3mc-wasm from vitest optimizeDeps#22929
mverzilli merged 1 commit into
merge-train/fairiesfrom
martin/fix-vitest-sqlite3mc-exclude

Conversation

@mverzilli

@mverzilli mverzilli commented May 4, 2026

Copy link
Copy Markdown
Contributor

Follow up from #22759, this exclusion is needed for sqlite browser tests to boot properly (already applied on backport)

The exclude entry was left as the previous package name
(@sqlite.org/sqlite-wasm) when worker.ts and package.json were updated
to use @aztec/sqlite3mc-wasm in #22759. With the new package not
excluded, vite's dep optimizer crawls into it during browser test setup
and trips an ENOENT race on `.vite/vitest/<hash>/deps` (two concurrent
crawls under playwright's server+browser dual-context model), causing
src/sqlite-opfs/array.test.ts to fail to import the test file.

The bug is latent on `next` because the VITE_SQLITE_OPFS=1 gate skips
these tests in CI; surfaced on v4-next where the gate doesn't apply.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mverzilli mverzilli requested a review from Thunkar May 4, 2026 14:05
@mverzilli mverzilli enabled auto-merge (squash) May 4, 2026 14:08
@mverzilli mverzilli merged commit d6d02c2 into merge-train/fairies May 4, 2026
19 of 21 checks passed
@mverzilli mverzilli deleted the martin/fix-vitest-sqlite3mc-exclude branch May 4, 2026 14:56
chrismarino pushed a commit to chrismarino/aztec-packages that referenced this pull request May 5, 2026
BEGIN_COMMIT_OVERRIDE
chore: fix kv-store browser tests hangs (AztecProtocol#22721)
feat: kv-store sqlite backend with page level encryption (AztecProtocol#22759)
fix: install node 22 for aztec-cli acceptance test (AztecProtocol#22917)
fix(kv-store): exclude @aztec/sqlite3mc-wasm from vitest optimizeDeps
(AztecProtocol#22929)
feat(txe): add tx private logs to tx side effects oracle (AztecProtocol#22889)
feat(aztec-nr): add call_self stubs for utility functions (AztecProtocol#22885)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants