ci-queue 0.31.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: fdd7b371fdadda905994e7b736eddac19265db401483fad83612c3bfb5b054bb
4
- data.tar.gz: 8e49ed6b35ece9ba9aa7c4876e75512f1bfa05375aa6d976a7813eb5cb304502
3
+ metadata.gz: bd7d0b468f0b411c8adc1a2803ed277a485b8e37b85b954fae3bb18ae2c3be2f
4
+ data.tar.gz: afc3927215a99f3e874cac77d2c89e6ed2f97e86eabf9d3890b42f8e652a5746
5
5
  SHA512:
6
- metadata.gz: ee4e5d450227ff962c4606e759e5d15272f5c808ff690b77dfb7ff403a989c4ffd860af75fb18e15a14354523ae96b66f6b67d5035b14880e3342ee63f254f5b
7
- data.tar.gz: ca3c985d44043f4348708bf43b789c3b24d988dc74aeac710bf1a6f58fb8bfb309288b0a58b98dab8ece480713e73c443dae30e2118a29e19514094d3fc17959
6
+ metadata.gz: 5ef912355c5eb0441f91b1db2386f54d62641187ac518701ead368fb1d013b3ae2a1dadcbce75428caa8dbb9456c8db2fb7d90cefccebd685eebbd565b130af9
7
+ data.tar.gz: 0b48cb5f122f5784c840d8c172804c105a4bd70909853e83b1a1b75a6a7719aecf07bb381d48b56fe186b45f0a10fd556c5becc8db4b7fe8447552d878262bb6
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in ci-queue.gemspec
4
4
  gemspec
5
5
 
6
- gem 'activesupport', '~> 5.2.0'
6
+ gem 'activesupport'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.31.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
@@ -175,6 +175,7 @@ module Minitest
175
175
  unless run_tests_in_fork(queue.failing_test)
176
176
  puts reopen_previous_step
177
177
  puts red("The test fail when ran alone, no need to bisect.")
178
+ File.write('log/test_order.log', queue_config.failing_test)
178
179
  exit! 0
179
180
  end
180
181
 
@@ -194,6 +195,7 @@ module Minitest
194
195
  step("Final validation")
195
196
  status = if run_tests_in_fork(failing_order)
196
197
  step(yellow("The bisection was inconclusive, there might not be any leaky test here."))
198
+ File.write('log/test_order.log', "")
197
199
  exit! 1
198
200
  else
199
201
  step(green('The following command should reproduce the leak on your machine:'), collapsed: false)
@@ -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.31.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-06-14 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
@@ -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.13
242
+ rubygems_version: 3.4.16
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Distribute tests over many workers using a queue