Commit graph

4 commits

Author SHA1 Message Date
beads/crew/jane
43df89b2ff fix: repair nightly integration test compilation failures
Six categories of orphaned test references accumulated from prior
refactorings (JSONL removal, SQLite removal, daemon deletion, sync
engine rewrite):

- delete_test.go: remove removeIssueFromJSONL call and JSONL helpers
  (deleted in JSONL refactoring)
- dolt_autocommit_integration_test.go: restore setupGitRepoForIntegration
  and isDoltBackendUnavailable helpers (lost in SQLite backend removal)
- gitlab_integration_test.go: remove tests calling doPullFromGitLab,
  doPushToGitLab, detectGitLabConflicts (replaced by tracker.Engine)
- init_cancel_e2e_test.go: restore runGitCmd helper (lost in sync
  engine gut)
- update_custom_type_test.go, update_edge_cases_test.go: delete
  orphaned dual-mode tests referencing removed RunDualModeTest infra
- dolt_autostart_lifecycle_integration_test.go: rename redeclared
  runBDExecAllowErrorWithEnv to avoid conflict with cli_fast_test.go
- Add test_helpers_integration_test.go with initExecTestDB and
  createExecTestIssue helpers for CLI integration tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 18:05:48 -07:00
beads/crew/emma
51bb65644b fix(test): comprehensive Dolt skip guards across all test files
Bulk convert t.Fatalf to t.Skipf for dolt.New() connection errors in
16 test files (44 call sites). Tests now gracefully skip when Dolt
server is not available instead of failing CI.

Also improve skipIfNoDolt to check testDoltServerPort (handles macOS
CI where dolt binary exists but no server is running).

Files fixed: cli_coverage_show_test, contributor_routing_e2e_test,
doctor/{database,fix/metadata_dolt,maintenance_cgo,migration_validation,
validation}_test, gitlab_integration_test, init_test, migrate_test,
move_test, rename_prefix{,_repair}_test, sql_test, status_test,
update_metadata_test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-22 21:53:11 -08:00
collins
237f47ba7e feat: delete SQLite storage backend (Phase 2 of Dolt transition)
Remove the entire internal/storage/sqlite/ package (~43K lines) and update
all 80+ files that imported it to use either the Dolt backend directly
(test files) or the storage factory (production files).

Key changes:
- Delete internal/storage/sqlite/ directory (150+ files)
- Update factory to make Dolt the sole backend, treating "sqlite" as alias for "dolt"
- Replace sqlite.New() calls with dolt.New() in tests, factory.New() in production
- Replace *sqlite.SQLiteStorage with storage.Storage interface throughout
- Replace :memory: SQLite URIs with t.TempDir() for Dolt compatibility
- Inline sqlite.GenerateIssueID() as SHA-256 content hashing where needed
- Fix import cycle in routing/routes.go (routing→factory→dolt→routing)
- Preserve backward-compatible beads.NewSQLiteStorage() wrapper in public API

228 files changed, 605 insertions, 43,821 deletions.
go vet ./... passes clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 12:23:15 -08:00
Ramos
efe31b4578 Add integration tests for GitLab backend (Issue #11)
Add gitlab_integration_test.go with end-to-end tests:
- TestGitLabSyncRoundtrip: Pull from GitLab, create local, push back
- TestGitLabConflictStrategiesIntegration: prefer-local/gitlab/newer flags
- TestGitLabConflictDetectionIntegration: Detect conflicts between local/GitLab
- TestIncrementalSync: Full sync then incremental sync with last_sync timestamp

Uses httptest mock servers and in-memory SQLite stores to test complete
sync flows without external dependencies.

Run with: go test -tags=integration ./cmd/bd/...

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-01-31 00:01:45 -08:00