Repository navigation
test(storage): Wave 3 PR 3 — migration matrix, index corruption, concurrency stress (#215, #216, #217) - #255
Merged
Merged
Conversation
…le optimization) Covers issues #207 and #206: extends optimizer::plan() to accept Expr clauses and interleave them at the earliest position where their variables are bound, and routes the StratifiedEvaluator mixed-rules path through the updated planner. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…d rules) TDD plan covering optimizer.rs, matcher.rs, executor.rs, evaluator.rs, and a new Criterion benchmark. 9 tasks, each with exact file paths, code blocks, and expected test output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…#205) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add a concise 'WASM omission' comment at every existing and planned #[cfg(not(feature = "wasm"))] ordering gate explaining why sorting is disabled on WASM targets (small datasets, deterministic behaviour). The full rationale lives in the selectivity_score() doc comment; all other sites reference it with a short cross-reference. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers all 11 issues (#209, #210, #212, #213, #214, #215, #216, #217, #219, #220, #221) across 6 PRs. Key decisions: cargo-fuzz for binary fuzzing, FaultInjectingBackend wrapper for fault injection, proptest + reference evaluator for semantic property tests, cargo-llvm-cov for coverage gates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- PR 1: foundation (FaultInjectingBackend, fuzz/ crate, proptest) - PR 2: WAL cluster (#209, #210, #214) - PR 3: storage/migration (#215, #216, #217) - PR 4: query correctness (#221, #213, #212) - PR 5: long-haul smoke suite (#220) - PR 6: XTDB/Datomic compat corpus (#219) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…hread loops) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…view - corrupted_header_checksum_does_not_panic: add query assertion in Ok branch - corrupt_magic_fails_loudly: assert error message describes corrupt magic Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was
linked to
issues
May 16, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Wave 3 PR 3 — Storage / Migration Reliability
Closes #215, #216, #217.
Changes
tests/migration_matrix_test.rs— 5 tests (test: add index corruption recovery and rebuild fixtures #215):v7_round_trip_is_idempotent— write, checkpoint, reopen, verify facts survivev3_empty_migrates_without_error— minimal v3 header opens without errorcorrupt_magic_fails_loudly— bad magic returnsErrwith descriptive messageunsupported_version_fails_loudly— version=99 returnsErrwal_replay_after_migration_is_idempotent— WAL replayed correctly after crash simulationtests/index_corruption_test.rs— 5 tests (test: add legacy file-format migration matrix and corruption fixtures #216):corrupted_header_checksum_does_not_panic— checksum flip: no panic; facts readable if open succeedscorrupted_btree_leaf_page_does_not_panic— leaf page XOR: no paniccorrupted_btree_internal_page_does_not_panic— internal page XOR: no panicroot_page_pointer_mismatch_does_not_panic—u64::MAXroot pointer: no panicquery_results_after_non_critical_corruption_match_original— non-critical corruption: facts still readabletests/concurrency_test.rs— 5 new stress tests appended (test: add concurrency stress tests for read/write transactions and rollback paths #217):stress_readers_during_writer— 8 reader threads + 1 writer (50 facts),Arc<AtomicBool>terminationfailed_write_followed_by_successful_write— parse error doesn't corrupt DB staterollback_after_partial_work—WriteTransaction::rollback()leaves no side effectsopen_write_checkpoint_query_loop_per_thread— 4 independent threads × 20 facts eachstress_open_write_loop_nightly—#[ignore]nightly: 8 threads × 200 factsTest counts
#[ignore]🤖 Generated with Claude Code