ci-queue 0.49.0 → 0.51.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: 946f3f483ffbf8d89553c575d733767bd0851dffaa1439463ce43508f1727eb1
4
- data.tar.gz: b74f1059c33686eacc6ef613900595ce8ff74d7fdd55f5f14c856c33fe35c2b3
3
+ metadata.gz: 54b9a3eb96743e79e564f0a0c90ff4923c4c2282e1f7926e40c575a8de7c9e94
4
+ data.tar.gz: 27cb858f6f2ca20dc7649ff4d1ab040896c347d0acf7093b0f9bb3fb03abd878
5
5
  SHA512:
6
- metadata.gz: 4eca10a80566c11cb600f133008848bde44adec4347f16ec174300e24fb7fafc8727f2dbeae90884b41c60ed784ea8477c5ac896fefac3a7170c84e6b87249fd
7
- data.tar.gz: e8e04782df56a2b1cfd873e3ec9295f4e91b848f7f02cc99df41a349a45115a6ceb0fcd2263fc19e54dfe0b72fb870afc80bd74970f443920c0e31a7c5af8937
6
+ metadata.gz: 99c4f39dbf0d287d87b283d994c5c14cd8b7a49d3e426a9c9fbf9b752cb4818a7c89a64a4526318717bba7a0759fce39c843f5c26df894f7f0d427c1b9d2f9be
7
+ data.tar.gz: adaaff3e53cedfcb8c2e4446f079a6cbd75fc7c56c1b7db1bf99bf820de06f7eb19bf16d68517ce65cfcfa908d83785ccebf08727ae13533e4f1e8ea746ca013
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-queue (0.49.0)
4
+ ci-queue (0.51.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -139,6 +139,8 @@ module CI
139
139
 
140
140
  def wait_for_master(timeout: 30)
141
141
  return true if master?
142
+ return true if queue_initialized?
143
+
142
144
  (timeout * 10 + 1).to_i.times do
143
145
  if queue_initialized?
144
146
  return true
@@ -146,6 +148,7 @@ module CI
146
148
  sleep 0.1
147
149
  end
148
150
  end
151
+
149
152
  raise LostMaster, "The master worker is still `#{master_status}` after #{timeout} seconds waiting."
150
153
  end
151
154
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.49.0'
5
+ VERSION = '0.51.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -182,10 +182,10 @@ module Minitest
182
182
  def bisect_command
183
183
  invalid_usage! "Missing the FAILING_TEST argument." unless queue_config.failing_test
184
184
 
185
- @queue = CI::Queue::Bisect.new(queue_url, queue_config)
186
- Minitest.queue = queue
187
185
  set_load_path
188
186
  load_tests
187
+ @queue = CI::Queue::Bisect.new(queue_url, queue_config)
188
+ Minitest.queue = queue
189
189
  populate_queue
190
190
 
191
191
  step("Testing the failing test in isolation")
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.49.0
4
+ version: 0.51.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: 2024-04-02 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  requirements: []
245
- rubygems_version: 3.5.7
245
+ rubygems_version: 3.5.9
246
246
  signing_key:
247
247
  specification_version: 4
248
248
  summary: Distribute tests over many workers using a queue