From bce6cd16ff6bf77f1c82a7a9db5a69fa6892bc83 Mon Sep 17 00:00:00 2001 From: "Matthew (Matt) Jeffryes" Date: Tue, 28 Nov 2023 11:16:38 -0800 Subject: [PATCH] Retry flakey integration tests (#97) As per, https://github.com/pulumi/pulumi-aws-native/issues/1186 we're seeing intermittent errors in the creation of `aws-native:ec2:SubnetRouteTableAssociation` This change enables retries for the affected tests to reduce the noise until we have an upstream fix Fixes https://github.com/pulumi/pulumi-cdk/issues/96 --- examples/examples_nodejs_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/examples_nodejs_test.go b/examples/examples_nodejs_test.go index d0852bba..4e00ba5d 100644 --- a/examples/examples_nodejs_test.go +++ b/examples/examples_nodejs_test.go @@ -63,6 +63,7 @@ func TestALB(t *testing.T) { With(integration.ProgramTestOptions{ Dir: filepath.Join(getCwd(t), "alb"), NoParallel: true, // Resources may collide with TestFargate + RetryFailedSteps: true, // Workaround for https://github.com/pulumi/pulumi-aws-native/issues/1186 }) integration.ProgramTest(t, &test) @@ -73,6 +74,7 @@ func TestFargate(t *testing.T) { With(integration.ProgramTestOptions{ Dir: filepath.Join(getCwd(t), "fargate"), NoParallel: true, + RetryFailedSteps: true, // Workaround for https://github.com/pulumi/pulumi-aws-native/issues/1186 }) integration.ProgramTest(t, &test)