AWS system test eks and fargate profile: get subnets as external parameter#29276
AWS system test eks and fargate profile: get subnets as external parameter#29276o-nikolas merged 1 commit intoapache:mainfrom
Conversation
vandonr-amz
left a comment
There was a problem hiding this comment.
nice, with a side benefit of making the test simpler to read, and also faster as deleting the nat gateway was taking ~45s :D
|
Agreed, great change. So beautiful when you can just use the variable fetcher to hide the nasty bits of creating/managing resources 😄 |
ferruzzi
left a comment
There was a problem hiding this comment.
I do love a negative linecount.
For posterity: generally we would prefer to set up and tear down in the test, this is only getting changed because of the race condition it was causing.
Good call out 👍 |
|
FYI: @vincbeck is just making some internal preparations (to create the subnets that this test now expects to be present). I'll merge these changes tomorrow when that is done. |
In both system tests
example_eks_with_fargate_profileandexample_eks_with_fargate_in_one_stepsubnets are created within the system test. In order to create these subnets, an available CIDR block is created with the function_get_next_available_cidr. When both tests are running at the same time, some race condition can happen and both tests might pick the same CIDR blocks which then result as a failure.To avoid that, I rather create these subnets outside of the system test and fetch them as external parameter