test(db): add loadSubset refinement oracle foundation - #1780
test(db): add loadSubset refinement oracle foundation#1780KyleAMathews wants to merge 12 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
More templates
@tanstack/angular-db
@tanstack/browser-db-sqlite-persistence
@tanstack/capacitor-db-sqlite-persistence
@tanstack/cloudflare-durable-objects-db-sqlite-persistence
@tanstack/db
@tanstack/db-ivm
@tanstack/db-sqlite-persistence-core
@tanstack/electric-db-collection
@tanstack/electron-db-sqlite-persistence
@tanstack/expo-db-sqlite-persistence
@tanstack/node-db-sqlite-persistence
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/react-native-db-sqlite-persistence
@tanstack/react-router-with-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/tauri-db-sqlite-persistence
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
|
Size Change: 0 B Total Size: 173 kB ℹ️ View Unchanged
|
|
Size Change: 0 B Total Size: 7.25 kB ℹ️ View Unchanged
|
Adds a compositional refinement oracle for the remaining
loadSubsetlifecycle work. It changes no runtime behavior; it gives later RFC fixes a small independent model, real Collection boundary drivers, and adapter conformance checks.Approach
test:oraclescommand now includes the full 20-suite oracle hierarchy.Key invariants
Non-goals and trade-offs
Verification
cd packages/db pnpm test:oracles --silent=passed-only --pool-options.threads.maxThreads=2 TANSTACK_DB_ORACLE_RUNS_MULTIPLIER=100 pnpm vitest run \ tests/query/load-subset-refinement-model.property.test.ts \ tests/query/load-subset-replay-refinement-oracle.property.test.ts \ tests/query/load-subset-source-readiness-refinement-oracle.property.test.ts \ tests/query/load-subset-transaction-refinement-oracle.property.test.ts \ --silent=passed-only --pool-options.threads.maxThreads=2git diff --checkpassed.Files changed
packages/db/tests/load-subset-full-flow-model.ts: independent refinement projections.packages/db/tests/query/load-subset-*-refinement-*.test.ts: model laws and real Collection drivers.packages/db/src/query/live/ARCHITECTURE.mdandpackages/db/package.json: executable-contract map and complete oracle command.Stacked on #1778.
Related to #1657.