ci-queue 0.32.0 → 0.33.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: ffbfc433f36b0b8dcb19d9c2f17ab4227815dc1a7211b111d33a98fbc0ae6bf8
4
- data.tar.gz: b84dc1389720a40520c74d57ae65d3161e5b00b91762d8ffc3a6cb4734d2d7dd
3
+ metadata.gz: bd7d0b468f0b411c8adc1a2803ed277a485b8e37b85b954fae3bb18ae2c3be2f
4
+ data.tar.gz: afc3927215a99f3e874cac77d2c89e6ed2f97e86eabf9d3890b42f8e652a5746
5
5
  SHA512:
6
- metadata.gz: 3c7207ab7fa5995ea934212f5c5a2dac179b8bcdf67221040fc8e6e41e4653570b34e9aff18e4bbb647797ea4792e93d962c71d4a354ba57399a4114c6de7e61
7
- data.tar.gz: '027848c07795e66c33fccb820465e9df3ff1fe2c75864192159e9e8902bbc679fcb21963a272b4f0d15ad0844b7524799ade11a02e3a8e45c276ec705f367a7c'
6
+ metadata.gz: 5ef912355c5eb0441f91b1db2386f54d62641187ac518701ead368fb1d013b3ae2a1dadcbce75428caa8dbb9456c8db2fb7d90cefccebd685eebbd565b130af9
7
+ data.tar.gz: 0b48cb5f122f5784c840d8c172804c105a4bd70909853e83b1a1b75a6a7719aecf07bb381d48b56fe186b45f0a10fd556c5becc8db4b7fe8447552d878262bb6
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.32.0'
5
+ VERSION = '0.33.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -53,7 +53,7 @@ module Minitest
53
53
 
54
54
  def body
55
55
  error = test.failure
56
- message = if error.is_a?(MiniTest::UnexpectedError)
56
+ message = if error.is_a?(Minitest::UnexpectedError)
57
57
  "#{error.exception.class}: #{error.exception.message}"
58
58
  else
59
59
  error.exception.message
@@ -234,7 +234,11 @@ module Minitest
234
234
  failed = false
235
235
  end
236
236
 
237
- if failed
237
+ if failed && queue.config.failing_test && queue.config.failing_test != example.id
238
+ # When we do a bisect, we don't care about the result other than the test we're running the bisect on
239
+ result.mark_as_flaked!
240
+ failed = false
241
+ elsif failed
238
242
  queue.report_failure!
239
243
  else
240
244
  queue.report_success!
@@ -259,15 +263,15 @@ module Minitest
259
263
  end
260
264
  end
261
265
 
262
- MiniTest.singleton_class.prepend(MiniTest::Queue)
263
- if defined? MiniTest::Result
264
- MiniTest::Result.prepend(MiniTest::Requeueing)
265
- MiniTest::Result.prepend(MiniTest::Flakiness)
266
- MiniTest::Result.prepend(MiniTest::WithTimestamps)
266
+ Minitest.singleton_class.prepend(Minitest::Queue)
267
+ if defined? Minitest::Result
268
+ Minitest::Result.prepend(Minitest::Requeueing)
269
+ Minitest::Result.prepend(Minitest::Flakiness)
270
+ Minitest::Result.prepend(Minitest::WithTimestamps)
267
271
  else
268
- MiniTest::Test.prepend(MiniTest::Requeueing)
269
- MiniTest::Test.prepend(MiniTest::Flakiness)
270
- MiniTest::Test.prepend(MiniTest::WithTimestamps)
272
+ Minitest::Test.prepend(Minitest::Requeueing)
273
+ Minitest::Test.prepend(Minitest::Flakiness)
274
+ Minitest::Test.prepend(Minitest::WithTimestamps)
271
275
 
272
276
  module MinitestBackwardCompatibility
273
277
  def source_location
@@ -278,5 +282,5 @@ else
278
282
  self.class.name
279
283
  end
280
284
  end
281
- MiniTest::Test.prepend(MinitestBackwardCompatibility)
285
+ Minitest::Test.prepend(MinitestBackwardCompatibility)
282
286
  end
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.32.0
4
+ version: 0.33.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-07-20 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler