ci-queue 0.60.0 → 0.62.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: 4bec940c2c3eedb719c7292b249d244ab9e26a17c786e34eaf11d114c458478a
4
- data.tar.gz: '039b0d061f68b9c4c77438681c2f4110042087d5a0ed4f0a4c31276aa79ede7a'
3
+ metadata.gz: 7a2d64386f4f8077fe180335c59ec2d6b2cb091786bf2c76e3d3fc752ec40d50
4
+ data.tar.gz: 4f63a3d9f525b1ca717d9a366ef439383267140404458d5aa2f8b7808c4af863
5
5
  SHA512:
6
- metadata.gz: e22b92fe85dc0ed9d1f64e5e7a3e430d017b393ba24a60647cb02ff715351f338117cd304ee7c3e4dd9b9b48c65476565202770e2b25a6bdc68b4282549fc52d
7
- data.tar.gz: 1446c540b88521268c6005412b5243d5da4ba986a2815a14aeb059a7c5506473dc61018da0588e807b2091b7def02f237505c3582c3761a2404a725594ef7a92
6
+ metadata.gz: 922301ff1da0f39bc26ca824b1cb94e09345bcd02a817d76f24a9e856b1f8846492a398530d91ce1edc79c5dfc82ca8851599142349e414d9099b8de4c48d29f
7
+ data.tar.gz: 0d1c6a5d0ac1bd6e7d30fe36b7d3ac47ddcc3adced77a6227799353df20472da86e8c79762d786c06f29b81727e5505421d6f70ade7faf64bd9232e459df3d27
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-queue (0.60.0)
4
+ ci-queue (0.62.0)
5
5
  logger
6
6
 
7
7
  GEM
@@ -14,9 +14,8 @@ require 'ci/queue/redis/test_time_record'
14
14
  module CI
15
15
  module Queue
16
16
  module Redis
17
- Error = Class.new(StandardError)
18
- LostMaster = Class.new(Error)
19
- ReservationError = Class.new(Error)
17
+ LostMaster = Class.new(CI::Queue::Error)
18
+ ReservationError = Class.new(CI::Queue::Error)
20
19
 
21
20
  class << self
22
21
 
@@ -60,6 +60,10 @@ module CI
60
60
 
61
61
  def report_worker_error(error); end
62
62
 
63
+ def queue_initialized?
64
+ true
65
+ end
66
+
63
67
  def created_at=(timestamp)
64
68
  @created_at ||= timestamp
65
69
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.60.0'
5
+ VERSION = '0.62.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
data/lib/ci/queue.rb CHANGED
@@ -21,6 +21,8 @@ module CI
21
21
 
22
22
  attr_accessor :shuffler, :requeueable
23
23
 
24
+ Error = Class.new(StandardError)
25
+
24
26
  module Warnings
25
27
  RESERVED_LOST_TEST = :RESERVED_LOST_TEST
26
28
  end
@@ -266,7 +266,7 @@ module Minitest
266
266
  reopen_previous_step
267
267
  puts red("The heartbeat process died. This worker is exiting early.")
268
268
  exit!(41)
269
- rescue CI::Queue::Redis::Error
269
+ rescue CI::Queue::Error
270
270
  reopen_previous_step
271
271
  puts red("#{error.class}: #{error.message}")
272
272
  error.backtrace.each do |frame|
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.0
4
+ version: 0.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-01-06 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: logger
@@ -241,7 +240,6 @@ licenses:
241
240
  - MIT
242
241
  metadata:
243
242
  allowed_push_host: https://rubygems.org
244
- post_install_message:
245
243
  rdoc_options: []
246
244
  require_paths:
247
245
  - lib
@@ -256,8 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
254
  - !ruby/object:Gem::Version
257
255
  version: '0'
258
256
  requirements: []
259
- rubygems_version: 3.5.23
260
- signing_key:
257
+ rubygems_version: 3.6.2
261
258
  specification_version: 4
262
259
  summary: Distribute tests over many workers using a queue
263
260
  test_files: []