From 56e7b511e1d1568809e7b4066b97adb2d498fed1 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 5 Apr 2023 13:15:31 -0400 Subject: [PATCH] Cirrus: Enable labeling of EC2 VMs In GCP, user specified VM names are required upon creation. Cirrus-CI generates helpful names containing the task-ID. Unfortunately in EC2 the VM ID's are auto-generated, and special permissions are required to allow secondary setting of a `Name` tag. Since this permission has been granted, enable the `experimental` flag on EC2 tasks so that cirrus can update VM name-tags. This is especially useful in troubleshooting orphaned VMs. Ref: https://github.com/containers/podman/issues/18065#issuecomment-1497779159 Signed-off-by: Chris Evich --- .cirrus.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 43413c84fa..b71049c161 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -193,6 +193,9 @@ build_aarch64_task: # Multiarch doesn't depend on buildability in this automation context # Docs: ./contrib/cirrus/CIModes.md only_if: "$CIRRUS_CRON != 'multiarch'" + # Enable labeling of EC2 VMs with cirrus task ID. TODO: This can be + # removed when the feature goes mainstream. + experimental: true ec2_instance: &standard_build_ec2_aarch64 image: ${VM_IMAGE_NAME} type: ${EC2_INST_TYPE} @@ -271,7 +274,7 @@ validate_aarch64_task: only_if: *is_pr depends_on: - build_aarch64 - # golangci-lint is a very, very hungry beast. + experimental: true # Enable labeling of EC2 VMs with cirrus task ID ec2_instance: *standard_build_ec2_aarch64 env: <<: *stdenvars_aarch64 @@ -547,6 +550,7 @@ windows_smoke_test_task: $CIRRUS_CHANGE_TITLE !=~ '.*CI:COPR.*' depends_on: - alt_build + experimental: true # Enable labeling of EC2 VMs with cirrus task ID ec2_instance: image: "${WINDOWS_AMI}" type: m5zn.metal @@ -665,6 +669,7 @@ podman_machine_task: - remote_integration_test - container_integration_test - rootless_integration_test + experimental: true # Enable labeling of EC2 VMs with cirrus task ID ec2_instance: image: "${VM_IMAGE_NAME}" type: "${EC2_INST_TYPE}" @@ -696,6 +701,7 @@ podman_machine_aarch64_task: - remote_integration_test - container_integration_test - rootless_integration_test + experimental: true # Enable labeling of EC2 VMs with cirrus task ID ec2_instance: <<: *standard_build_ec2_aarch64 env: @@ -762,6 +768,7 @@ local_system_test_aarch64_task: &local_system_test_task_aarch64 depends_on: - build_aarch64 - unit_test + experimental: true # Enable labeling of EC2 VMs with cirrus task ID ec2_instance: *standard_build_ec2_aarch64 env: <<: *stdenvars_aarch64