ci-queue 0.3.0 → 0.4.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
  SHA1:
3
- metadata.gz: e705f791872606bc69ef5bf0851b3d70d3a7306f
4
- data.tar.gz: 6132821be168baecd4e6bc963830f6594cf74d6e
3
+ metadata.gz: 9e2a5e243d0c01b09a1ec573d9fbd68a5d53ee58
4
+ data.tar.gz: 2ecc77117536d28f5acd1af66e9aad9c7cf5748a
5
5
  SHA512:
6
- metadata.gz: 5564b0a1b1e8d0c9c3f8e26a3403a926a0f406e06c8770aa5fefdd9223926d7d76faa200977d818068c23c266ab819491ca3e5b7253500a2a049e5b9af9393fb
7
- data.tar.gz: df04b3f6bc3f975ca00253c9eb06c6c77944dc0cf689a0ec3f995a142ba6e88a95fbd5b57227f4e202cc5b4ec6f57527115ee32592b23c568406a102494d4dd1
6
+ metadata.gz: 73bb4f9b60fa024297d59e2548461b76442e4b1a873bb218c995cb5c2a145b77e329c14b32e12dad4f624dab296e466a6aa47a3664ce7938a40923861f4b6aa0
7
+ data.tar.gz: 2f808596714e9a399dc609b2a473c332dd119fcaedda6410c375e71a8114ed08a3e12ea6eb86957404afa21253c265017126e1cefaba4c2975a42d3eb4158043
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.13'
25
25
  spec.add_development_dependency 'rake', "~> 10.0"
26
- spec.add_development_dependency 'minitest', '~> 5.0'
26
+ spec.add_development_dependency 'minitest', '~> 5.9.1'
27
27
  spec.add_development_dependency 'redis', '~> 3.3'
28
28
  spec.add_development_dependency 'simplecov', '~> 0.12'
29
29
  spec.add_development_dependency 'minitest-reporters', '~> 1.1'
@@ -45,6 +45,7 @@ module CI
45
45
  sleep 0.05
46
46
  end
47
47
  end
48
+ rescue ::Redis::BaseConnectionError
48
49
  end
49
50
 
50
51
  def retry_queue(**args)
@@ -193,6 +194,8 @@ module CI
193
194
  redis.set(key('master-status'), 'ready')
194
195
  end
195
196
  end
197
+ rescue ::Redis::BaseConnectionError
198
+ raise if @master
196
199
  end
197
200
  end
198
201
  end
@@ -1,5 +1,5 @@
1
1
  module CI
2
2
  module Queue
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -0,0 +1,21 @@
1
+ require 'minitest/reporters'
2
+
3
+ class Minitest::Reporters::OrderReporter < Minitest::Reporters::BaseReporter
4
+ def initialize(options = {})
5
+ @path = options.delete(:path)
6
+ super
7
+ end
8
+
9
+ def start
10
+ @file = File.open(@path, 'w+')
11
+ super
12
+ end
13
+
14
+ def record(test)
15
+ @file.puts("#{test.class}##{test.name}")
16
+ end
17
+
18
+ def report
19
+ @file.close
20
+ end
21
+ end
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.3.0
4
+ version: 0.4.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: 2016-11-24 00:00:00.000000000 Z
11
+ date: 2016-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.0'
47
+ version: 5.9.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5.0'
54
+ version: 5.9.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: redis
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +123,7 @@ files:
123
123
  - lib/ci/queue/version.rb
124
124
  - lib/minitest/queue.rb
125
125
  - lib/minitest/reporters/failure_formatter.rb
126
+ - lib/minitest/reporters/order_reporter.rb
126
127
  - lib/minitest/reporters/queue_reporter.rb
127
128
  - lib/minitest/reporters/redis_reporter.rb
128
129
  homepage: https://github.com/Shopify/ci-queue
@@ -145,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
146
  version: '0'
146
147
  requirements: []
147
148
  rubyforge_project:
148
- rubygems_version: 2.5.1
149
+ rubygems_version: 2.6.6
149
150
  signing_key:
150
151
  specification_version: 4
151
152
  summary: Distribute tests over many workers using a queue