rdev/internal/adapter
jordan f20fc6c51c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat(saga): implement enterprise-grade resilience architecture
Fixes issues from code review of resilience implementation:

- Wire saga system in main.go (SagaRepository, SagaExecutor, SagaHandler)
- Fix CompletedSteps() to include skipped steps for dependency resolution
- Fix reverse loop bug in saga compensation (use standard swap pattern)
- Add circuit breaker state change callbacks for Prometheus metrics

Phase 1 (Build Resilience):
- Add failure:retry to all component Kaniko build steps
- Add preflight registry health check before builds
- Add services-deployed sync point to decouple docs from critical path

Phase 2 (API Resilience):
- Add pipeline retry endpoint (POST /projects/{id}/pipelines/{number}/retry)
- Wire circuit breakers with metrics callbacks
- Add /health/circuits endpoint for circuit breaker status

Phase 3 (Saga Engine):
- Full domain model (Saga, SagaStep, RetryPolicy, BackoffType)
- PostgreSQL saga repository with CRUD and step management
- Saga executor with retry, compensation, skip step support
- Saga API handlers with CRUD and control operations

Phase 4 (Observability):
- Add saga metrics (total, step_duration, retry, circuit_breaker_state)
- Add logging fields (saga_id, saga_name, step_name)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 01:58:02 -07:00
..
cached feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
claudebox fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
cloudflare feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
cockroach fix: Use FQDN for k8s service hostnames and remove broken commonLabels 2026-01-31 20:46:04 -07:00
codeagent chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
deployer feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
gitea feat: add diagnostics endpoint and external health monitoring 2026-02-03 19:10:56 -07:00
kubernetes fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
memory chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
postgres feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
redis chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
sdlc fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
templates feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
woodpecker feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
zot feat: fix composable monorepo CI builds + health endpoint improvements 2026-02-03 18:46:51 -07:00