veritas-kanban/docs/testing/dual-storage-parity.md
Brad Groux f7cff20cd8
test: add v5 dual-storage parity gate
## Summary

- adds the v5 dual-storage parity fixture and focused parity test suite
- covers rich task metadata, archive lifecycle, comments/chat history, settings/templates, prompt usage, telemetry/activity/status history, and a workflow run
- adds an explicit CI parity step for file and SQLite storage drift
- preserves newer file-mode task metadata on reload and stabilizes SQLite chat ordering
- hardens workflow parity polling for asynchronous run writes

## Verification

- GitHub Actions: Build, Lint & Type Check, Security Audit, Workspace Unit Tests
- Local focused parity test, server typecheck, lint budget, build, and audit high gate
2026-05-31 05:26:10 -05:00

19 lines
849 B
Markdown

# Dual-storage parity tests
The v5 SQLite rollout keeps file storage and SQLite behavior under the same test fixture until SQLite becomes the default backend.
## Fixture
- Versioned fixture: `server/src/__tests__/fixtures/dual-storage-parity/v5-rich-metadata.json`
- Current fixture version: `1`
- Covered data: rich task metadata, comments, subtasks, dependencies, settings, task templates, prompt registry usage, activity, status history, telemetry, task-scoped chat, and one workflow run.
## Test gate
Run the focused parity gate:
```sh
pnpm --filter @veritas-kanban/server test -- src/__tests__/storage/dual-storage-parity.test.ts
```
CI runs this gate explicitly after the workspace unit test suite. Add new v5 storage surfaces to the fixture and normalize only nondeterministic fields such as generated IDs, timestamps, and temp paths.