ci-queue 0.45.0 → 0.47.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 +5 -4
- data/lib/ci/queue/version.rb +1 -1
- data/lib/minitest/queue.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: 44d3c9d768457c849133f6886a33d756823e5d59393f045ffd22222538745e09
|
4
|
+
data.tar.gz: 416acb36f1b32c8cbb170e71346522d735bf9375c7032f7337ef4fb5901b9e85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d246408b2a2cbc619978a37e67de356169ce048216359cf063b1f623b03a8073be4cf117cbedc6c19719d2ff13db94e07ad6cdc804fba104fea9ee5c236614
|
7
|
+
data.tar.gz: bbe69b32ccc8253323ed181852fdea8c4a22cf6b69e0136bfafc0722421efa94ecf171ca669e6a454c7d0adc80d55f7b59ced7585e763047122ca0d01131f4c4
|
data/lib/ci/queue/static.rb
CHANGED
@@ -63,7 +63,7 @@ module CI
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def expired?
|
66
|
-
(@created_at.to_f TEN_MINUTES) < CI::Queue.time_now.to_f
|
66
|
+
(@created_at.to_f + TEN_MINUTES) < CI::Queue.time_now.to_f
|
67
67
|
end
|
68
68
|
|
69
69
|
def populated?
|
@@ -83,13 +83,14 @@ module CI
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def running
|
86
|
-
1
|
86
|
+
@reserved_test ? 1 : 0
|
87
87
|
end
|
88
88
|
|
89
89
|
def poll
|
90
|
-
while !@shutdown && config.circuit_breakers.none?(&:open?) && !max_test_failed? &&
|
91
|
-
yield index.fetch(
|
90
|
+
while !@shutdown && config.circuit_breakers.none?(&:open?) && !max_test_failed? && @reserved_test = @queue.shift
|
91
|
+
yield index.fetch(@reserved_test)
|
92
92
|
end
|
93
|
+
@reserved_test = nil
|
93
94
|
end
|
94
95
|
|
95
96
|
def exhausted?
|
data/lib/ci/queue/version.rb
CHANGED
data/lib/minitest/queue.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.47.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-02-
|
11
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
|
-
rubygems_version: 3.5.
|
244
|
+
rubygems_version: 3.5.6
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: Distribute tests over many workers using a queue
|