-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cirrus: Improve CI VM image updates for EC2 #15215
Conversation
9d6b1b9
to
d824b86
Compare
force-push: Rebased on main. Removed the image-update, so this commit only does the ID-search in EC2. |
Oh woops! This is going to break |
AWS EC2 keys VM images by an utterly unreadable, horrible to use, generated "AMI ID" value. This is very error prone for humans in practice, since it's impossible to tell one image from the next by eye. Worse, EC2 permits duplicate name-tag values, complicating image specification further. However fortunately, Cirrus-CI recently implemented a feature by which AMI's may be referenced by a name-tag search - choosing the most recent AMI found. Since the `containers/automation_images` build workflow always assigns a unique name + `$IMAGE_SUFFIX` value, we can simply re-use it for both AWS and GCP image specification. In other words as of this commit, specifying new CI VM images can be done by simply updating the `$IMAGE_SUFFIX` value as we've always done. No need to call out a specific AMI ID just for EC2 tasks. Signed-off-by: Chris Evich <[email protected]>
d824b86
to
d2d7898
Compare
Force-push: Rebased on main. I fixed |
Does that mean this is ready for review? LGTM at first glance. |
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
AWS EC2 keys VM images by an utterly unreadable and horrible to use "AMI
ID" value. This is very error prone for humans to use, since it's
impossible to tell one image from the next by eye. Worse, they permit
duplicate name-tag values (or any other tag), complicating image
selection further.
However, Cirrus-CI recently implemented a feature by which AMI's may be
referenced by name-tag search, where the most recent AMI is chosen.
Since the
containers/automation_images
build workflow always assignsa unique
$IMAGE_SUFFIX
value (based on the $CIRRUS_BUILD_ID), we cannow simply re-use it for both AWS and GCP image specification. In other
words to update VM images, simply update the
$IMAGE_SUFFIX
valueand you're done.
Signed-off-by: Chris Evich [email protected]
Does this PR introduce a user-facing change?