-
- Downloads
Adjust exception handling for post-deploy prepare class
`PostDeployMigrations::Prepare` class raises an exception when on pending post-migrations are available or when the production checks fail. The exception is not useful: * Release managers can't take any action from it, in most of the cases, they'll need to wait for a resolution. * We don't raise exceptions on auto-deploy operations when production checks fail. We just notify release managers about it. This commit updates the way the `Prepare` classes handles exception by: * Sending a message when there are no pending post-migrations * Catch the exception when there are no pending post-migrations and when production health checks fail * It still sends a message when production checks fail. The job that invokes the prepare class will still fail. As part of gitlab-com/gl-infra/delivery#2441
Showing
- lib/release_tools/auto_deploy/post_deploy_migrations/prepare.rb 15 additions, 33 deletions...lease_tools/auto_deploy/post_deploy_migrations/prepare.rb
- lib/release_tools/slack.rb 1 addition, 0 deletionslib/release_tools/slack.rb
- lib/release_tools/slack/post_deploy_pipeline_initial_notification.rb 64 additions, 0 deletions..._tools/slack/post_deploy_pipeline_initial_notification.rb
- lib/tasks/post_deploy_migrations.rake 3 additions, 1 deletionlib/tasks/post_deploy_migrations.rake
- spec/lib/release_tools/auto_deploy/post_deploy_migrations/prepare_spec.rb 30 additions, 78 deletions..._tools/auto_deploy/post_deploy_migrations/prepare_spec.rb
- spec/lib/release_tools/slack/post_deploy_pipeline_initial_notification_spec.rb 78 additions, 0 deletions...s/slack/post_deploy_pipeline_initial_notification_spec.rb
Please register or sign in to comment