Revert "Upgrade Bazel CI machines (#2689) (#2862)" (#2868)
This reverts commit 1493d54dd8e43b89b840a6d053e658a8d5401679.
There is more demand and less supply for c3d machines in us-central1,
and builds are choked waiting on more VM availability.
diff --git a/buildkite/create_images.py b/buildkite/create_images.py
index 705bbca..efc327e 100755
--- a/buildkite/create_images.py
+++ b/buildkite/create_images.py
@@ -23,7 +23,7 @@
import gcloud_utils
DEBUG = False
-DEFAULT_MACHINE_TYPE = "c3d-standard-8"
+DEFAULT_MACHINE_TYPE = "c2-standard-8"
DEFAULT_BOOT_DISK_TYPE = "pd-ssd"
IMAGE_CREATION_VMS = {
@@ -33,7 +33,7 @@
"source_image_project": "ubuntu-os-cloud",
"source_image_family": "ubuntu-2204-lts",
"setup_script": "setup-docker.sh",
- "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE", "GVNIC"],
+ "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE"],
"licenses": [
"https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
],
@@ -44,7 +44,7 @@
"source_image_project": "ubuntu-os-cloud",
"source_image_family": "ubuntu-2204-lts-arm64",
"setup_script": "setup-docker.sh",
- "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE", "GVNIC"],
+ "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE"],
"licenses": [
"https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
],
@@ -57,7 +57,7 @@
"source_image_project": "windows-cloud",
"source_image_family": "windows-2022", # vs build tools failed to install on windows-2022-core
"setup_script": "setup-windows.ps1",
- "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE", "GVNIC"],
+ "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE"],
},
"windows-playground": {
"project": "di-cloud-exp",
@@ -66,7 +66,7 @@
"source_image_project": "windows-cloud",
"source_image_family": "windows-2022",
"setup_script": "setup-windows.ps1",
- "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE", "GVNIC"],
+ "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE"],
},
}
diff --git a/buildkite/instances.yml b/buildkite/instances.yml
index 8895fb9..bcbcb82 100644
--- a/buildkite/instances.yml
+++ b/buildkite/instances.yml
@@ -14,7 +14,7 @@
default_vm:
boot_disk_size: 500GB
boot_disk_type: pd-ssd
- machine_type: c3d-standard-30
+ machine_type: c2-standard-30
network: default
region: us-central1
restart-on-failure: False
@@ -26,13 +26,13 @@
initial_delay: 60
instance_groups:
- name: bk-docker
- count: 160
+ count: 120
project: bazel-untrusted
service_account: buildkite@bazel-untrusted.iam.gserviceaccount.com
image_family: bk-docker
metadata_from_file: startup-script=startup-docker-pdssd.sh
- name: bk-testing-docker
- count: 20
+ count: 10
project: bazel-untrusted
service_account: buildkite-testing@bazel-untrusted.iam.gserviceaccount.com
image_family: bk-testing-docker
@@ -71,14 +71,14 @@
zone: us-central1-c
boot_disk_type: hyperdisk-balanced
- name: bk-windows
- count: 100
+ count: 60
project: bazel-untrusted
service_account: buildkite@bazel-untrusted.iam.gserviceaccount.com
image_family: bk-windows
metadata_from_file: windows-startup-script-ps1=startup-windows-pdssd.ps1
zone: us-central1-c
- name: bk-testing-windows
- count: 10
+ count: 5
project: bazel-untrusted
service_account: buildkite-testing@bazel-untrusted.iam.gserviceaccount.com
image_family: bk-testing-windows
diff --git a/buildkite/promote_images.py b/buildkite/promote_images.py
index 61fb8ff..25187ef 100755
--- a/buildkite/promote_images.py
+++ b/buildkite/promote_images.py
@@ -27,7 +27,7 @@
"project": "bazel-public",
"source_image_project": "bazel-public",
"source_image_family": "bk-testing-docker",
- "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE", "GVNIC"],
+ "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE"],
"licenses": [
"https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
],
@@ -36,7 +36,7 @@
"project": "bazel-public",
"source_image_project": "bazel-public",
"source_image_family": "bk-testing-docker-arm64",
- "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE", "GVNIC"],
+ "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE"],
"licenses": [
"https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
],
@@ -45,7 +45,7 @@
"project": "bazel-public",
"source_image_project": "bazel-public",
"source_image_family": "bk-testing-windows",
- "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE", "GVNIC"],
+ "guest_os_features": ["VIRTIO_SCSI_MULTIQUEUE"],
},
}