ci-queue 0.24.3 → 0.26.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/version.rb +1 -1
- data/lib/minitest/queue/runner.rb +9 -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: d569e8651a9452805cbd117a0cd9b9b152b3c395b91603912e69b1f80a322ee2
|
4
|
+
data.tar.gz: 386ec9757bd17171ed5a1736ace13d227ded04446b63b2d13de4e3f11be5d260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65da7243fd3c0a952e0a108dd105a5e821a534851724e0f87db4a0fec445b5c262f446e26cfb889cfb22e972bb57edd9ef61697e369a5a824fa783951bb89f06
|
7
|
+
data.tar.gz: 005b27f150a183512caf96fcd3b19a4a0a1ca3b4ba21713af191d5472e84d224fb6bd7d19e2e16cbd5cb4d4078850bce3d5de24ce7c23ee035e947e36f1b3899
|
data/lib/ci/queue/version.rb
CHANGED
@@ -42,11 +42,13 @@ module Minitest
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def retry_command
|
45
|
+
require_worker_id!
|
45
46
|
STDERR.puts "Warning: the retry subcommand is deprecated."
|
46
47
|
run_command # aliased for backward compatibility purpose
|
47
48
|
end
|
48
49
|
|
49
50
|
def run_command
|
51
|
+
require_worker_id!
|
50
52
|
if queue.retrying? || retry?
|
51
53
|
if queue.expired?
|
52
54
|
abort! "The test run is too old and can't be retried"
|
@@ -90,6 +92,7 @@ module Minitest
|
|
90
92
|
end
|
91
93
|
|
92
94
|
def release_command
|
95
|
+
require_worker_id!
|
93
96
|
queue.release!
|
94
97
|
end
|
95
98
|
|
@@ -196,7 +199,7 @@ module Minitest
|
|
196
199
|
msg = "#{supervisor.size} tests weren't run."
|
197
200
|
if supervisor.max_test_failed?
|
198
201
|
puts('Encountered too many failed tests. Test run was ended early.')
|
199
|
-
|
202
|
+
abort!(msg)
|
200
203
|
else
|
201
204
|
abort!(msg)
|
202
205
|
end
|
@@ -249,6 +252,11 @@ module Minitest
|
|
249
252
|
attr_reader :queue_config, :options, :command, :argv
|
250
253
|
attr_accessor :queue, :queue_url, :grind_list, :grind_count, :load_paths
|
251
254
|
|
255
|
+
def require_worker_id!
|
256
|
+
invalid_usage!("build-id couldn't be inferred from ENV and wasn't set via --build") unless queue_config.build_id
|
257
|
+
invalid_usage!("worker-id couldn't be inferred from ENV and wasn't set via --worker") unless queue_config.worker_id
|
258
|
+
end
|
259
|
+
|
252
260
|
def display_warnings(build)
|
253
261
|
build.pop_warnings.each do |type, attributes|
|
254
262
|
case type
|
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.26.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-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|