1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails
Bogdan e9f6ce617b Add option to set parallel test worker count to the physical core count of the machine (#34735)
* Add option to set parallel test worker count to the physical core count of the machine

Also, use the physical core count of the machine as
the default number of workers, and  generate the `test_helper.rb` file
with `parallelize(workers: :number_of_processors)`

Closes #34734

* Ensure that we always test parallel testing

Since #34734 we decided to use the physical core count of the machine as
the default number of workers in the parallel testing, we need to
ensure that some tests use at least 2 workers because we could
run those tests on VM that has only 1 physical core.
It also fixes tests failures on the CI since Travis server we are using
has only one physical core.
See https://travis-ci.org/rails/rails/jobs/469281088#L2352
2018-12-18 10:25:35 -08:00
..
api
application Introduce a guard against DNS rebinding attacks 2018-12-15 20:18:51 +02:00
command
commands Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
console
engine Remove asset paths from eager_load_paths and autoload_paths 2018-11-09 14:48:15 -05:00
generators Add option to set parallel test worker count to the physical core count of the machine (#34735) 2018-12-18 10:25:35 -08:00
plugin
rack
railtie
tasks Make Webpacker the default JavaScript compiler for Rails 6 (#33079) 2018-09-30 22:31:21 -07:00
templates Ruby can show a little bit more detailed info in shorter code 2018-12-15 13:21:58 +09:00
test_unit Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
all.rb
app_loader.rb
app_updater.rb Remove --skip-yarn in favor of --skip-javascript 2018-10-22 16:54:10 +03:00
application.rb chore: implement config_for as ActiveSupport::OrderedOptions 2018-10-19 14:37:06 +02:00
application_controller.rb
backtrace_cleaner.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
cli.rb
code_statistics.rb
code_statistics_calculator.rb
command.rb Homogenize rails help output 2018-11-19 22:48:51 +01:00
commands.rb
configuration.rb
dev_caching.rb
engine.rb Revert "Merge pull request #33970 from rails/eager-url-helpers" 2018-10-03 16:15:47 -05:00
gem_version.rb
generators.rb Remove javascripts and javascript_engine options for generators 2018-10-22 00:12:15 +03:00
info.rb http://localhost:3000/rails/info/properties shows more details for ease of bug reporting 2018-12-14 17:59:51 +09:00
info_controller.rb Introduce a guard against DNS rebinding attacks 2018-12-15 20:18:51 +02:00
initializable.rb
mailers_controller.rb Introduce a guard against DNS rebinding attacks 2018-12-15 20:18:51 +02:00
paths.rb Remove asset paths from eager_load_paths and autoload_paths 2018-11-09 14:48:15 -05:00
rack.rb
railtie.rb Fix call sites 2018-10-02 15:31:29 -04:00
ruby_version_check.rb
secrets.rb
source_annotation_extractor.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
tasks.rb
test_help.rb
version.rb
welcome_controller.rb