ci-queue 0.77.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ci/queue/version.rb +1 -1
- data/lib/minitest/queue/runner.rb +14 -0
- data/lib/minitest/queue.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c5b1264396c9d74c0de954e922c38bed02035599ac2a5739f6ff4f5d304ce2
|
4
|
+
data.tar.gz: 9879b14f07961c581cc6ee98b33e97e9e5ea7ce97ad6be8c114ddb946ab9c26e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9791de60dc9e636ce6dca98ff370afad264f95437af6d232df651a7c66b607fc4cb2dbfb9955f3e3f558f7cd16e330548f0a9ef2c1fec67ce56e3157ff2accd
|
7
|
+
data.tar.gz: 21a6d847e04e2d8cb9b5e21154d29d41040c9000fd809c65d8946478d8dd6a70358d077411dbaa798d17fc495c77a488486930137342354cb9c63860a78c28d9
|
data/Gemfile.lock
CHANGED
data/lib/ci/queue/version.rb
CHANGED
@@ -193,6 +193,7 @@ module Minitest
|
|
193
193
|
puts reopen_previous_step
|
194
194
|
puts red("The failing test does not exist.")
|
195
195
|
File.write('log/test_order.log', "")
|
196
|
+
File.write('log/bisect_test_details.log', "")
|
196
197
|
exit! 1
|
197
198
|
end
|
198
199
|
|
@@ -200,6 +201,7 @@ module Minitest
|
|
200
201
|
puts reopen_previous_step
|
201
202
|
puts red("The test fail when ran alone, no need to bisect.")
|
202
203
|
File.write('log/test_order.log', queue_config.failing_test)
|
204
|
+
File.write('log/bisect_test_details.log', "")
|
203
205
|
exit! 0
|
204
206
|
end
|
205
207
|
|
@@ -218,6 +220,7 @@ module Minitest
|
|
218
220
|
if queue.suspects_left == 0
|
219
221
|
step(yellow("The failing test was the first test in the test order so there is nothing to bisect."))
|
220
222
|
File.write('log/test_order.log', "")
|
223
|
+
File.write('log/bisect_test_details.log', "")
|
221
224
|
exit! 1
|
222
225
|
end
|
223
226
|
|
@@ -226,6 +229,7 @@ module Minitest
|
|
226
229
|
if run_tests_in_fork(failing_order)
|
227
230
|
step(yellow("The bisection was inconclusive, there might not be any leaky test here."))
|
228
231
|
File.write('log/test_order.log', "")
|
232
|
+
File.write('log/bisect_test_details.log', "")
|
229
233
|
exit! 1
|
230
234
|
else
|
231
235
|
step(green('The following command should reproduce the leak on your machine:'), collapsed: false)
|
@@ -238,6 +242,16 @@ module Minitest
|
|
238
242
|
puts
|
239
243
|
|
240
244
|
File.write('log/test_order.log', failing_order.to_a.map(&:id).join("\n"))
|
245
|
+
|
246
|
+
bisect_test_details = failing_order.to_a.map do |test|
|
247
|
+
source_location = test.source_location
|
248
|
+
file_path = source_location&.first || 'unknown'
|
249
|
+
line_number = source_location&.last || -1
|
250
|
+
"#{test.id} #{file_path}:#{line_number}"
|
251
|
+
end
|
252
|
+
|
253
|
+
File.write('log/bisect_test_details.log', bisect_test_details.join("\n"))
|
254
|
+
|
241
255
|
exit! 0
|
242
256
|
end
|
243
257
|
end
|
data/lib/minitest/queue.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci-queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.78.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
254
|
- !ruby/object:Gem::Version
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
|
-
rubygems_version: 3.7.
|
257
|
+
rubygems_version: 3.7.2
|
258
258
|
specification_version: 4
|
259
259
|
summary: Distribute tests over many workers using a queue
|
260
260
|
test_files: []
|