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 +4 -4
- data/Gemfile +1 -1
- data/lib/ci/queue/version.rb +1 -1
- data/lib/minitest/queue/failure_formatter.rb +1 -1
- data/lib/minitest/queue/runner.rb +2 -0
- data/lib/minitest/queue.rb +14 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd7d0b468f0b411c8adc1a2803ed277a485b8e37b85b954fae3bb18ae2c3be2f
|
4
|
+
data.tar.gz: afc3927215a99f3e874cac77d2c89e6ed2f97e86eabf9d3890b42f8e652a5746
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ef912355c5eb0441f91b1db2386f54d62641187ac518701ead368fb1d013b3ae2a1dadcbce75428caa8dbb9456c8db2fb7d90cefccebd685eebbd565b130af9
|
7
|
+
data.tar.gz: 0b48cb5f122f5784c840d8c172804c105a4bd70909853e83b1a1b75a6a7719aecf07bb381d48b56fe186b45f0a10fd556c5becc8db4b7fe8447552d878262bb6
|
data/Gemfile
CHANGED
data/lib/ci/queue/version.rb
CHANGED
@@ -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)
|
data/lib/minitest/queue.rb
CHANGED
@@ -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
|
-
|
263
|
-
if defined?
|
264
|
-
|
265
|
-
|
266
|
-
|
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
|
-
|
269
|
-
|
270
|
-
|
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
|
-
|
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.
|
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-
|
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.
|
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
|