Files
git.stella-ops.org/docs/features/unchecked/releaseorchestrator/deployment-rollback-manager-with-automated-failure-recovery.md

2.4 KiB

Deployment Rollback Manager with Automated Failure Recovery

Module

ReleaseOrchestrator

Status

IMPLEMENTED

Description

Automated deployment rollback system that plans rollback strategies for failed deployments, executes rollback to previous releases across multiple targets, tracks rollback progress, and generates rollback evidence. Supports RedeployPrevious, RestoreSnapshot, and Manual strategies.

Implementation Details

  • Modules: src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Deployment/Rollback/
  • Key Classes:
    • RollbackManager (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Deployment/Rollback/RollbackManager.cs) - orchestrates rollback execution across targets
    • RollbackPlanner (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Deployment/Rollback/RollbackPlanner.cs) - plans rollback strategy (RedeployPrevious, RestoreSnapshot, Manual)
    • PartialRollbackPlanner (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Deployment/Rollback/PartialRollbackPlanner.cs) - plans partial rollbacks for subset of targets
    • RollbackEvidenceGenerator (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Deployment/Rollback/RollbackEvidenceGenerator.cs) - generates audit evidence for rollback actions
    • HealthAnalyzer (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Deployment/Rollback/HealthAnalyzer.cs) - analyzes deployment health to trigger rollback
    • ImpactAnalyzer (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Deployment/Rollback/ImpactAnalyzer.cs) - analyzes rollback impact before execution
  • Interfaces: IRollbackManager, IPartialRollbackPlanner, IHealthAnalyzer, IImpactAnalyzer
  • Source: SPRINT_20260110_107_004_DEPLOY_rollback_manager.md

E2E Test Plan

  • Trigger a rollback via RollbackManager and verify the previous release is restored
  • Verify RollbackPlanner selects RedeployPrevious strategy when previous release is available
  • Verify partial rollback: roll back only a subset of targets using PartialRollbackPlanner
  • Verify HealthAnalyzer detects unhealthy deployment and triggers automatic rollback
  • Verify ImpactAnalyzer estimates rollback impact before execution
  • Verify RollbackEvidenceGenerator produces audit evidence for the rollback action