Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: examples/ecs/nodejs add missing dependsOn #1441

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Dec 16, 2024

Pulumi was not recognizing that the underlying aws.ecs.Service should wait for the load balancer to be provisioned, causing a race that sporadically would flake up the test. This is now compensated by with a dependsOn option.

Fixes #1418

Pulumi was not recognizing that the underlying aws.ecs.Service should wait for the load balancer to be provisioned,
causing a race that sporadically would flake up the test. This is now compensated by with a dependsOn option.

Fixes #1418
@t0yv0 t0yv0 requested a review from corymhall December 16, 2024 19:15
@t0yv0
Copy link
Member Author

t0yv0 commented Dec 16, 2024

#1442 marking another test as a flaky test.

@@ -29,6 +29,8 @@ const service = new ecs.FargateService("my-service", {
subnets: vpc.publicSubnetIds,
assignPublicIp: true,
},
}, {
dependsOn: [lb.loadBalancer],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add logic to the FargateService component to automatically add the dependency on the load balancer?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on our conversation I think we concluded given the component is under the classic portion of the provider our preference would be to sanitize examples instead to not rely on those components.

@t0yv0 t0yv0 merged commit 0f52a8d into master Dec 17, 2024
11 checks passed
@t0yv0 t0yv0 deleted the t0yv0/fix-1418 branch December 17, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky TestAccEcsCapacityProviderService
2 participants