Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

release: rely on Helm storage for rollbacks #239

Merged
merged 1 commit into from
Jan 24, 2020

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Jan 22, 2020

This commit removes our own state keeping around rollbacks except
for the condition we set marking a rollback has happened, but
instead relies on comparison of a dry-run with the latest failed
release. If this results in a diff, a new upgrade will be attempted.

The reason we move to this approach is that it is not possible to
take all variables safely into account and determine if we should
perform a new upgrade attempt based on our own bookkeeping, with
a long list of edge-case bugs as a result.

Relying on the real truth is always better than a reflection of it,
which in the end may not be the actual truth at all.

Fixes #236

@stefanprodan
Copy link
Member

Let's run the e2e tests for a ten times, the rollback revision issue happens often so with this PR it should stop.

@hiddeco hiddeco force-pushed the bug/spurious-rollbacks-git branch 3 times, most recently from 7bd985a to c695af2 Compare January 24, 2020 14:01
@hiddeco hiddeco marked this pull request as ready for review January 24, 2020 14:01
@hiddeco hiddeco force-pushed the bug/spurious-rollbacks-git branch from c695af2 to 72f8847 Compare January 24, 2020 14:02
@hiddeco hiddeco requested a review from stefanprodan January 24, 2020 14:02
This commit removes our own state keeping around rollbacks except
for the condition we set marking a rollback has happened, but
instead relies on comparison of a dry-run with the latest failed
release. If this results in a diff, a new upgrade will be attempted.

The reason we move to this approach is that it is not possible to
take all variables safely into account and determine if we should
perform a new upgrade attempt based on our own bookkeeping, with
a long list of edge-case bugs as a result.

Relying on the real truth is always better than a reflection of it,
which in the end may not be the actual truth at all.
@hiddeco hiddeco force-pushed the bug/spurious-rollbacks-git branch from 72f8847 to 976cc05 Compare January 24, 2020 14:05
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hiddeco hiddeco merged commit ff03a71 into master Jan 24, 2020
@stefanprodan stefanprodan deleted the bug/spurious-rollbacks-git branch January 24, 2020 16:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Continual upgrades then rollbacks of failing containers
2 participants