Commit Graph

4 Commits

Author SHA1 Message Date
f5039d46b6 docs: add git worktree isolation section
Document the critical requirement to set COMPOSE_PROJECT_NAME for
worktree isolation:

- Problem: Without COMPOSE_PROJECT_NAME, all worktrees share image
  names (e.g., test-price-db:latest) causing build conflicts
- Solution: export COMPOSE_PROJECT_NAME="test-${TEST_INSTANCE_ID}"
- Cleanup scoping: Only remove containers for current branch

Also updated:
- Common Mistakes table with new isolation pitfalls
- Service Test Script Template with COMPOSE_PROJECT_NAME export
2025-12-30 20:51:02 -05:00
f32a992114 Add single-service project guidance
- Simplified directory structure (no services/ layer)
- 2-stage testing (unit + integration, skip service stage)
- Simplified CI/CD without matrix builds
- When to use multi-service structure anyway
2025-12-30 17:20:23 -05:00
a234cf92e0 Add test performance optimization requirements
- Remove time estimates from test stages
- Add Test Performance Optimization section with:
  - Requirement to time tests and investigate outliers
  - Common issue: tests awaiting timeouts instead of conditions
  - Code example showing bad vs good async waiting patterns
  - Guidance on fixture caching and parallelization
2025-12-30 17:15:47 -05:00
09e38eadd9 Initial commit: docker-service-architecture skill
Comprehensive skill for Docker containerization patterns including:
- Multi-service project organization (services/<name>/)
- Environment-specific deployments (dev/test/prod)
- 3-stage testing pipeline (unit/service/integration)
- Branch-isolated test environments with dynamic ports
- CI/CD pipeline with semantic versioning
- Rich test runner with context-efficient output
2025-12-30 15:11:50 -05:00