ci-queue 0.14.0 → 0.14.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9c5f96cd424f499c6a46f3ffbfa21023547b4cc
|
4
|
+
data.tar.gz: 39d18875123ae38c81c8788a7776aa99faf4c532
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 489781b113ce8f0834516253a49e4135c75a976ebc42d1320a1cca5145c85ff15ab2fd6c4b35456d6d8abf53d8e43ec0d106570a85ce029ebfc750892f990a4d
|
7
|
+
data.tar.gz: 7e32d21f7bb3ee434a8e86f7ecd4d866bd6c9b42ddfe3f3a241c6030df2ca5f544b2ccfb7d781bf1c35986b7611cedbdf780152b6b8bcd80c9ce7143c82a6105
|
@@ -51,6 +51,14 @@ module CI
|
|
51
51
|
stat_names.zip(counts.map { |values| values.map(&:to_f).inject(:+).to_f }).to_h
|
52
52
|
end
|
53
53
|
|
54
|
+
def reset_stats(stat_names)
|
55
|
+
redis.pipelined do
|
56
|
+
stat_names.each do |stat_name|
|
57
|
+
redis.hdel(key(stat_name), config.worker_id)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
54
62
|
private
|
55
63
|
|
56
64
|
attr_reader :config, :redis
|
data/lib/ci/queue/version.rb
CHANGED
@@ -37,6 +37,7 @@ module Minitest
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def retry_command
|
40
|
+
reset_counters
|
40
41
|
retry_queue = queue.retry_queue
|
41
42
|
unless retry_queue.exhausted?
|
42
43
|
self.queue = retry_queue
|
@@ -156,6 +157,10 @@ module Minitest
|
|
156
157
|
return status.success?
|
157
158
|
end
|
158
159
|
|
160
|
+
def reset_counters
|
161
|
+
queue.build.reset_stats(BuildStatusRecorder::COUNTERS)
|
162
|
+
end
|
163
|
+
|
159
164
|
def populate_queue
|
160
165
|
Minitest.queue.populate(Minitest.loaded_tests, random: ordering_seed, &:id)
|
161
166
|
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.14.
|
4
|
+
version: 0.14.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: 2018-
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ansi
|