Hello community,

here is the log from the commit of package rubygem-parallel_tests for 
openSUSE:Factory checked in at 2020-05-11 13:32:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-parallel_tests (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-parallel_tests"

Mon May 11 13:32:02 2020 rev:8 rq:802361 version:2.32.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-parallel_tests/rubygem-parallel_tests.changes
    2020-02-19 12:39:20.851486812 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.2738/rubygem-parallel_tests.changes
  2020-05-11 13:34:36.632269447 +0200
@@ -1,0 +2,6 @@
+Thu May  7 21:12:22 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 2.32.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  parallel_tests-2.31.0.gem

New:
----
  parallel_tests-2.32.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-parallel_tests.spec ++++++
--- /var/tmp/diff_new_pack.YWpeb9/_old  2020-05-11 13:34:37.260270763 +0200
+++ /var/tmp/diff_new_pack.YWpeb9/_new  2020-05-11 13:34:37.260270763 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-parallel_tests
-Version:        2.31.0
+Version:        2.32.0
 Release:        0
 %define mod_name parallel_tests
 %define mod_full_name %{mod_name}-%{version}

++++++ parallel_tests-2.31.0.gem -> parallel_tests-2.32.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Readme.md new/Readme.md
--- old/Readme.md       2020-01-31 20:09:30.000000000 +0100
+++ new/Readme.md       2020-03-15 20:52:21.000000000 +0100
@@ -2,7 +2,7 @@
 
 [![Gem 
Version](https://badge.fury.io/rb/parallel_tests.svg)](https://rubygems.org/gems/parallel_tests)
 [![Build 
Status](https://travis-ci.org/grosser/parallel_tests.svg)](https://travis-ci.org/grosser/parallel_tests/builds)
-[![Build 
status](https://ci.appveyor.com/api/projects/status/708b1up4pqc34x3y?svg=true)](https://ci.appveyor.com/project/grosser/parallel-tests)
+[![Build 
status](https://github.com/grosser/parallel_tests/workflows/windows/badge.svg)](https://github.com/grosser/parallel_tests/actions?query=workflow%3Awindows)
 
 Speedup Test::Unit + RSpec + Cucumber + Spinach by running parallel on 
multiple CPU cores.<br/>
 ParallelTests splits tests into even groups (by number of lines or runtime) 
and runs each group in a single process with its own database.
@@ -256,7 +256,8 @@
  - Instantly see failures (instead of just a red F) with 
[rspec-instafail](https://github.com/grosser/rspec-instafail)
  - Use [rspec-retry](https://github.com/NoRedInk/rspec-retry) (not 
rspec-rerun) to rerun failed tests.
  - [JUnit formatter 
configuration](https://github.com/grosser/parallel_tests/wiki#with-rspec_junit_formatter----by-jgarber)
-
+ - Use [parallel_split_test](https://github.com/grosser/parallel_split_test) 
to run multiple scenarios in a single spec file, concurrently. 
(`parallel_tests` [works at the file-level and intends to stay that 
way](https://github.com/grosser/parallel_tests/issues/747#issuecomment-580216980))
+ 
 ### Cucumber
 
  - Add a `parallel: foo` profile to your `config/cucumber.yml` and it will be 
used to run parallel tests
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/parallel_tests/rspec/runner.rb 
new/lib/parallel_tests/rspec/runner.rb
--- old/lib/parallel_tests/rspec/runner.rb      2020-01-31 20:09:30.000000000 
+0100
+++ new/lib/parallel_tests/rspec/runner.rb      2020-03-15 20:52:21.000000000 
+0100
@@ -14,17 +14,14 @@
         end
 
         def determine_executable
-          cmd = case
+          case
           when File.exist?("bin/rspec")
             ParallelTests.with_ruby_binary("bin/rspec")
           when ParallelTests.bundler_enabled?
-            cmd = (run("bundle info rspec-core") =~ %r{Could not find gem.*} ? 
"spec" : "rspec")
-            "bundle exec #{cmd}"
+            "bundle exec rspec"
           else
-            %w[spec rspec].detect{|cmd| system "#{cmd} --version > #{DEV_NULL} 
2>&1" }
+            "rspec"
           end
-
-          cmd or raise("Can't find executables rspec or spec")
         end
 
         def runtime_log
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/parallel_tests/test/runner.rb 
new/lib/parallel_tests/test/runner.rb
--- old/lib/parallel_tests/test/runner.rb       2020-01-31 20:09:30.000000000 
+0100
+++ new/lib/parallel_tests/test/runner.rb       2020-03-15 20:52:21.000000000 
+0100
@@ -188,11 +188,7 @@
             puts "Runtime found for #{tests.count(&:last)} of #{tests.size} 
tests"
           end
 
-          # fill gaps with unknown-runtime if given, average otherwise
-          known, unknown = tests.partition(&:last)
-          average = (known.any? ? known.map!(&:last).inject(:+) / known.size : 
1)
-          unknown_runtime = options[:unknown_runtime] || average
-          unknown.each { |set| set[1] = unknown_runtime }
+          set_unknown_runtime tests, options
         end
 
         def runtimes(tests, options)
@@ -240,6 +236,16 @@
 
         private
 
+        # fill gaps with unknown-runtime if given, average otherwise
+        # NOTE: an optimization could be doing runtime by average runtime per 
file size, but would need file checks
+        def set_unknown_runtime(tests, options)
+          known, unknown = tests.partition(&:last)
+          return if unknown.empty?
+          unknown_runtime = options[:unknown_runtime] ||
+            (known.empty? ? 1 : known.map!(&:last).inject(:+) / known.size) # 
average
+          unknown.each { |set| set[1] = unknown_runtime }
+        end
+
         def report_process_command?(options)
           options[:verbose] || options[:verbose_process_command]
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/parallel_tests/version.rb 
new/lib/parallel_tests/version.rb
--- old/lib/parallel_tests/version.rb   2020-01-31 20:09:30.000000000 +0100
+++ new/lib/parallel_tests/version.rb   2020-03-15 20:52:21.000000000 +0100
@@ -1,3 +1,3 @@
 module ParallelTests
-  VERSION = Version = '2.31.0'
+  VERSION = Version = '2.32.0'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-01-31 20:09:30.000000000 +0100
+++ new/metadata        2020-03-15 20:52:21.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: parallel_tests
 version: !ruby/object:Gem::Version
-  version: 2.31.0
+  version: 2.32.0
 platform: ruby
 authors:
 - Michael Grosser
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2020-01-31 00:00:00.000000000 Z
+date: 2020-03-15 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: parallel
@@ -67,8 +67,8 @@
 - MIT
 metadata:
   bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
-  documentation_uri: 
https://github.com/grosser/parallel_tests/blob/v2.31.0/Readme.md
-  source_code_uri: https://github.com/grosser/parallel_tests/tree/v2.31.0
+  documentation_uri: 
https://github.com/grosser/parallel_tests/blob/v2.32.0/Readme.md
+  source_code_uri: https://github.com/grosser/parallel_tests/tree/v2.32.0
   wiki_uri: https://github.com/grosser/parallel_tests/wiki
 post_install_message: 
 rdoc_options: []


Reply via email to