ci-queue 0.37.0 → 0.39.0

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: 19b41ce5e21a08d1bf7396bd3fbbebb35d3a41b4a7dd64117f087457fb402803
4
- data.tar.gz: 0b65846e8be38fe114d2ed9a29c8e6438d8ef20198eef0f03cf24898b24849c8
3
+ metadata.gz: b107915399e844aa0692d7734747517860631865a6552d4ef3ca4ca8e4be70c5
4
+ data.tar.gz: ab35800b2df6a59fec8f6af18e3ab6240cc09818bad1de8fcb23f344541455fc
5
5
  SHA512:
6
- metadata.gz: 9868a90570148e6222ddc962ee66a5f58a2c8d176ea981a24ac819c9955cb30e8c73589dd4fac1e25616a0d0b9e92d375f61c4ebfdd185db867f3a000a742d3e
7
- data.tar.gz: 97c4b3e36513c7320ff580365c324b0407622c1be45124df82607c8517470e92e8a308144eb9ecfac2ec2ea12a0d3196a414dc9ee4322c86792830d8ebde8e97
6
+ metadata.gz: 53a25b74ed491b2a1d62b8579f2416c7376ba1eaad0831bbb09a45a145177d68e4ac3b86de971e1645cdbabe74d1405109cc325e25932a130099f0996a0058c9
7
+ data.tar.gz: 499841246ebd2364397b54a068c033d90b0a5aa670e116678e51002af0eb3c6664bd4585b4e40c841714a2eb969d388707ae8b6a12db60d4ed22269c08c7aa85
@@ -23,7 +23,7 @@ module CI
23
23
  record_stats(stats)
24
24
  end
25
25
 
26
- def record_success(id, stats: nil)
26
+ def record_success(id, stats: nil, skip_flaky_record: false)
27
27
  error_reports.delete(id)
28
28
  record_stats(stats)
29
29
  end
@@ -13,7 +13,12 @@ module CI
13
13
 
14
14
  def initialize(redis_url, config)
15
15
  @redis_url = redis_url
16
- @redis = ::Redis.new(url: redis_url)
16
+ @redis = ::Redis.new(
17
+ url: redis_url,
18
+ # Booting a CI worker is costly, so in case of a Redis blip,
19
+ # it makes sense to retry for a while before giving up.
20
+ reconnect_attempts: [0, 0, 0.1, 0.5, 1, 3, 5],
21
+ )
17
22
  @config = config
18
23
  end
19
24
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ gem 'redis', '>= 5'
3
4
  require 'redis'
4
5
  require 'ci/queue/redis/build_record'
5
6
  require 'ci/queue/redis/base'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.37.0'
5
+ VERSION = '0.39.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.4.20
242
+ rubygems_version: 3.4.22
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Distribute tests over many workers using a queue