Hello community,
here is the log from the commit of package rubygem-parallel_tests for
openSUSE:Factory checked in at 2020-02-19 12:39:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-parallel_tests (Old)
and /work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-parallel_tests"
Wed Feb 19 12:39:19 2020 rev:7 rq:773830 version:2.31.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-parallel_tests/rubygem-parallel_tests.changes
2019-08-05 11:18:04.530518559 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.26092/rubygem-parallel_tests.changes
2020-02-19 12:39:20.851486812 +0100
@@ -1,0 +2,6 @@
+Mon Feb 10 15:21:37 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 2.31.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
parallel_tests-2.29.1.gem
New:
----
parallel_tests-2.31.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-parallel_tests.spec ++++++
--- /var/tmp/diff_new_pack.AhXfB7/_old 2020-02-19 12:39:21.387487844 +0100
+++ /var/tmp/diff_new_pack.AhXfB7/_new 2020-02-19 12:39:21.391487852 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-parallel_tests
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-parallel_tests
-Version: 2.29.1
+Version: 2.31.0
Release: 0
%define mod_name parallel_tests
%define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
BuildRequires: update-alternatives
-Url: http://github.com/grosser/parallel_tests
+URL: https://github.com/grosser/parallel_tests
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Run Test::Unit / RSpec / Cucumber / Spinach in parallel
++++++ parallel_tests-2.29.1.gem -> parallel_tests-2.31.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Readme.md new/Readme.md
--- old/Readme.md 2019-06-13 17:08:04.000000000 +0200
+++ new/Readme.md 2020-01-31 20:09:30.000000000 +0100
@@ -266,14 +266,13 @@
- Builds a HTML report from JSON with support for debug msgs & embedded
Base64 images.
### General
- - [SQL schema format] use :ruby schema format to get faster parallel:prepare`
- [ZSH] use quotes to use rake arguments `rake "parallel:prepare[3]"`
- [Memcached] use different namespaces<br/>
e.g. `config.cache_store = ..., namespace: "test_#{ENV['TEST_ENV_NUMBER']}"`
- Debug errors that only happen with multiple files using `--verbose` and
[cleanser](https://github.com/grosser/cleanser)
- `export PARALLEL_TEST_PROCESSORS=13` to override default processor count
- Shell alias: `alias prspec='parallel_rspec -m 2 --'`
- - [Spring] to use spring you have to [patch
it](https://github.com/grosser/parallel_tests/wiki/Spring)
+ - [Spring] Add the
[spring-commands-parallel-tests](https://github.com/DocSpring/spring-commands-parallel-tests)
gem to your `Gemfile` to get `parallel_tests` working with Spring.
- `--first-is-1` will make the first environment be `1`, so you can test
while running your full suite.<br/>
`export PARALLEL_TEST_FIRST_IS_1=true` will provide the same result
- [email_spec and/or
action_mailer_cache_delivery](https://github.com/grosser/parallel_tests/wiki)
@@ -373,6 +372,7 @@
- [Sandeep Singh](https://github.com/sandeepnagra)
- [Calaway](https://github.com/calaway)
- [alboyadjian](https://github.com/alboyadjian)
+ - [Nathan Broadbent](https://github.com/ndbroadbent)
[Michael Grosser](http://grosser.it)<br/>
[email protected]<br/>
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/cli.rb
new/lib/parallel_tests/cli.rb
--- old/lib/parallel_tests/cli.rb 2019-06-13 17:08:04.000000000 +0200
+++ new/lib/parallel_tests/cli.rb 2020-01-31 20:09:30.000000000 +0100
@@ -2,6 +2,7 @@
require 'tempfile'
require 'parallel_tests'
require 'shellwords'
+require 'pathname'
module ParallelTests
class CLI
@@ -239,7 +240,7 @@
files, remaining = extract_file_paths(argv)
unless options[:execute]
abort "Pass files or folders to run" unless files.any?
- options[:files] = files
+ options[:files] = files.map { |file_path|
Pathname.new(file_path).cleanpath.to_s }
end
append_test_options(options, remaining)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/parallel_tests/gherkin/listener.rb
new/lib/parallel_tests/gherkin/listener.rb
--- old/lib/parallel_tests/gherkin/listener.rb 2019-06-13 17:08:04.000000000
+0200
+++ new/lib/parallel_tests/gherkin/listener.rb 2020-01-31 20:09:30.000000000
+0100
@@ -10,6 +10,7 @@
def initialize
@steps, @uris = [], []
@collect = {}
+ @feature, @ignore_tag_pattern = nil
reset_counters!
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/parallel_tests/pids.rb
new/lib/parallel_tests/pids.rb
--- old/lib/parallel_tests/pids.rb 2019-06-13 17:08:04.000000000 +0200
+++ new/lib/parallel_tests/pids.rb 2020-01-31 20:09:30.000000000 +0100
@@ -2,7 +2,7 @@
module ParallelTests
class Pids
- attr_reader :pids, :file_path, :mutex
+ attr_reader :file_path, :mutex
def initialize(file_path)
@file_path = file_path
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 2019-06-13 17:08:04.000000000
+0200
+++ new/lib/parallel_tests/rspec/runner.rb 2020-01-31 20:09:30.000000000
+0100
@@ -18,7 +18,7 @@
when File.exist?("bin/rspec")
ParallelTests.with_ruby_binary("bin/rspec")
when ParallelTests.bundler_enabled?
- cmd = (run("bundle show rspec-core") =~ %r{Could not find gem.*} ?
"spec" : "rspec")
+ cmd = (run("bundle info rspec-core") =~ %r{Could not find gem.*} ?
"spec" : "rspec")
"bundle exec #{cmd}"
else
%w[spec rspec].detect{|cmd| system "#{cmd} --version > #{DEV_NULL}
2>&1" }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/parallel_tests/tasks.rb
new/lib/parallel_tests/tasks.rb
--- old/lib/parallel_tests/tasks.rb 2019-06-13 17:08:04.000000000 +0200
+++ new/lib/parallel_tests/tasks.rb 2020-01-31 20:09:30.000000000 +0100
@@ -8,6 +8,14 @@
ENV['RAILS_ENV'] || 'test'
end
+ def rake_bin
+ # Prevent 'Exec format error' Errno::ENOEXEC on Windows
+ return "rake" if RUBY_PLATFORM =~ /mswin|mingw|cygwin/
+ binstub_path = File.join('bin', 'rake')
+ return binstub_path if File.exist?(binstub_path)
+ "rake"
+ end
+
def load_lib
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..'))
require "parallel_tests"
@@ -89,67 +97,84 @@
namespace :parallel do
desc "Setup test databases via db:setup --> parallel:setup[num_cpus]"
task :setup, :count do |_,args|
- command = "rake db:setup RAILS_ENV=#{ParallelTests::Tasks.rails_env}"
+ command = "#{ParallelTests::Tasks.rake_bin} db:setup
RAILS_ENV=#{ParallelTests::Tasks.rails_env}"
ParallelTests::Tasks.run_in_parallel(ParallelTests::Tasks.suppress_schema_load_output(command),
args)
end
desc "Create test databases via db:create --> parallel:create[num_cpus]"
task :create, :count do |_,args|
- ParallelTests::Tasks.run_in_parallel("rake db:create
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
+ ParallelTests::Tasks.run_in_parallel(
+ "#{ParallelTests::Tasks.rake_bin} db:create
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
end
desc "Drop test databases via db:drop --> parallel:drop[num_cpus]"
task :drop, :count do |_,args|
- ParallelTests::Tasks.run_in_parallel("rake db:drop
RAILS_ENV=#{ParallelTests::Tasks.rails_env}
DISABLE_DATABASE_ENVIRONMENT_CHECK=1", args)
+ ParallelTests::Tasks.run_in_parallel(
+ "#{ParallelTests::Tasks.rake_bin} db:drop
RAILS_ENV=#{ParallelTests::Tasks.rails_env} " \
+ "DISABLE_DATABASE_ENVIRONMENT_CHECK=1", args)
end
desc "Update test databases by dumping and loading -->
parallel:prepare[num_cpus]"
task(:prepare, [:count]) do |_,args|
ParallelTests::Tasks.check_for_pending_migrations
- if defined?(ActiveRecord) && ActiveRecord::Base.schema_format == :ruby
- # dump then load in parallel
- Rake::Task['db:schema:dump'].invoke
- Rake::Task['parallel:load_schema'].invoke(args[:count])
+ if defined?(ActiveRecord::Base) && [:ruby,
:sql].include?(ActiveRecord::Base.schema_format)
+ # fast: dump once, load in parallel
+ type = (ActiveRecord::Base.schema_format == :ruby ? "schema" :
"structure")
+ Rake::Task["db:#{type}:dump"].invoke
+
+ # remove database connection to prevent "database is being accessed by
other users"
+ ActiveRecord::Base.remove_connection if
ActiveRecord::Base.configurations.any?
+
+ Rake::Task["parallel:load_#{type}"].invoke(args[:count])
else
- # there is no separate dump / load for schema_format :sql -> do it safe
and slow
+ # slow: dump and load in in serial
args = args.to_hash.merge(:non_parallel => true) # normal merge returns
nil
- taskname = Rake::Task.task_defined?('db:test:prepare') ?
'db:test:prepare' : 'app:db:test:prepare'
- ParallelTests::Tasks.run_in_parallel("rake #{taskname}", args)
+ task_name = Rake::Task.task_defined?('db:test:prepare') ?
'db:test:prepare' : 'app:db:test:prepare'
+ ParallelTests::Tasks.run_in_parallel("#{ParallelTests::Tasks.rake_bin}
#{task_name}", args)
+ next
end
end
# when dumping/resetting takes too long
desc "Update test databases via db:migrate --> parallel:migrate[num_cpus]"
task :migrate, :count do |_,args|
- ParallelTests::Tasks.run_in_parallel("rake db:migrate
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
+ ParallelTests::Tasks.run_in_parallel(
+ "#{ParallelTests::Tasks.rake_bin} db:migrate
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
end
desc "Rollback test databases via db:rollback -->
parallel:rollback[num_cpus]"
task :rollback, :count do |_,args|
- ParallelTests::Tasks.run_in_parallel("rake db:rollback
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
+ ParallelTests::Tasks.run_in_parallel(
+ "#{ParallelTests::Tasks.rake_bin} db:rollback
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
end
# just load the schema (good for integration server <-> no development db)
desc "Load dumped schema for test databases via db:schema:load -->
parallel:load_schema[num_cpus]"
task :load_schema, :count do |_,args|
- command = "rake #{ParallelTests::Tasks.purge_before_load} db:schema:load
RAILS_ENV=#{ParallelTests::Tasks.rails_env}
DISABLE_DATABASE_ENVIRONMENT_CHECK=1"
+ command = "#{ParallelTests::Tasks.rake_bin}
#{ParallelTests::Tasks.purge_before_load} " \
+ "db:schema:load RAILS_ENV=#{ParallelTests::Tasks.rails_env}
DISABLE_DATABASE_ENVIRONMENT_CHECK=1"
ParallelTests::Tasks.run_in_parallel(ParallelTests::Tasks.suppress_schema_load_output(command),
args)
end
# load the structure from the structure.sql file
desc "Load structure for test databases via db:structure:load -->
parallel:load_structure[num_cpus]"
task :load_structure, :count do |_,args|
- ParallelTests::Tasks.run_in_parallel("rake
#{ParallelTests::Tasks.purge_before_load} db:structure:load
RAILS_ENV=#{ParallelTests::Tasks.rails_env}
DISABLE_DATABASE_ENVIRONMENT_CHECK=1", args)
+ ParallelTests::Tasks.run_in_parallel(
+ "#{ParallelTests::Tasks.rake_bin}
#{ParallelTests::Tasks.purge_before_load} " \
+ "db:structure:load RAILS_ENV=#{ParallelTests::Tasks.rails_env}
DISABLE_DATABASE_ENVIRONMENT_CHECK=1", args)
end
desc "Load the seed data from db/seeds.rb via db:seed -->
parallel:seed[num_cpus]"
task :seed, :count do |_,args|
- ParallelTests::Tasks.run_in_parallel("rake db:seed
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
+ ParallelTests::Tasks.run_in_parallel(
+ "#{ParallelTests::Tasks.rake_bin} db:seed
RAILS_ENV=#{ParallelTests::Tasks.rails_env}", args)
end
desc "Launch given rake command in parallel"
task :rake, :command, :count do |_, args|
-
ParallelTests::Tasks.run_in_parallel("RAILS_ENV=#{ParallelTests::Tasks.rails_env}
rake #{args.command}", args)
+ ParallelTests::Tasks.run_in_parallel(
+ "RAILS_ENV=#{ParallelTests::Tasks.rails_env}
#{ParallelTests::Tasks.rake_bin} " \
+ "#{args.command}", args)
end
['test', 'spec', 'features', 'features-spinach'].each do |type|
@@ -172,7 +197,8 @@
# Using the relative path to find the binary allow to run a specific
version of it
executable = File.join(File.dirname(__FILE__), '..', '..', 'bin',
'parallel_test')
- command =
"#{ParallelTests.with_ruby_binary(Shellwords.escape(executable))} #{type}
--type #{test_framework} " \
+ command =
"#{ParallelTests.with_ruby_binary(Shellwords.escape(executable))} #{type} " \
+ "--type #{test_framework} " \
"-n #{count} " \
"--pattern '#{pattern}' " \
"--test-options '#{options}' " \
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 2019-06-13 17:08:04.000000000 +0200
+++ new/lib/parallel_tests/version.rb 2020-01-31 20:09:30.000000000 +0100
@@ -1,3 +1,3 @@
module ParallelTests
- VERSION = Version = '2.29.1'
+ VERSION = Version = '2.31.0'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-06-13 17:08:04.000000000 +0200
+++ new/metadata 2020-01-31 20:09:30.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: parallel_tests
version: !ruby/object:Gem::Version
- version: 2.29.1
+ version: 2.31.0
platform: ruby
authors:
- Michael Grosser
autorequire:
bindir: bin
cert_chain: []
-date: 2019-06-13 00:00:00.000000000 Z
+date: 2020-01-31 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: parallel
@@ -62,10 +62,14 @@
- lib/parallel_tests/test/runner.rb
- lib/parallel_tests/test/runtime_logger.rb
- lib/parallel_tests/version.rb
-homepage: http://github.com/grosser/parallel_tests
+homepage: https://github.com/grosser/parallel_tests
licenses:
- MIT
-metadata: {}
+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
+ wiki_uri: https://github.com/grosser/parallel_tests/wiki
post_install_message:
rdoc_options: []
require_paths: