ci-queue 0.34.0 → 0.36.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: c8f29e9746a1f72fb24fe886360f2d1b5699dd71adfd9bf76207138530d093e6
4
- data.tar.gz: 965eef8b0fc0d3c8f5d57c7169d07ecca8dda5926fef6744ca106c185aa9563f
3
+ metadata.gz: 1fcc9b71596a6702c28b4938fc0ab8582d70f1282c31c984649bf6e7f80fb62c
4
+ data.tar.gz: 49b3915af79303b6c33f9157ac0aaa3d23cb3c403b772e74ef6ec7171f28107f
5
5
  SHA512:
6
- metadata.gz: 39cf4530f2030dd2a9e9944c7e2df5e3f5dd63dee11ee41d840c42c774abce5a74205a04c74ad435ce4766369cb20347948fab640df0c70f1ded6a5654aef19f
7
- data.tar.gz: 95bfa2a021df6d49fcd3104a647f99e5688d5160fd65bc1b096d4fdf6f0b2b06a3eeaa37caf8eb5bbb2b488a09b64742bcb848ebcf74fdee181dc51cb2143e0c
6
+ metadata.gz: c7e8ed86fc7fd156f3fc728b2dba2c4ca41bf89d17b499abedb1bb214961468eb4410e2dff9423133539c41698f22ebfc025540847e3774e1666f4d66ac87b86
7
+ data.tar.gz: 42724296691e013ecf2e26d0fd6218e7bc8e8a31fe7b9794ae1d6afbe4869cad4cca7a3639fcfafe64483041ff91ab6d5e1e1624e8fe5bddab7ffeea9a075ce4
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.34.0'
5
+ VERSION = '0.36.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
@@ -43,7 +43,7 @@ module CI
43
43
  Static
44
44
  when 'file', nil
45
45
  File
46
- when 'redis'
46
+ when 'redis', 'rediss'
47
47
  require 'ci/queue/redis'
48
48
  Redis
49
49
  else
@@ -28,7 +28,7 @@ module Minitest
28
28
  test_and_module_name: "#{test.klass}##{test.name}",
29
29
  test_name: test.name,
30
30
  test_suite: test.klass,
31
- error_class: test.failure.exception.class.name,
31
+ error_class: test.failure.error.class.name,
32
32
  output: to_s,
33
33
  }
34
34
  end
@@ -223,7 +223,7 @@ module Minitest
223
223
 
224
224
  unless supervisor.wait_for_workers { display_warnings(supervisor.build) }
225
225
  unless supervisor.queue_initialized?
226
- abort! "No master was elected. Did all workers crash?"
226
+ abort! "No master was elected. Did all workers crash?", 40
227
227
  end
228
228
 
229
229
  unless supervisor.exhausted?
@@ -623,10 +623,10 @@ module Minitest
623
623
  super
624
624
  end
625
625
 
626
- def abort!(message)
626
+ def abort!(message, exit_status=1)
627
627
  reopen_previous_step
628
628
  puts red(message)
629
- exit! 1 # exit! is required to avoid minitest at_exit callback
629
+ exit! exit_status # exit! is required to avoid minitest at_exit callback
630
630
  end
631
631
 
632
632
  def retry?
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.34.0
4
+ version: 0.36.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-08-08 00:00:00.000000000 Z
11
+ date: 2023-10-03 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.17
242
+ rubygems_version: 3.4.20
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Distribute tests over many workers using a queue