ci-queue 0.48.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/dev.yml +1 -1
- data/lib/ci/queue/version.rb +1 -1
- data/lib/minitest/queue/runner.rb +10 -3
- metadata +3 -4
- data/isogun.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1ecedc67f9ee4f238a84a54fd8744c735ca3a7921da2cf45f7c28503449d754
|
4
|
+
data.tar.gz: c77c0f29f913c255d7832ccd4c033020752a64e3e7618f2ab5f7848264bfc135
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3dad131865136444f87e12d402132c501ab0f465a69fc79dafb4d52a8120dbeb13633e2199ca5a482be7d39c2b71ddd480e401ac5ff6d3f7f400438a8025f0
|
7
|
+
data.tar.gz: c0a5396a66b11f6de5a2d733a62112e756c2ca2f45dc254996cc65799760790510a68209225a4ab59df4b49b77602d96b7f4ac76db0521a035358842a53d00f9
|
data/Gemfile.lock
CHANGED
data/dev.yml
CHANGED
data/lib/ci/queue/version.rb
CHANGED
@@ -49,7 +49,8 @@ module Minitest
|
|
49
49
|
|
50
50
|
def run_command
|
51
51
|
require_worker_id!
|
52
|
-
if
|
52
|
+
# if it's an automatic job retry we should process the main queue
|
53
|
+
if manual_retry?
|
53
54
|
if queue.expired?
|
54
55
|
abort! "The test run is too old and can't be retried"
|
55
56
|
end
|
@@ -181,10 +182,10 @@ module Minitest
|
|
181
182
|
def bisect_command
|
182
183
|
invalid_usage! "Missing the FAILING_TEST argument." unless queue_config.failing_test
|
183
184
|
|
184
|
-
@queue = CI::Queue::Bisect.new(queue_url, queue_config)
|
185
|
-
Minitest.queue = queue
|
186
185
|
set_load_path
|
187
186
|
load_tests
|
187
|
+
@queue = CI::Queue::Bisect.new(queue_url, queue_config)
|
188
|
+
Minitest.queue = queue
|
188
189
|
populate_queue
|
189
190
|
|
190
191
|
step("Testing the failing test in isolation")
|
@@ -671,6 +672,12 @@ module Minitest
|
|
671
672
|
exit! exit_status # exit! is required to avoid minitest at_exit callback
|
672
673
|
end
|
673
674
|
|
675
|
+
def manual_retry?
|
676
|
+
# this env variable only exists on Buildkite so we should default to manual for backward compatibility
|
677
|
+
(retry? || queue.retrying?) &&
|
678
|
+
ENV.fetch("BUILDKITE_RETRY_TYPE", "manual") == "manual"
|
679
|
+
end
|
680
|
+
|
674
681
|
def retry?
|
675
682
|
ENV["BUILDKITE_RETRY_COUNT"].to_i > 0 ||
|
676
683
|
ENV["SEMAPHORE_PIPELINE_RERUN"] == "true"
|
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.50.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-04-
|
11
|
+
date: 2024-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -173,7 +173,6 @@ files:
|
|
173
173
|
- dev.yml
|
174
174
|
- exe/minitest-queue
|
175
175
|
- exe/rspec-queue
|
176
|
-
- isogun.yml
|
177
176
|
- lib/ci/queue.rb
|
178
177
|
- lib/ci/queue/bisect.rb
|
179
178
|
- lib/ci/queue/build_record.rb
|
@@ -243,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
242
|
- !ruby/object:Gem::Version
|
244
243
|
version: '0'
|
245
244
|
requirements: []
|
246
|
-
rubygems_version: 3.5.
|
245
|
+
rubygems_version: 3.5.9
|
247
246
|
signing_key:
|
248
247
|
specification_version: 4
|
249
248
|
summary: Distribute tests over many workers using a queue
|