3.5 KiB
3.5 KiB
Pack-Run Bridge (TaskRunner Integration)
Module
Orchestrator
Status
IMPLEMENTED
Description
Pack-run integration with Postgres repository, API endpoints, stream coordinator for log/artifact streaming, and domain model.
Implementation Details
- Modules:
src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Core/Domain/,src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/ - Key Classes:
Pack(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Core/Domain/Pack.cs) - pack entity containing a set of jobs to execute as a unitPackRun(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Core/Domain/PackRun.cs) - pack-run entity tracking execution of a pack instancePackRunLog(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Core/Domain/PackRunLog.cs) - log entries for pack-run executionPackRunStreamCoordinator(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/Streaming/PackRunStreamCoordinator.cs) - coordinates real-time streaming of pack-run logs and artifactsPackRunEndpoints(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/Endpoints/PackRunEndpoints.cs) - REST API for creating, querying, and managing pack runsPackRegistryEndpoints(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/Endpoints/PackRegistryEndpoints.cs) - REST API for pack registration and versioningPackRunContracts(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/Contracts/PackRunContracts.cs) - API contracts for pack-run operationsPackRegistryContracts(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/Contracts/PackRegistryContracts.cs) - API contracts for pack registryRun(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Core/Domain/Run.cs) - individual run within a pack executionRunEndpoints(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/Endpoints/RunEndpoints.cs) - REST API for run managementRunContracts(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.WebService/Contracts/RunContracts.cs) - API contracts for run operations
- Interfaces:
IPackRunRepository(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Infrastructure/Repositories/IPackRunRepository.cs),IPackRegistryRepository(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Infrastructure/Repositories/IPackRegistryRepository.cs),IRunRepository(src/Orchestrator/StellaOps.Orchestrator/StellaOps.Orchestrator.Infrastructure/Repositories/IRunRepository.cs) - Source: Feature matrix scan
E2E Test Plan
- Register a pack via
PackRegistryEndpointswith 3 jobs and verify it is persisted with version 1 - Create a pack run via
PackRunEndpointsand verify it starts executing the pack's jobs - Subscribe to the pack-run stream via
PackRunStreamCoordinatorand verify real-time log entries arrive as jobs execute - Verify pack-run completion: all 3 jobs complete and the
PackRuntransitions to Completed - Verify pack versioning: update a pack and verify
PackRegistryEndpointscreates version 2 while preserving version 1 - Query
PackRunLogentries via the API and verify all log entries are returned in chronological order - Fail one job in a pack run and verify the pack run reports partial failure
- Create multiple pack runs concurrently and verify they execute independently