ci-queue 0.21.0 → 0.21.1

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: a9a1d5f8211c29b9993d6ef94acff329a040d7e940b28e8d51eedc01e87c106b
4
- data.tar.gz: d584ef67d1f2036b4c8b7880099515ff2a4f0618c2813e9caee099cfe11e587f
3
+ metadata.gz: bb09b44ca70cde6218873faed3b7067295088a115b2b33ddc93b3853ad318042
4
+ data.tar.gz: d0eb4a637fb89aa8c2858e5f1c363b86518cb310729d417fc6e7847c7bd261b8
5
5
  SHA512:
6
- metadata.gz: 88ddaa2717da8b9a989fa6d7bf859d509c29d2cf19ade4fcab882f6dfe4b33e1969c5f89121f3b5dfb1439b03e89e41227cf9f9f8e33d7e9295e43c7a2cb8e51
7
- data.tar.gz: e7f5753cd1bdfd0f7500ebe00be9e7caf3a342ae931b974971bc95aa8ab27e86744211036a4fe70420a80d374235e1eb1ea6ce6eee4e14da52560502f1c26413
6
+ metadata.gz: e3b35848df951df70cddc2bab778f5160dc0293f09cc66218b31567ce8b2fe7e7a020f5aeec9fb2b6890e53a175b70ada164b404306ee5582cc1a40601515643
7
+ data.tar.gz: 8f5ffdaaad075ddcc724117f3b2414f7a15b49509d0b0df5b4415827b6452efc251974398a58b2203c776fdb70819ab53c8042ce4d3add056b245ff8cafed179
@@ -16,7 +16,6 @@ module CI
16
16
  attr_reader :total
17
17
 
18
18
  def initialize(redis, config)
19
- @last_warning = nil
20
19
  @reserved_test = nil
21
20
  @shutdown_required = false
22
21
  super(redis, config)
@@ -49,7 +48,7 @@ module CI
49
48
  wait_for_master
50
49
  until shutdown_required? || config.circuit_breakers.any?(&:open?) || exhausted? || max_test_failed?
51
50
  if test = reserve
52
- yield index.fetch(test), @last_warning
51
+ yield index.fetch(test)
53
52
  else
54
53
  sleep 0.05
55
54
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.21.0'
5
+ VERSION = '0.21.1'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -168,8 +168,10 @@ module Minitest
168
168
  result = yield
169
169
  result
170
170
  ensure
171
- result.start_timestamp = start_timestamp
172
- result.finish_timestamp = current_timestamp
171
+ if result
172
+ result.start_timestamp = start_timestamp
173
+ result.finish_timestamp = current_timestamp
174
+ end
173
175
  end
174
176
 
175
177
  def run
@@ -189,11 +191,7 @@ module Minitest
189
191
  end
190
192
  end
191
193
 
192
- attr_reader :queue
193
-
194
- def queue=(queue)
195
- @queue = queue
196
- end
194
+ attr_accessor :queue
197
195
 
198
196
  def queue_reporters=(reporters)
199
197
  @queue_reporters ||= []
data/lib/rspec/queue.rb CHANGED
@@ -112,7 +112,7 @@ module RSpec
112
112
 
113
113
  help = <<~EOS
114
114
  Specify a timeout after which if a test haven't completed, it will be picked up by another worker.
115
- It is very important to set this vlaue higher than the slowest test in the suite, otherwise performance will be impacted.
115
+ It is very important to set this value higher than the slowest test in the suite, otherwise performance will be impacted.
116
116
  Defaults to 30 seconds.
117
117
  EOS
118
118
  parser.separator ""
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.21.0
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2021-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler