prisma-engines
582bc82c - feat(driver-adapters): Enable D1 in query-engine-tests (#4773)

Commit
2 years ago
feat(driver-adapters): Enable D1 in query-engine-tests (#4773) * feat(da-executor): use parallel build for faster local test runs * chore(da-executor): update typescript * chore(da-executor): move utilities to utils.ts * feat(da-executor): validate json-rpc requests * feat(da-executor): introduce type-safe driver-adapters-manager * chore(da-executor): rename "dev" script to "test" to avoid conflicts with "pnpm build" run at the project root * feat(query-tests-setup): facilitate driver-adapters JS-driven setup for D1, organise JSON-RPC roundtrips * chore(da-executor): get rid of annoying bytes log and unused imports * feat(da-executor): add first D1 support to TypeScript side * add for d1: test-config map for d1 sqlite version * add to makefile and yml * dev-d1-wasm correct config path * chore(da-executor): minor setup fixes * feat(da-executor): allow qe-setup to delegate both initialisation and schema migration to JavaScript * feat(da-executor): wrap up D1, fix teardown issues * feat(da-executor): fix package.json scripts * feat(da-executor): fix package.json scripts * chore(da-executor): remove unused line * chore(da-executor): remove unused line * exclude itx tests for d1 * feat(da-executor): implement migrate reset for D1 + workaround for flakiness * chore(da-executor): disable workaround for busy loop, try to see which tests pass * chore(da-executor): disable tokio::time::sleep * chore(da-executor): minor updates to driver-adapters-manager * chore(da-executor): fix lints * fix(driver-adapters): libsql tests * fix(driver-adapters): clippy * feat(da-executor): ensure the given DRIVER_ADAPTER_CONFIG'S proxy_url isn't empty * feat(da-executor): fix planetscale tests * chore(da-executor): use DROP TABLE IF EXISTS, adjust access modifiers * feat(da-executor): remove PRAGMA foreign_keys * feat(da-executor): remove DROP INDEX * feat(query-engine-tests): fix byoid tests on D1 * feat(query-engine-tests): fix nested byoid tests on D1 * feat(query-engine-tests): expose SqliteVersion publicly * feat(query-engine-tests): comment out most failing D1 tests * feat(query-engine-tests): fix D1 TS setup pipeline. Co-authored-by: @Jolg42 <galeran@prisma.io> * feat(query-engine-tests): comment out metrics tests on D1 * feat(query-engine-tests): comment out other tests on D1 * chore(query-engine-tests): reduce console spam on D1 * chore(query-engine-tests): fix TypeScript suites after updates to prisma * feat(query-engine-tests): comment out tests that succeed locally * feat(query-engine-tests): comment out remaining itx tests * fix(query-engine-tests): fix mongodb * feat(adapter-d1): comment out some remaining D1 tests. DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * feat(adapter-d1): allow parsing bool from double. DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * feat(adapter-d1): comment out some tests. DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * feat(adapter-d1): comment out some tests. DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * feat(da-executor): delete "sqlite_sequence" outside of the batch transaction. DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * feat(da-executor): comment out top_level_mutations test. DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * feat(da-executor): fix reset? DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * feat(da-executor): comment out failing tests on D1. DRIVER_ADAPTERS_BRANCH=jkomyno/fix/d1-tests * chore: retrigger CI/CD --------- Co-authored-by: Sophie Atkins <atkins@prisma.io>
Author
Parents
Loading