hako 2.9.1 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 240ddcf68144e3f2a8a9af6d1fe0dc74c3197d8391e644f1333a4f2c0a2759d3
4
- data.tar.gz: a8fa120750581f506dd0b92267c52ad516f2c75c6e8fed04958e572c85c20709
3
+ metadata.gz: d0d946607626195f31a77cba695e9859f3684629c82f1aaedc18286a1fa6f78b
4
+ data.tar.gz: d1489eb443f1e9dd4b52eab78a34728f10abdbeb46534f5e07718a9ff0a6d070
5
5
  SHA512:
6
- metadata.gz: 7204bf87254ca32add076044bfb4c62afcf2f338ebbde0d77e6af8be77873e9797b56e035715384a6d800c733bc181ab42fba7f54a70568ae523cbc989c65737
7
- data.tar.gz: 6f565d183d0031febdaedca11a5aea11d63cae0fcae97f7ac8cd67e5e5a34e973f41c592c5233d1e0b9ad8860dd9a8f2cf12b9946fda11a428241ce6ede5233c
6
+ metadata.gz: 49a599825c697a3211256bee45f8c415b85a72ade954640c73089b1563f8ffefb96dd32ddee39059a2f77c23d60a9618321f0c8fdc9dbf97bf0c6407a9fb922f
7
+ data.tar.gz: ee75885e9e2f76bb9bc580d49d796d14d90e0542025bfa8e3ca3ce291fd83554bb641ef556eaf3bccffc74e6641b700c574eb5d0692426542ce7f4e22f5efa33
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
+ # 2.9.2 (2019-04-10)
2
+ ## Bug fixes
3
+ - Change threshold for detecting a deployment failure
4
+ - See [this commit](https://github.com/eagletmt/hako/commit/12e27259dc2f0317f8b2c1156b66572c88a3801e) for details
5
+
1
6
  # 2.9.1 (2019-04-04)
7
+ ## Bug fixes
2
8
  - Skip creating load balancer on dry-run
3
9
  - Regression in v2.9.0
4
10
 
@@ -946,10 +946,12 @@ module Hako
946
946
  Hako.logger.debug " latest_event_id=#{latest_event_id}, deployments=#{s.deployments}"
947
947
  no_active = s.deployments.all? { |d| d.status != 'ACTIVE' }
948
948
  primary = s.deployments.find { |d| d.status == 'PRIMARY' }
949
- if primary.desired_count < @started_task_ids.size
949
+ if primary.desired_count * 2 < @started_task_ids.size
950
950
  Hako.logger.error('Some started tasks are stopped. It seems new deployment is failing to start')
951
- ecs_client.describe_tasks(cluster: service.cluster_arn, tasks: @started_task_ids).tasks.each do |task|
952
- report_task_diagnostics(task)
951
+ @started_task_ids.each_slice(100) do |task_ids|
952
+ ecs_client.describe_tasks(cluster: service.cluster_arn, tasks: task_ids).tasks.each do |task|
953
+ report_task_diagnostics(task)
954
+ end
953
955
  end
954
956
  return false
955
957
  end
data/lib/hako/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hako
4
- VERSION = '2.9.1'
4
+ VERSION = '2.9.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2019-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-applicationautoscaling
@@ -397,8 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
397
397
  - !ruby/object:Gem::Version
398
398
  version: '0'
399
399
  requirements: []
400
- rubyforge_project:
401
- rubygems_version: 2.7.6.2
400
+ rubygems_version: 3.0.3
402
401
  signing_key:
403
402
  specification_version: 4
404
403
  summary: Deploy Docker container