Skip to content

refactor: remove unused mockall, fix flaky tests#634

Merged
AlexMikhalev merged 1 commit intomainfrom
cleanup/phase-5-deps
Mar 5, 2026
Merged

refactor: remove unused mockall, fix flaky tests#634
AlexMikhalev merged 1 commit intomainfrom
cleanup/phase-5-deps

Conversation

@AlexMikhalev
Copy link
Contributor

Summary

  • Remove mockall = "0.14.0" from desktop/src-tauri dev-dependencies (never used)
  • Fix 2 flaky tests that fail when run as part of workspace:
    • test_save_one_memory: handle global storage singleton race condition
    • test_circuit_breaker_half_open_after_cooldown: increase timing margin

Most dependency duplicates (ahash 0.7/0.8, toml 0.5/0.9, thiserror 1.0/2.0) are transitive via upstream crates and cannot be resolved without breaking changes.

Test plan

  • cargo test --workspace --lib passes (all tests green)
  • cargo check --workspace passes
  • Pre-commit hooks pass

Closes #627

Generated with Terraphim AI

- Remove mockall = "0.14.0" from desktop/src-tauri dev-dependencies
  (never used, project policy forbids mocks in tests)
- Fix test_save_one_memory in terraphim_config: handle global storage
  singleton already initialized by other tests with different profiles
- Fix test_circuit_breaker_half_open_after_cooldown in terraphim_spawner:
  increase sleep margin from 5ms to 50ms to prevent flaking under load

Most dependency duplicates (ahash 0.7/0.8, toml 0.5/0.9, lru 0.7/0.16,
thiserror 1.0/2.0) are transitive and unavoidable without upstream
crate changes.

Refs: #627

Co-Authored-By: Terraphim AI <noreply@anthropic.com>
@AlexMikhalev AlexMikhalev force-pushed the cleanup/phase-5-deps branch from 5405c85 to 51c5149 Compare March 5, 2026 23:09
@AlexMikhalev AlexMikhalev merged commit 1b70483 into main Mar 5, 2026
@AlexMikhalev AlexMikhalev deleted the cleanup/phase-5-deps branch March 5, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cleanup] Phase 5: Dependency deduplication

1 participant