beads/internal/storage/sqlite
Steve Yegge bc13329fb0 fix: resolve test failures from speedup changes
- Add file: URI handling to properly support test databases with custom URIs
- Change :memory: databases to use DELETE journal mode (WAL incompatible)
- Switch test helper to use temp files instead of in-memory for reliability
- Skip TestInMemorySharedCache (multiple New() calls create separate DBs)
- Update adaptive length test to use newTestStore()
- Merge with upstream fix for :memory: connection pool (SetMaxOpenConns(1))

All previously failing tests now pass.

Amp-Thread-ID: https://ampcode.com/threads/T-80e427aa-40e0-48a6-82e0-e29a93edd444
Co-authored-by: Amp <amp@ampcode.com>
2025-11-04 01:08:21 -08:00
..
adaptive_e2e_test.go Switch from hex to Base36 encoding for issue IDs (GH #213) 2025-11-03 12:02:15 -08:00
adaptive_length.go Switch from hex to Base36 encoding for issue IDs (GH #213) 2025-11-03 12:02:15 -08:00
adaptive_length_test.go fix: resolve test failures from speedup changes 2025-11-04 01:08:21 -08:00
batch_ops.go Refactor: consolidate ID generation and shared helpers (bd-0702, bd-1445) 2025-11-02 14:49:27 -08:00
batch_ops_test.go Add comprehensive tests for migrations.go and batch_ops.go (bd-3b7f) 2025-11-01 23:25:44 -07:00
child_counters_test.go Implement 6-char progressive hash IDs (bd-166, bd-167) 2025-10-30 14:04:03 -07:00
child_id_test.go Implement hierarchical child ID generation (bd-171) 2025-10-30 14:42:08 -07:00
collision.go Implement external_ref as primary matching key for import updates (bd-1022) 2025-11-02 15:28:09 -08:00
collision_test.go test: add sqlite collision and delete test coverage 2025-11-01 22:47:07 -07:00
comments_test.go test: add comprehensive Comments API tests (bd-d68f) 2025-11-01 22:53:38 -07:00
compact.go Refactor: Replace manual transaction handling with withTx() helper 2025-11-02 12:55:47 -08:00
compact_bench_test.go Remove snapshot/restore functionality from compaction 2025-10-16 00:26:42 -07:00
compact_test.go Remove obsolete collision remapping code and tests 2025-10-31 00:19:42 -07:00
cycle_bench_test.go Add cycle detection performance benchmarks (bd-311) 2025-10-16 13:32:44 -07:00
cycle_detection_test.go fix: DetectCycles SQL bug and add comprehensive tests 2025-11-01 22:51:58 -07:00
delete_test.go test: add sqlite collision and delete test coverage 2025-11-01 22:47:07 -07:00
dependencies.go Refactor: Replace manual transaction handling with withTx() helper 2025-11-02 12:55:47 -08:00
dependencies_test.go Fix #202: Add dependency_type to bd show --json output (#203) 2025-11-02 08:40:10 -08:00
dirty.go Refactor: Replace manual transaction handling with withTx() helper 2025-11-02 12:55:47 -08:00
dirty_helpers.go Refactor: consolidate ID generation and shared helpers (bd-0702, bd-1445) 2025-11-02 14:49:27 -08:00
dirty_test.go test: Add comprehensive test coverage for storage layer 2025-10-15 01:30:28 -07:00
epics.go Enable errcheck linter and fix all production code warnings 2025-10-25 18:44:38 -07:00
epics_test.go Refactor high-complexity test functions (gocyclo) 2025-10-25 13:20:16 -07:00
events.go Refactor: Replace manual transaction handling with withTx() helper 2025-11-02 12:55:47 -08:00
events_helpers.go Refactor: consolidate ID generation and shared helpers (bd-0702, bd-1445) 2025-11-02 14:49:27 -08:00
events_test.go Fix goconst linter warnings by converting repeated strings to constants 2025-10-25 13:33:51 -07:00
external_ref_test.go Add external_ref UNIQUE constraint and validation 2025-11-02 16:27:42 -08:00
hash.go Fix bd-160: Implement JSONL integrity validation and prevent export deduplication data loss 2025-10-29 21:57:15 -07:00
hash_id_test.go Switch from hex to Base36 encoding for issue IDs (GH #213) 2025-11-03 12:02:15 -08:00
hash_ids.go Refactor: consolidate ID generation and shared helpers (bd-0702, bd-1445) 2025-11-02 14:49:27 -08:00
ids.go Switch from hex to Base36 encoding for issue IDs (GH #213) 2025-11-03 12:02:15 -08:00
issues.go Refactor: consolidate ID generation and shared helpers (bd-0702, bd-1445) 2025-11-02 14:49:27 -08:00
labels.go Refactor: Replace manual transaction handling with withTx() helper 2025-11-02 12:55:47 -08:00
labels_test.go test: Add comprehensive test coverage for storage layer 2025-10-15 01:30:28 -07:00
migration_invariants.go Add migration inspection tools for AI agents (bd-627d Phase 2) 2025-11-02 14:03:14 -08:00
migration_invariants_test.go Add migration inspection tools for AI agents (bd-627d Phase 2) 2025-11-02 14:03:14 -08:00
migrations.go Add external_ref UNIQUE constraint and validation 2025-11-02 16:27:42 -08:00
migrations_test.go Add external_ref UNIQUE constraint and validation 2025-11-02 16:27:42 -08:00
prefix_validation_test.go Complete bd-175, bd-176, bd-177: Memory tests, corruption docs, prefix validation 2025-10-27 11:29:08 -07:00
ready.go Add template support for issue creation (bd-164b) 2025-11-03 20:31:11 -08:00
ready_test.go Complete bd-95: Add content-addressable identity (ContentHash field) 2025-10-28 18:57:16 -07:00
schema.go Implement external_ref as primary matching key for import updates (bd-1022) 2025-11-02 15:28:09 -08:00
sqlite.go fix: resolve test failures from speedup changes 2025-11-04 01:08:21 -08:00
sqlite_test.go fix: resolve test failures from speedup changes 2025-11-04 01:08:21 -08:00
test_helpers.go fix: resolve test failures from speedup changes 2025-11-04 01:08:21 -08:00
underlying_db_test.go Fix all test failures from bd-166 (missing issue_prefix) 2025-10-26 22:31:24 -07:00
util.go Refactor: Replace manual transaction handling with withTx() helper 2025-11-02 12:55:47 -08:00
util_test.go test: improve coverage for importer and sqlite utils 2025-11-01 11:35:31 -07:00
validators.go Refactor sqlite.go: Extract hash IDs, batch ops, validators (bd-90a5, bd-c796, bd-d9e0) 2025-11-01 19:55:48 -07:00
validators_test.go Refactor sqlite.go: Extract hash IDs, batch ops, validators (bd-90a5, bd-c796, bd-d9e0) 2025-11-01 19:55:48 -07:00