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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afd20dadd29a542f0876168e23d79e5360f893d780fbe9b4774e5de1a46445da
4
- data.tar.gz: 00bdb8f74d38573f2fecea1ee6ce15122e04ecc82642b76f8439d189b0474be3
3
+ metadata.gz: 946f3f483ffbf8d89553c575d733767bd0851dffaa1439463ce43508f1727eb1
4
+ data.tar.gz: b74f1059c33686eacc6ef613900595ce8ff74d7fdd55f5f14c856c33fe35c2b3
5
5
  SHA512:
6
- metadata.gz: 79aaeb1f29291026f8fdf36101b7105fc76845b0e8142eb3cf3400e7905235f8cedc2f71be6819a1c7adbe6b08898e14db0e490214f62cee65f03b8d70e9dac4
7
- data.tar.gz: f140a713fbb4f4ad6c2772143e97409f093a1829e6ac86a429036db3d5bc7f8a291e7d304e7314fcadb86d54ff449dfacf486b8318faf2e1b0074556459475c8
6
+ metadata.gz: 4eca10a80566c11cb600f133008848bde44adec4347f16ec174300e24fb7fafc8727f2dbeae90884b41c60ed784ea8477c5ac896fefac3a7170c84e6b87249fd
7
+ data.tar.gz: e8e04782df56a2b1cfd873e3ec9295f4e91b848f7f02cc99df41a349a45115a6ceb0fcd2263fc19e54dfe0b72fb870afc80bd74970f443920c0e31a7c5af8937
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-queue (0.48.0)
4
+ ci-queue (0.49.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/dev.yml CHANGED
@@ -8,4 +8,4 @@ up:
8
8
  - redis
9
9
 
10
10
  commands:
11
- test: REDIS_URL=${REDIS_URL:-redis://ci-queue.railgun/0} bundle exec rake test TEST_FILES="$*"
11
+ test: REDIS_URL=${REDIS_URL} bundle exec rake test TEST_FILES="$*"
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.48.0'
5
+ VERSION = '0.49.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -49,7 +49,8 @@ module Minitest
49
49
 
50
50
  def run_command
51
51
  require_worker_id!
52
- if queue.retrying? || retry?
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.48.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
data/isogun.yml DELETED
@@ -1,10 +0,0 @@
1
- # This file is for Shopify employees development environment.
2
- # If you are an external contributor you don't have to bother with it.
3
- name: ci-queue
4
-
5
- vm:
6
- ip_address: 192.168.64.245
7
- memory: 1G
8
- cores: 2
9
- services:
10
- - redis