You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEAT] CodeDeploy: ECS blue/green test listener and AfterAllowTestTraffic hook #8781
ECS blue/green deployments with a test listener: loadBalancerInfo.targetGroupPairInfoList[].testTrafficRoute.listenerArns, and the AfterAllowTestTraffic lifecycle hook.
Before AfterAllowTestTraffic, CodeDeploy points the test listener at the green target group. Teams run their test suites from that hook, against the test listener, before any production traffic moves. AWS CDK blue/green setups (EcsDeploymentGroup with testListener) work this way.
Floci runs only BeforeInstall, AfterInstall, BeforeAllowTraffic and AfterAllowTraffic (per https://floci.io/floci/services/codedeploy/). It does not route the test listener to green and never invokes the AfterAllowTestTraffic Lambda. So those test suites never run, and the deployment succeeds without them.
Asks:
When the deployment group has a testTrafficRoute, point its listeners' default forward action at the green target group after install.
Invoke the AfterAllowTestTraffic hook Lambda at that point, in the AWS order, and fail or roll back the deployment on a Failed status, as for the other hooks.
Minimal reproduction:
# Deployment group with prod listener $PROD_L and test listener $TEST_L
aws deploy create-deployment-group ... \
--load-balancer-info "targetGroupPairInfoList=[{targetGroups=[{name=blue},{name=green}],prodTrafficRoute={listenerArns=[$PROD_L]},testTrafficRoute={listenerArns=[$TEST_L]}}]"# AppSpec with all five hooks, each a Lambda that logs its name# and calls PutLifecycleEventHookExecutionStatus Succeeded
aws deploy create-deployment --application-name app --deployment-group-name dg --revision ...
# Expected: AfterAllowTestTraffic runs after AfterInstall, while $TEST_L forwards to green# Actual: AfterAllowTestTraffic never runs; $TEST_L is not changed
Environment: Floci nightly of November 16, 2026, Docker.
Related: #677 added the ALB proxy and CodeDeploy ECS flow; #8464 fixed the initial task set.
Fix staged in AndreKurait#1235 (main) and AndreKurait#1236 (dev). Configured test listeners now forward to green before AfterAllowTestTraffic; a failed route, failed hook or stop prevents production shifting.
Three regression assertions fail on prior main. Validation passes: 99 main tests (including 17 schema checks), 86 dev tests, package, full Checkstyle and static gates. Each includes three Java SDK cases through the CodeDeploy HTTP API, with ECS/ELB/Lambda collaborators mocked. No live AWS, packet-level or native claim.
Both PRs remain staged; the released dev image is unchanged.
Activity
AndreKurait commentedon Nov 19, 2026
Fix staged in AndreKurait#1235 (main) and AndreKurait#1236 (dev). Configured test listeners now forward to green before
AfterAllowTestTraffic; a failed route, failed hook or stop prevents production shifting.Three regression assertions fail on prior main. Validation passes: 99 main tests (including 17 schema checks), 86 dev tests, package, full Checkstyle and static gates. Each includes three Java SDK cases through the CodeDeploy HTTP API, with ECS/ELB/Lambda collaborators mocked. No live AWS, packet-level or native claim.
Both PRs remain staged; the released dev image is unchanged.