Use multiple GCP zones for integration tests #4704
Labels
Team:Elastic-Agent
Label for the Agent team
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Describe the enhancement:
When running integration tests, we're currently creating VMs only in the
us-central1-1a
zone.According to this comment:
elastic-agent/magefile.go
Lines 2570 to 2572 in 52be253
This was done to ensure that we can create ARM-based VMs for testing. The zone is configurable by
TEST_INTEG_AUTH_GCP_DATACENTER
environment variable.The limitations on ARM CPUs have changed and it's no longer just the
us-central1-1a
zone.According to this https://cloud.google.com/compute/docs/regions-zones/
We can choose among:
However, only bottom 3 are relevant for us because of the buildkite region (to avoid multi-region networking).
We should change our test framework and/or our CI setup to use the list of zones for each architecture:
x86:
ARM:
We should rotate the list and run our test runners in all zones instead of concentrating resources in one zone.
Describe a specific use case for the enhancement or feature:
We've exceeded available resources in
us-central1-1a
on multiple occasions, this will significantly increase our integration test stability.What is the definition of done?
Our integration tests utilize all the GCP zones listed above (according to the CPU architecture).
The text was updated successfully, but these errors were encountered: