|
| 1 | +# TASK-073: Compare Rust integration suite vs Zig harness; create missing-test tasks |
| 2 | + |
| 3 | +## Status |
| 4 | +- [ ] Planned |
| 5 | +- [ ] Assigned |
| 6 | +- [ ] In Progress |
| 7 | +- [ ] Blocked (reason: ...) |
| 8 | +- [ ] Complete |
| 9 | + |
| 10 | +## Priority |
| 11 | +high |
| 12 | + |
| 13 | +## Assigned To |
| 14 | +(unassigned) |
| 15 | + |
| 16 | +## Parent Docs / Cross-links |
| 17 | +- Rust integration suite entrypoint: `core/rs/integration_check/src/lib.rs` |
| 18 | +- Rust integration suites: |
| 19 | + - `core/rs/integration_check/src/t/automigrate.rs` |
| 20 | + - `core/rs/integration_check/src/t/backfill.rs` |
| 21 | + - `core/rs/integration_check/src/t/pack_columns.rs` |
| 22 | + - `core/rs/integration_check/src/t/pk_only_tables.rs` |
| 23 | + - `core/rs/integration_check/src/t/pk_update.rs` |
| 24 | + - `core/rs/integration_check/src/t/test_db_version.rs` |
| 25 | + - `core/rs/integration_check/src/t/test_cl_set_vtab.rs` |
| 26 | + - `core/rs/integration_check/src/t/tableinfo.rs` |
| 27 | + - `core/rs/integration_check/src/t/teardown.rs` |
| 28 | + - `core/rs/integration_check/src/t/fract.rs` |
| 29 | +- Zig harness: `zig/harness/` |
| 30 | +- Gap backlog: `research/zig-cr/92-gap-backlog.md` |
| 31 | + |
| 32 | +## Description |
| 33 | +The repo contains *multiple* test surfaces: |
| 34 | +- C test suites (`core/src/*.test.c`) |
| 35 | +- Rust integration suite (`core/rs/integration_check/src/t/*.rs`) |
| 36 | +- Zig parity/unit/realistic harness (`zig/harness/*`, `zig/test/*.zig`) |
| 37 | + |
| 38 | +To invalidate the hypothesis that the Zig implementation is done, we need a *coverage map* that answers: |
| 39 | +- Which Rust/C behaviors are not exercised by Zig tests? |
| 40 | +- Which Zig behaviors aren’t cross-checked against Rust/C? (risk of Zig-specific blindspots) |
| 41 | + |
| 42 | +This task builds that map and then produces follow-up task cards for each gap. |
| 43 | + |
| 44 | +## Files to Modify |
| 45 | +- `.tasks/backlog/TASK-073-compare-rust-zig-tests.md` |
| 46 | +- `research/zig-cr/92-gap-backlog.md` |
| 47 | +- `.tasks/backlog/TASK-*.md` (new follow-up tasks created by this task) |
| 48 | + |
| 49 | +## Acceptance Criteria |
| 50 | +- [ ] A table exists in this task card mapping: |
| 51 | + - Rust integration suite → equivalent Zig test(s) (or "missing") |
| 52 | + - C suite → equivalent Zig test(s) (or "missing") |
| 53 | +- [ ] For each "missing" row: a new `.tasks/backlog/TASK-*.md` exists, with tight `Files to Modify` and a reproducible command. |
| 54 | +- [ ] Gaps are framed from a real-system POV (migrations, multi-conn, on-disk DBs, crash/rollback). |
| 55 | + |
| 56 | +## Progress Log |
| 57 | +### 2025-12-18 |
| 58 | +- Task created during "update tasks" to invalidate "zig is done". |
| 59 | + |
| 60 | +## Completion Notes |
0 commit comments