Files
floci/docs
Sam Fakhreddine 4c22aaad2e feat(codepipeline): evaluate V2 stage conditions and rules (#4617)
* feat(codepipeline): evaluate V2 stage conditions and rules

Evaluates beforeEntry/onSuccess conditions with VariableCheck and LambdaInvoke rules, records rule executions, and supports OverrideStageCondition.

* fix(codepipeline): bound MATCHES evaluation time and guard rule records and overrides against races

MATCHES: match against a deadline-checked CharSequence so a backtracking pattern fails the rule after 1s instead of hanging the run.
Rule records: mutate and serialize them under the execution lock, and build ListRuleExecutions from a locked snapshot.
OverrideStageCondition: when the run has failed on the condition but not yet left activeRuns, wait (bounded, outside the lock) so the override resumes it.

* fix(codepipeline): harden V2 stage conditions after review

Honor SKIP only before entry, resolve declared variable defaults, fail
rules on unresolved variable references, reject overrides after a pipeline
change, surface a busy-run override as a conflict, hide internal condition
state from GetPipelineExecution, and use the DeploymentWindow provider name.

* fix(codepipeline): keep an accepted stage-condition override when another waiter times out

* fix(codepipeline): reject stale OverrideStageCondition with ConditionNotOverridableException

* refactor(codepipeline): share the busy ConflictException across its four throw sites

* refactor(codepipeline): inject the override test hooks through the constructor

* fix(codepipeline): emit no stage events for a stage skipped by beforeEntry
2026-10-03 14:36:40 -04:00
..
2026-03-15 17:43:56 -05:00