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

skip scheduled deploys where last deploy was 'partial' to prevent unexpected/problematic behaviour #1082

Merged
merged 2 commits into from
Apr 21, 2023

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented Mar 29, 2023

Recently, when @guardian/digital-cms were working on https://github.com/guardian/editorial-tools-production-monitoring/pull/316, they needed to do partial deploys (in order to test on secondary instances in PROD, but leave primary instances unaffected), meanwhile riff-raff performed the scheduled deploy for this project, crucially a full deploy, which in turn broke primary instances, this was quickly dealt with but perhaps if someone forgets that they did a partial deploy, then the current behaviour of riff-raff could cause some quite pernicious problems.

So now, if last deploy for a project was 'partial' then the scheduled deployed is skipped but users are notified (just like when previous deploy failed, as most likely the partial deploy was temporary).

@twrichards twrichards requested review from a team as code owners March 29, 2023 11:59
@twrichards twrichards force-pushed the skip-scheduled-if-previous-deploy-is-partial branch from d5019e3 to 26234b8 Compare March 29, 2023 12:02
@twrichards twrichards force-pushed the skip-scheduled-if-previous-deploy-is-partial branch 4 times, most recently from ee5c680 to d07f562 Compare March 29, 2023 12:48
Copy link
Contributor

@nicl nicl left a comment

Choose a reason for hiding this comment

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

Nice!

riff-raff/app/schedule/DeployJob.scala Show resolved Hide resolved
twrichards added a commit that referenced this pull request Apr 21, 2023
…xpected/problematic behaviour, but notify users (like when previous deploy is failed, as most likely the partial deploy was temporary)
@twrichards twrichards force-pushed the skip-scheduled-if-previous-deploy-is-partial branch from ed1f7a3 to f6fa8df Compare April 21, 2023 09:39
@twrichards twrichards merged commit 3688a34 into main Apr 21, 2023
@twrichards twrichards deleted the skip-scheduled-if-previous-deploy-is-partial branch April 21, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants