ci-queue 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ci/queue/redis/worker.rb +1 -2
- data/lib/ci/queue/version.rb +1 -1
- data/lib/minitest/queue.rb +5 -7
- data/lib/rspec/queue.rb +1 -1
- 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: bb09b44ca70cde6218873faed3b7067295088a115b2b33ddc93b3853ad318042
|
4
|
+
data.tar.gz: d0eb4a637fb89aa8c2858e5f1c363b86518cb310729d417fc6e7847c7bd261b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b35848df951df70cddc2bab778f5160dc0293f09cc66218b31567ce8b2fe7e7a020f5aeec9fb2b6890e53a175b70ada164b404306ee5582cc1a40601515643
|
7
|
+
data.tar.gz: 8f5ffdaaad075ddcc724117f3b2414f7a15b49509d0b0df5b4415827b6452efc251974398a58b2203c776fdb70819ab53c8042ce4d3add056b245ff8cafed179
|
@@ -16,7 +16,6 @@ module CI
|
|
16
16
|
attr_reader :total
|
17
17
|
|
18
18
|
def initialize(redis, config)
|
19
|
-
@last_warning = nil
|
20
19
|
@reserved_test = nil
|
21
20
|
@shutdown_required = false
|
22
21
|
super(redis, config)
|
@@ -49,7 +48,7 @@ module CI
|
|
49
48
|
wait_for_master
|
50
49
|
until shutdown_required? || config.circuit_breakers.any?(&:open?) || exhausted? || max_test_failed?
|
51
50
|
if test = reserve
|
52
|
-
yield index.fetch(test)
|
51
|
+
yield index.fetch(test)
|
53
52
|
else
|
54
53
|
sleep 0.05
|
55
54
|
end
|
data/lib/ci/queue/version.rb
CHANGED
data/lib/minitest/queue.rb
CHANGED
@@ -168,8 +168,10 @@ module Minitest
|
|
168
168
|
result = yield
|
169
169
|
result
|
170
170
|
ensure
|
171
|
-
result
|
172
|
-
|
171
|
+
if result
|
172
|
+
result.start_timestamp = start_timestamp
|
173
|
+
result.finish_timestamp = current_timestamp
|
174
|
+
end
|
173
175
|
end
|
174
176
|
|
175
177
|
def run
|
@@ -189,11 +191,7 @@ module Minitest
|
|
189
191
|
end
|
190
192
|
end
|
191
193
|
|
192
|
-
|
193
|
-
|
194
|
-
def queue=(queue)
|
195
|
-
@queue = queue
|
196
|
-
end
|
194
|
+
attr_accessor :queue
|
197
195
|
|
198
196
|
def queue_reporters=(reporters)
|
199
197
|
@queue_reporters ||= []
|
data/lib/rspec/queue.rb
CHANGED
@@ -112,7 +112,7 @@ module RSpec
|
|
112
112
|
|
113
113
|
help = <<~EOS
|
114
114
|
Specify a timeout after which if a test haven't completed, it will be picked up by another worker.
|
115
|
-
It is very important to set this
|
115
|
+
It is very important to set this value higher than the slowest test in the suite, otherwise performance will be impacted.
|
116
116
|
Defaults to 30 seconds.
|
117
117
|
EOS
|
118
118
|
parser.separator ""
|
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.21.
|
4
|
+
version: 0.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|