feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready

This commit is contained in:
2025-10-31 01:39:24 +01:00
parent 55c04e4fd0
commit e26eb2aa12
601 changed files with 44184 additions and 32477 deletions

View File

@@ -13,6 +13,8 @@ use App\Framework\ErrorAggregation\ErrorAggregator;
use App\Framework\ErrorAggregation\ErrorAggregatorInterface;
use App\Framework\ErrorAggregation\Storage\InMemoryErrorStorage;
use App\Framework\ErrorHandling\ErrorHandler;
use App\Framework\ErrorHandling\ErrorHandlerManager;
use App\Framework\ErrorHandling\ErrorHandlerRegistry;
use App\Framework\ErrorReporting\ErrorReporter;
use App\Framework\ErrorReporting\ErrorReporterInterface;
use App\Framework\ErrorReporting\Storage\InMemoryErrorReportStorage;
@@ -25,11 +27,19 @@ use App\Framework\Http\RequestIdGenerator;
use App\Framework\Http\ResponseEmitter;
use App\Framework\DI\DefaultContainer;
use App\Framework\Queue\InMemoryQueue;
use App\Framework\Logging\Logger;
use App\Framework\Logging\LogLevel;
use App\Framework\Logging\ValueObjects\LogContext;
use App\Framework\Logging\InMemoryLogger;
describe('ErrorHandler Full Pipeline Integration', function () {
beforeEach(function () {
// Create all dependencies
$this->container = new DefaultContainer();
// Create and bind InMemoryLogger for testing
$this->logger = new InMemoryLogger();
$this->container->bind(Logger::class, fn() => $this->logger);
$this->emitter = new ResponseEmitter();
$this->requestIdGenerator = new RequestIdGenerator();
@@ -110,7 +120,7 @@ describe('ErrorHandler Full Pipeline Integration', function () {
cache: $this->cache,
clock: $this->clock,
alertQueue: $this->alertQueue,
logger: null,
logger: $this->logger,
batchSize: 100,
maxRetentionDays: 90
);
@@ -122,13 +132,17 @@ describe('ErrorHandler Full Pipeline Integration', function () {
$this->errorReporter = new ErrorReporter(
storage: $this->errorReportStorage,
clock: $this->clock,
logger: null,
logger: $this->logger,
queue: $this->reportQueue,
asyncProcessing: false, // Synchronous for testing
processors: [],
filters: []
);
// Create ErrorHandlerManager
$registry = new ErrorHandlerRegistry();
$this->handlerManager = new ErrorHandlerManager($registry);
// Create ErrorHandler with full pipeline
$this->errorHandler = new ErrorHandler(
emitter: $this->emitter,
@@ -136,7 +150,8 @@ describe('ErrorHandler Full Pipeline Integration', function () {
requestIdGenerator: $this->requestIdGenerator,
errorAggregator: $this->errorAggregator,
errorReporter: $this->errorReporter,
logger: null,
handlerManager: $this->handlerManager,
logger: $this->logger,
isDebugMode: true,
securityHandler: null
);