From 3237709326eb3a00cd24e534520539db7aa4931f Mon Sep 17 00:00:00 2001 From: Henri Philipps Date: Fri, 7 Jan 2022 10:56:48 +0100 Subject: [PATCH] extend package wait time from 30 to 45 minutes --- lib/release_tools/retriable.rb | 6 +++--- spec/lib/release_tools/auto_deploy/wait_for_package_spec.rb | 2 +- .../lib/release_tools/auto_deploy/wait_for_pipeline_spec.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/release_tools/retriable.rb b/lib/release_tools/retriable.rb index b062ca728..a74977142 100644 --- a/lib/release_tools/retriable.rb +++ b/lib/release_tools/retriable.rb @@ -19,13 +19,13 @@ Retriable.configure do |config| tries: 10 } - # Retry every 60 seconds up to 30 times, for a maximum of 30 minutes + # Retry every 60 seconds up to 45 times, for a maximum of 45 minutes # # Ideal for waiting for a running packager pipeline to complete. config.contexts[:package_pipeline] = { base_interval: 60, - tries: 30, - max_elapsed_time: 30 * 60, # The maximum amount of total time in seconds that code is allowed to keep being retried + tries: 45, + max_elapsed_time: 45 * 60, # The maximum amount of total time in seconds that code is allowed to keep being retried rand_factor: 0 } end diff --git a/spec/lib/release_tools/auto_deploy/wait_for_package_spec.rb b/spec/lib/release_tools/auto_deploy/wait_for_package_spec.rb index d841bf427..50f5084ce 100644 --- a/spec/lib/release_tools/auto_deploy/wait_for_package_spec.rb +++ b/spec/lib/release_tools/auto_deploy/wait_for_package_spec.rb @@ -43,7 +43,7 @@ RSpec.describe ReleaseTools::AutoDeploy::WaitForPackage do .and_return([pipeline]) expect(fake_client).to receive(:pipeline) - .exactly(30).times + .exactly(45).times .and_return(pipeline) expect(waiter).to receive(:slack_notification).once diff --git a/spec/lib/release_tools/auto_deploy/wait_for_pipeline_spec.rb b/spec/lib/release_tools/auto_deploy/wait_for_pipeline_spec.rb index 486c3e313..2b7714445 100644 --- a/spec/lib/release_tools/auto_deploy/wait_for_pipeline_spec.rb +++ b/spec/lib/release_tools/auto_deploy/wait_for_pipeline_spec.rb @@ -42,7 +42,7 @@ RSpec.describe ReleaseTools::AutoDeploy::WaitForPipeline do pipeline = build(:pipeline, status: described_class::WAITING_STATUSES.sample) expect(fake_client).to receive(:pipeline) - .exactly(30).times + .exactly(45).times .and_return(pipeline) expect(waiter).to receive(:slack_notification).once -- GitLab