ci-queue 0.48.0 → 0.49.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 +8 -1
- metadata +1 -2
- 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: 946f3f483ffbf8d89553c575d733767bd0851dffaa1439463ce43508f1727eb1
|
4
|
+
data.tar.gz: b74f1059c33686eacc6ef613900595ce8ff74d7fdd55f5f14c856c33fe35c2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eca10a80566c11cb600f133008848bde44adec4347f16ec174300e24fb7fafc8727f2dbeae90884b41c60ed784ea8477c5ac896fefac3a7170c84e6b87249fd
|
7
|
+
data.tar.gz: e8e04782df56a2b1cfd873e3ec9295f4e91b848f7f02cc99df41a349a45115a6ceb0fcd2263fc19e54dfe0b72fb870afc80bd74970f443920c0e31a7c5af8937
|
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
|
@@ -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,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.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
@@ -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
|