Skip to content

fix: add rollback to project create and dependency injection for managers#33

Merged
elitan merged 1 commit intomainfrom
fix/project-create-rollback-and-di
Dec 26, 2025
Merged

fix: add rollback to project create and dependency injection for managers#33
elitan merged 1 commit intomainfrom
fix/project-create-rollback-and-di

Conversation

@elitan
Copy link
Owner

@elitan elitan commented Dec 26, 2025

Summary

Test plan

  • All 91 existing tests pass
  • Build succeeds

🤖 Generated with Claude Code

…gers (#20, #19)

- Add rollback handling to projectCreateCommand to clean up resources on failure
  - Registers cleanup for: ZFS dataset, SSL certs, WAL archive, Docker container
  - Executes cleanup in LIFO order on failure
  - Prevents orphaned resources when project creation fails mid-way

- Add dependency injection support to managers for testability
  - DockerManager: optional socketPath parameter
  - WALManager: optional basePath parameter
  - service-factory: ServiceOverrides interface for initializeServices()

Closes #20
Closes #19

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@elitan elitan merged commit f6c2647 into main Dec 26, 2025
2 checks passed
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.

bug: project create has no rollback - orphans resources on failure refactor: consider dependency injection for managers

1 participant