Commits
Click on a commit to change the comparison rangefeat(query-engine-wasm): ported some logic from query-engine-node-api in a wasm32-compatible fashion Merge branch 'feat/driver-adapters-on-wasm32-unknown-unknown' into feat/query-engine-wasm32-unknown-unknown fix: remove tokio-induced panic in "connect" Merge branch 'feat/driver-adapters-on-wasm32-unknown-unknown' into feat/query-engine-wasm32-unknown-unknown Reorganize example
Switch to sqlite so cloud services are not required
Save schema to external file chore(driver-adapters): update Cargo.lock Handle non-promise return values Merge remote-tracking branch 'origin/main' into feat/query-engine-wasm32-unknown-unknown fix(query-engine-node-api): fix compilation errors Remove one more isntant usage chore(driver-adapters): unify napi/wasm errors into "crate::JsResult" chore(driver-adapters): continue unifying napi/wasm functions chore: merge main, fix conflicts chore(driver-adapters): clippy fixes fix insta tests
Strictly speaking, not related to wasm engine at all - we bumped `insta`
at some point and that required adding `allow_duplicates` macro around
the loop.
Close prisma/team-orm#651 Fix panic kills running engine in query-engine-tests (#4499)
* I didn't have wasm-pack installed, let's fix that
* Update wasm-bindgen-futures to 0.4.39
This includes https://github.com/rustwasm/wasm-bindgen/issues/3203 that use queueMicrotask
to transalate spawn_local rust code.
This has fixed https://github.com/rustwasm/wasm-bindgen/issues/2392 which was an issue about not being able to catch async wasm traps. This might (or not) have an effect on the issue we are trying to solve in here.
* Revert "Update wasm-bindgen-futures to 0.4.39"
This reverts commit 9a494dc1f5f2250ddf2c3f71b52ec2221e6c93cb.
* Restart executor when it dies
* Document Restartable
* Remove async_panic_to_js_error in WASM query engine
* Rename p -> process
* Use tokio::sync::RwLock rather than futures::lock::Mutex
* Better error messaging
* Fixing clippy
* Exclude unit tests for wasm32 when compiling the binary for other architectures Fix duplicate snapshots in json_filters test Size low hanging fruits
Removes following functionality from WASM engine:
- GraphQL protocol
- DMMF
- SDL Schema
Neither of the features are used by the client runtimes and thrid party
clients don't and can not use WASM engine, so it is safe to remove. Merge branch 'feat/query-engine-wasm32-unknown-unknown' of github.com:prisma/prisma-engines into feat/query-engine-wasm32-unknown-unknown chore: bumped wasm-bindgen version to 0.2.89 Merge branch 'main' into feat/query-engine-wasm32-unknown-unknown Revert "Revert "chore: removed wasm.rs test""
This reverts commit 481ba654658a00adc23e21d9dfc57875b899f4f2. chore(driver-adapters): merge main, fix conflicts, add wasm-napi independent "has_named_property" function chore: merge main, fix conflicts Stop using removed method Test fixes for NAPI tests (#4515) chore(review): move wasm/napi-specific task JoinHandle stuff to crosstarget-utils Merge branch 'main' into feat/query-engine-wasm32-unknown-unknown Merge branch 'main' into feat/query-engine-wasm32-unknown-unknown qe-wasm: Partially fix tests (#4517)
* qe-wasm: Partially fix the test suite
1. Bash script for build did not abort on error, hence sed error on
linux went unnoticed.
2. We don't actually need sed trickery sincce `wasm-pack` has a flag for
changing binary name.
3. `tracing` feature does not actually work on WASM even partially: it panics on
`Instant` invokation as soon as first span is created. Since we are
running tests with all preview features enabled, that means that
practically any test panics now. Disabled it again.
A lot of tests are still failing on ThreadRng invocation and stacktrace
is not really helpful, but I still think it's better if we get it
working.
* Update query-engine/query-engine-wasm/build.sh qe-wasm: Fix RNG on Node 18 in a test runner (#4526) qe: Skipping failing tests on WASM (#4527)
* Add a way to skip WASM tests
* Temproary skip failing wasm tests on pg and neon
* Skip timstamp test
* Fix incorrect skips
* Parse libsql.js.wasm version
* Skip libsql wasm tests
* Fix vitess version parsing
* Skip wasm planetscale tests that are also skipped for napi
* Rename jobs
* Skip planetscale wasm tests
* Fix some incorrect skips
* And more fixes
* Be careful when copy-pasting, please
* One more fix
* Fix null lists
* Again: be careful when copy-pasting
* Skip timestamp test on libsql and planetscale
* Update .github/workflows/test-query-engine-driver-adapters.yml
Co-authored-by: Joël Galeran <Jolg42@users.noreply.github.com>
---------
Co-authored-by: Joël Galeran <Jolg42@users.noreply.github.com>