Skip to content
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

ga: upgrade: check for rollback #395

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Conversation

akirillo
Copy link
Contributor

@akirillo akirillo commented Feb 7, 2024

This PR adds a final step to the upgrade action to check if the ECS deployment rolled back. The amazon-ecs-deploy-task-definition action exposes no way to check this. It simply waits for the service to reach a steady state, which it will also do if it rolled back successfully.

Thus, this step checks if the task definition used in the most recent deployment (which may be a rollback) matches the newly created task definition. If not, a rollback must have occurred, and we error.

I have tested this on the staging branch with an image that fails trivially and asserted that a rollback is caught.

@akirillo akirillo added the bug Something isn't working label Feb 7, 2024
@akirillo akirillo self-assigned this Feb 7, 2024
@akirillo akirillo marked this pull request as ready for review February 7, 2024 18:43
@akirillo akirillo force-pushed the andrew/upgrade-failed-on-rollback branch from fdaae7b to 7795bf1 Compare February 8, 2024 23:33
rust-toolchain Outdated Show resolved Hide resolved
@akirillo akirillo requested a review from joeykraut February 9, 2024 01:49
.github/workflows/upgrade.yml Show resolved Hide resolved
@akirillo akirillo force-pushed the andrew/upgrade-failed-on-rollback branch from 7795bf1 to 137f5a2 Compare February 9, 2024 17:13
@akirillo akirillo merged commit 150e135 into main Feb 9, 2024
1 of 4 checks passed
@akirillo akirillo deleted the andrew/upgrade-failed-on-rollback branch February 9, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants