parallelized_specs 0.4.23 → 0.4.24
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 +6 -11
- 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.24"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/lib/parallelized_specs.rb
CHANGED
@@ -303,11 +303,9 @@ class ParallelizedSpecs
|
|
303
303
|
#can't just use exit code, if specs fail to start it will pass or if a spec isn't found, and sometimes rspec 1 exit codes aren't right
|
304
304
|
rerun_status = result.scan(/\d*[^\D]\d*/).to_s
|
305
305
|
puts "INFO: this is the rerun_status\n#{rerun_status}"
|
306
|
-
|
307
|
-
@examples = rerun_status[
|
306
|
+
example_index = rerun_status.length - 2
|
307
|
+
@examples = rerun_status[example_index].to_i
|
308
308
|
@failures = rerun_status.last.to_i
|
309
|
-
puts @examples
|
310
|
-
puts @failures
|
311
309
|
end
|
312
310
|
|
313
311
|
def self.rerun_spec(spec)
|
@@ -349,7 +347,7 @@ class ParallelizedSpecs
|
|
349
347
|
abort "SEVERE: #{@error_count} errors, but the build failed, errors were not written to the file or there is something else wrong, marking build as a failure"
|
350
348
|
when code == 6
|
351
349
|
print_failures("#{RAILS_ROOT}/tmp/parallel_log/error.log")
|
352
|
-
abort "SEVERE: #{@error_count} errors are to many to rerun, marking the build as a failure
|
350
|
+
abort "SEVERE: #{@error_count} errors are to many to rerun, marking the build as a failure"
|
353
351
|
when code == 7
|
354
352
|
puts "#Total errors #{@error_count}"
|
355
353
|
abort "SEVERE: unexpected error information, please check errors are being written to file correctly"
|
@@ -384,18 +382,15 @@ class ParallelizedSpecs
|
|
384
382
|
@error_count = %x{wc -l "#{@filename}"}.match(/\d*[^\D]/).to_s #counts the number of lines in the file
|
385
383
|
@error_count = @error_count.to_i
|
386
384
|
puts "INFO: error count = #@error_count"
|
387
|
-
ENV["RERUNS"] != nil ? @max_reruns = ENV["RERUNS"].to_i : @max_reruns = 9
|
388
|
-
system("unset RERUNS")
|
389
385
|
|
390
|
-
|
391
|
-
if !@error_count.between?(1, @max_reruns)
|
386
|
+
if !@error_count.between?(1, 9)
|
392
387
|
puts "INFO: total errors are not in rerun eligibility range"
|
393
388
|
case
|
394
389
|
when @error_count == 0
|
395
390
|
puts "INFO: 0 errors build being aborted"
|
396
391
|
abort_reruns(5)
|
397
|
-
when @error_count >
|
398
|
-
puts "INFO: error count has exceeded maximum errors of
|
392
|
+
when @error_count > 9
|
393
|
+
puts "INFO: error count has exceeded maximum errors of 9"
|
399
394
|
abort_reruns(6)
|
400
395
|
else
|
401
396
|
abort_reruns(7)
|
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.24"
|
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: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 24
|
10
|
+
version: 0.4.24
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|