ci: workaround Cirrus CI's INVALID_ARGUMENT
We are constantly getting the message below from Cirrus CI; > Machine type with name 'c2-standard-2' does not exist in zone 'us-central1-c'." Seems Cirrus CI is constructing the machine type based on the "cpu" field from the YAML file. However c2-standard's minimal vCPU count is 4 based on the official document below. https://cloud.google.com/compute/docs/compute-optimized-machines Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
parent
e4fefea554
commit
cc30880e84
13
.cirrus.yml
13
.cirrus.yml
@ -1,6 +1,5 @@
|
|||||||
# While Cirrus CI gives open-source projects free 16.0 CPUs,
|
# Cirrus CI gives open-source projects free 16.0 CPUs,
|
||||||
# we use only 2 CPUs x 3 tasks = 6 CPUs since the tests here aren't fully
|
# we use 4 CPUs x 3 tasks = 12 CPUs.
|
||||||
# utilizing multiple CPUs.
|
|
||||||
# https://cirrus-ci.org/faq/#are-there-any-limits
|
# https://cirrus-ci.org/faq/#are-there-any-limits
|
||||||
#
|
#
|
||||||
# Undocumented constraints;
|
# Undocumented constraints;
|
||||||
@ -15,8 +14,8 @@ task:
|
|||||||
image: family/docker-kvm
|
image: family/docker-kvm
|
||||||
platform: linux
|
platform: linux
|
||||||
nested_virtualization: true
|
nested_virtualization: true
|
||||||
cpu: 2
|
cpu: 4
|
||||||
memory: 8G
|
memory: 16G
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GOTEST: gotestsum --
|
GOTEST: gotestsum --
|
||||||
@ -54,8 +53,8 @@ task:
|
|||||||
image: family/docker-kvm
|
image: family/docker-kvm
|
||||||
platform: linux
|
platform: linux
|
||||||
nested_virtualization: true
|
nested_virtualization: true
|
||||||
cpu: 2
|
cpu: 4
|
||||||
memory: 8G
|
memory: 16G
|
||||||
|
|
||||||
install_libvirt_vagrant_script: |
|
install_libvirt_vagrant_script: |
|
||||||
apt-get update
|
apt-get update
|
||||||
|
Loading…
Reference in New Issue
Block a user