ci-queue 0.73.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ci/queue/configuration.rb +2 -0
- data/lib/ci/queue/redis/worker.rb +4 -4
- data/lib/ci/queue/static.rb +3 -1
- data/lib/ci/queue/version.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: ab1459aeb231359897fa3bd1acf7988fe8a96d64803502bf0bd61048cadf22bf
|
4
|
+
data.tar.gz: bf92702e1c78c06fbe5fb64742c629888fe1ca96e0daaf1fbd150ddc30c738b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c39eb04a99c087c8feeb7f9972dc81eee0380e5933c43e548bbb5d6232de7045840b9613e9f6476589cff7d6cfb33438e2c2844c819aa78daff8a789c2d23b5
|
7
|
+
data.tar.gz: be3599c93a7ba13349968f459adb752d5859537f49f3a708ec2b953df4b9e734eacb974b8aa00a9ca0f2abd513015598a37aa85c8ae0f50e6b0c817a1d825966
|
data/Gemfile.lock
CHANGED
@@ -20,6 +20,8 @@ module CI
|
|
20
20
|
statsd_endpoint: env['CI_QUEUE_STATSD_ADDR'],
|
21
21
|
redis_ttl: env['CI_QUEUE_REDIS_TTL']&.to_i || 8 * 60 * 60,
|
22
22
|
debug_log: env['CI_QUEUE_DEBUG_LOG'],
|
23
|
+
max_requeues: env['CI_QUEUE_MAX_REQUEUES']&.to_i || 0,
|
24
|
+
requeue_tolerance: env['CI_QUEUE_REQUEUE_TOLERANCE']&.to_f || 0,
|
23
25
|
)
|
24
26
|
end
|
25
27
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'ci/queue/static'
|
3
|
-
require 'set'
|
3
|
+
require 'concurrent/set'
|
4
4
|
|
5
5
|
module CI
|
6
6
|
module Queue
|
@@ -16,7 +16,7 @@ module CI
|
|
16
16
|
attr_reader :total
|
17
17
|
|
18
18
|
def initialize(redis, config)
|
19
|
-
@reserved_tests = Set.new
|
19
|
+
@reserved_tests = Concurrent::Set.new
|
20
20
|
@shutdown_required = false
|
21
21
|
super(redis, config)
|
22
22
|
end
|
@@ -154,7 +154,7 @@ module CI
|
|
154
154
|
attr_reader :index
|
155
155
|
|
156
156
|
def reserved_tests
|
157
|
-
@reserved_tests ||= Set.new
|
157
|
+
@reserved_tests ||= Concurrent::Set.new
|
158
158
|
end
|
159
159
|
|
160
160
|
def worker_id
|
@@ -219,7 +219,7 @@ module CI
|
|
219
219
|
end
|
220
220
|
|
221
221
|
if @master = (value == status)
|
222
|
-
puts "Worker
|
222
|
+
puts "Worker elected as leader, pushing #{@total} tests to the queue."
|
223
223
|
puts
|
224
224
|
|
225
225
|
attempts = 0
|
data/lib/ci/queue/static.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'concurrent/set'
|
4
|
+
|
3
5
|
module CI
|
4
6
|
module Queue
|
5
7
|
class Static
|
@@ -145,7 +147,7 @@ module CI
|
|
145
147
|
end
|
146
148
|
|
147
149
|
def reserved_tests
|
148
|
-
@reserved_tests ||= Set.new
|
150
|
+
@reserved_tests ||= Concurrent::Set.new
|
149
151
|
end
|
150
152
|
end
|
151
153
|
end
|
data/lib/ci/queue/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci-queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.75.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
254
|
- !ruby/object:Gem::Version
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
|
-
rubygems_version: 3.
|
257
|
+
rubygems_version: 3.7.1
|
258
258
|
specification_version: 4
|
259
259
|
summary: Distribute tests over many workers using a queue
|
260
260
|
test_files: []
|