ci-queue 0.72.0 → 0.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f5093c0f80a695ec2f8b30b8eb72ca58ca809a7e55aa7c0c6177a01acf7ac67
4
- data.tar.gz: 53be96ee18a7cdec0ef60d8a367aced59c271e2db2d73c0019a30d50a62d8cce
3
+ metadata.gz: d8b7cf59546e2a0af5aa79bba98108f09131fd8cae1ea8a6986d1965e5ab5c3d
4
+ data.tar.gz: '08295aa1ed490f21778559b80ddaf4223a18c70f53e58dfbc8ca81e25d1dbf90'
5
5
  SHA512:
6
- metadata.gz: 3091461df678a23e28e72b5e35922a51e85aeda474f362ab94ddd49db11420c5a686eb3684313ceda2f7d725d169992ec4f76481eecbc035f6c5c494879c0d8c
7
- data.tar.gz: aa81619322c27cc1370da7a2b3c4b9118e2fde8b8401eb13b73788a24cdddab3caab327470baa03968dba04e5b50de8fa28cd0023a8ecccd48ccd81a60f0950f
6
+ metadata.gz: 485afd18f372430ef9002525addfa428fabefb78612b33823b20a4a4ff30f96db9ad04b8317201882f260690406d18e96d39aa880bb5cb55c80f0e9732400436
7
+ data.tar.gz: 8ac8845cc32c1881e5c98faaafddaf18b124fb84a1d3ddee4e1ac991e19f1b687c52bff02269d0f70b1412757244242bd0ddb42c6e99d2a28f9aee2720e036eb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-queue (0.72.0)
4
+ ci-queue (0.74.0)
5
5
  logger
6
6
 
7
7
  GEM
@@ -20,6 +20,8 @@ module CI
20
20
  statsd_endpoint: env['CI_QUEUE_STATSD_ADDR'],
21
21
  redis_ttl: env['CI_QUEUE_REDIS_TTL']&.to_i || 8 * 60 * 60,
22
22
  debug_log: env['CI_QUEUE_DEBUG_LOG'],
23
+ max_requeues: env['CI_QUEUE_MAX_REQUEUES']&.to_i || 0,
24
+ requeue_tolerance: env['CI_QUEUE_REQUEUE_TOLERANCE']&.to_f || 0,
23
25
  )
24
26
  end
25
27
 
@@ -57,11 +57,12 @@ module CI
57
57
  end
58
58
 
59
59
  def record_error(id, payload, stats: nil)
60
- redis.pipelined do |pipeline|
60
+ acknowledged, _ = redis.pipelined do |pipeline|
61
61
  @queue.acknowledge(id, error: payload, pipeline: pipeline)
62
62
  record_stats(stats, pipeline: pipeline)
63
- @queue.increment_test_failed(pipeline: pipeline)
64
63
  end
64
+
65
+ @queue.increment_test_failed if acknowledged == 1
65
66
  nil
66
67
  end
67
68
 
@@ -219,7 +219,7 @@ module CI
219
219
  end
220
220
 
221
221
  if @master = (value == status)
222
- puts "Worker electected as leader, pushing #{@total} tests to the queue."
222
+ puts "Worker elected as leader, pushing #{@total} tests to the queue."
223
223
  puts
224
224
 
225
225
  attempts = 0
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.72.0'
5
+ VERSION = '0.74.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -9,7 +9,7 @@ module Minitest
9
9
  class JUnitReporter < Minitest::Reporters::BaseReporter
10
10
  include ::CI::Queue::OutputHelpers
11
11
 
12
- def initialize(report_path = 'log/junit.xml', options = {})
12
+ def initialize(report_path = ENV.fetch("CI_QUEUE_MINITEST_JUNITXML", 'log/junit.xml'), options = {})
13
13
  super({})
14
14
  @report_path = File.absolute_path(report_path)
15
15
  @base_path = options[:base_path] || Dir.pwd
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.72.0
4
+ version: 0.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  - !ruby/object:Gem::Version
255
255
  version: '0'
256
256
  requirements: []
257
- rubygems_version: 3.6.9
257
+ rubygems_version: 3.7.1
258
258
  specification_version: 4
259
259
  summary: Distribute tests over many workers using a queue
260
260
  test_files: []