ci-queue 0.33.0 → 0.34.0
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/static.rb +6 -1
- data/lib/ci/queue/version.rb +1 -1
- 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: c8f29e9746a1f72fb24fe886360f2d1b5699dd71adfd9bf76207138530d093e6
|
4
|
+
data.tar.gz: 965eef8b0fc0d3c8f5d57c7169d07ecca8dda5926fef6744ca106c185aa9563f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39cf4530f2030dd2a9e9944c7e2df5e3f5dd63dee11ee41d840c42c774abce5a74205a04c74ad435ce4766369cb20347948fab640df0c70f1ded6a5654aef19f
|
7
|
+
data.tar.gz: 95bfa2a021df6d49fcd3104a647f99e5688d5160fd65bc1b096d4fdf6f0b2b06a3eeaa37caf8eb5bbb2b488a09b64742bcb848ebcf74fdee181dc51cb2143e0c
|
data/lib/ci/queue/static.rb
CHANGED
@@ -20,6 +20,11 @@ module CI
|
|
20
20
|
@config = config
|
21
21
|
@progress = 0
|
22
22
|
@total = tests.size
|
23
|
+
@shutdown = false
|
24
|
+
end
|
25
|
+
|
26
|
+
def shutdown!
|
27
|
+
@shutdown = true
|
23
28
|
end
|
24
29
|
|
25
30
|
def distributed?
|
@@ -64,7 +69,7 @@ module CI
|
|
64
69
|
end
|
65
70
|
|
66
71
|
def poll
|
67
|
-
while config.circuit_breakers.none?(&:open?) && !max_test_failed? && test = @queue.shift
|
72
|
+
while !@shutdown && config.circuit_breakers.none?(&:open?) && !max_test_failed? && test = @queue.shift
|
68
73
|
yield index.fetch(test)
|
69
74
|
end
|
70
75
|
end
|
data/lib/ci/queue/version.rb
CHANGED
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.34.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-08-08 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.17
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: Distribute tests over many workers using a queue
|