AWS allows at most 50 concurrent executions per QUEUED or PARALLEL
pipeline. StartPipelineExecution now counts the pipeline's InProgress
and Stopping executions under a per-pipeline admission lock and returns
ConcurrentPipelineExecutionsLimitExceededException at the limit. The
admission lock is separate from the monitor a QUEUED worker holds for
its whole run, so a start never waits for the running execution.
A start that reaches the executor after shutdown is persisted as Failed
and returns ConflictException instead of leaking
RejectedExecutionException. Shutdown waits up to five seconds for
execution workers to stop so their final status writes complete before
the process exits.
* feat: tighten CodePipeline P0 operation contracts
* fix(codepipeline): reject malformed filters and stop stranding approvals on rename
- ListPipelineExecutions: reject non-string succeededInStage.stageName,
unknown filter/succeededInStage members, and non-integer maxResults
instead of silently coercing them.
- PutApprovalResult: reject non-string result.summary instead of
coercing it, and split the "result is required" error from a
clearer "result must be an object" error for wrong-typed payloads.
- PutApprovalResult: look up the pending approval by token across the
execution's own captured stage/action names before consulting the
pipeline's current declaration, so renaming or removing a stage or
action via UpdatePipeline no longer strands an in-flight approval
behind a StageNotFoundException/ActionNotFoundException.
- Replace fixed Thread.sleep(100) waits in
CodePipelineIntegrationTest with polling helpers
(waitForApprovalToken/waitForApprovalStatus) matching the existing
waitForJob/waitForExecution pattern, removing test flakiness.