ci-queue 0.53.0 → 0.55.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ci/queue/bisect.rb +4 -0
- data/lib/ci/queue/version.rb +1 -1
- data/lib/minitest/queue/runner.rb +7 -0
- data/lib/minitest/queue.rb +5 -0
- 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: a4c15b3d93bd34da203ba0646f7ac9a55bc81062cb173554c4aeb8ce2fbffde4
|
4
|
+
data.tar.gz: 805a374332f9351520e018449fcda5dfd574228879ce7efb8d4f6210e0893bdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3676d0f75d1e9419d1c5b556574d6e4759b4cdd6694f208683dfc805f0baf8f3348e32630d5f020d59d5ac9c6db6163a41a775112d38f47989bc497ab775a56
|
7
|
+
data.tar.gz: efa3123ec814cd8a51d22a60f59e05f74c4ec18e99c5203c5e846df8b7d168dfcc4846632c21d9e695f6948670980a447f18f688001fde1e4254236af23e1b9c
|
data/Gemfile.lock
CHANGED
data/lib/ci/queue/bisect.rb
CHANGED
@@ -27,6 +27,10 @@ module CI
|
|
27
27
|
Static.new([config.failing_test], config).populate(@all_tests)
|
28
28
|
end
|
29
29
|
|
30
|
+
def failing_test_present?
|
31
|
+
@all_tests.find { |t| t.id == config.failing_test }
|
32
|
+
end
|
33
|
+
|
30
34
|
def candidates
|
31
35
|
Static.new(first_half + [config.failing_test], config).populate(@all_tests)
|
32
36
|
end
|
data/lib/ci/queue/version.rb
CHANGED
@@ -189,6 +189,13 @@ module Minitest
|
|
189
189
|
populate_queue
|
190
190
|
|
191
191
|
step("Testing the failing test in isolation")
|
192
|
+
unless queue.failing_test_present?
|
193
|
+
puts reopen_previous_step
|
194
|
+
puts red("The failing test does not exist.")
|
195
|
+
File.write('log/test_order.log', "")
|
196
|
+
exit! 1
|
197
|
+
end
|
198
|
+
|
192
199
|
unless run_tests_in_fork(queue.failing_test)
|
193
200
|
puts reopen_previous_step
|
194
201
|
puts red("The test fail when ran alone, no need to bisect.")
|
data/lib/minitest/queue.rb
CHANGED
@@ -266,6 +266,11 @@ module Minitest
|
|
266
266
|
reopen_previous_step
|
267
267
|
puts red("The heartbeat process died. This worker is exiting early.")
|
268
268
|
exit!(41)
|
269
|
+
rescue => error
|
270
|
+
reopen_previous_step
|
271
|
+
puts red("This worker exited because of an uncaught application error:")
|
272
|
+
puts red("#{error.class}: #{error.message}")
|
273
|
+
exit!(42)
|
269
274
|
end
|
270
275
|
end
|
271
276
|
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.55.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: 2024-
|
11
|
+
date: 2024-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: '0'
|
244
244
|
requirements: []
|
245
|
-
rubygems_version: 3.5.
|
245
|
+
rubygems_version: 3.5.11
|
246
246
|
signing_key:
|
247
247
|
specification_version: 4
|
248
248
|
summary: Distribute tests over many workers using a queue
|