parallelized_specs 0.4.13 → 0.4.14
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/parallelized_specs.rb +8 -4
- data/parallelized_specs.gemspec +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
gem.email = "jake@instructure.com"
|
13
13
|
gem.homepage = "http://github.com/jakesorce/#{gem.name}"
|
14
14
|
gem.authors = "Jake Sorce, Bryan Madsen, Shawn Meredith"
|
15
|
-
gem.version = "0.4.
|
15
|
+
gem.version = "0.4.14"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/lib/parallelized_specs.rb
CHANGED
@@ -326,7 +326,7 @@ class ParallelizedSpecs
|
|
326
326
|
end
|
327
327
|
|
328
328
|
def self.abort_reruns(code, result = "")
|
329
|
-
case
|
329
|
+
case
|
330
330
|
when code == 1
|
331
331
|
print_failures("#{RAILS_ROOT}/tmp/parallel_log/error.log")
|
332
332
|
abort "SEVERE: shared specs currently are not eligiable for reruns, marking build as a failure"
|
@@ -355,6 +355,8 @@ class ParallelizedSpecs
|
|
355
355
|
abort "SEVERE: some specs failed on rerun, the build will be marked as failed"
|
356
356
|
when code == 9
|
357
357
|
abort "SEVERE: unexpected situation on rerun, marking build as failure"
|
358
|
+
else
|
359
|
+
abort "SEVERE: unhandled abort_reruns code"
|
358
360
|
end
|
359
361
|
end
|
360
362
|
|
@@ -378,19 +380,21 @@ class ParallelizedSpecs
|
|
378
380
|
def self.calculate_error_count()
|
379
381
|
@error_count = %x{wc -l "#{@filename}"}.match(/\d*[^\D]/).to_s #counts the number of lines in the file
|
380
382
|
@error_count = @error_count.to_i
|
383
|
+
puts "INFO: error count = #@error_count"
|
384
|
+
|
381
385
|
if !@error_count.between?(1, 9)
|
386
|
+
puts "INFO: total errors are not in rerun eligibility range"
|
382
387
|
case
|
383
388
|
when @error_count == 0
|
384
|
-
puts "0 errors build being aborted"
|
389
|
+
puts "INFO: 0 errors build being aborted"
|
385
390
|
abort_reruns(5)
|
386
391
|
when @error_count > 9
|
387
|
-
puts "error count has exceeded maximum errors of 9"
|
392
|
+
puts "INFO: error count has exceeded maximum errors of 9"
|
388
393
|
abort_reruns(6)
|
389
394
|
else
|
390
395
|
abort_reruns(7)
|
391
396
|
end
|
392
397
|
else
|
393
|
-
puts "INFO: error count = #@error_count"
|
394
398
|
@error_count
|
395
399
|
end
|
396
400
|
end
|
data/parallelized_specs.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "parallelized_specs"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.14"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jake Sorce, Bryan Madsen, Shawn Meredith"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallelized_specs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 14
|
10
|
+
version: 0.4.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|