Skip to content

Commit 2230054

Browse files
committed
Spec: set paralle multiplier via Env var
... which we can controll in the pipeline definition, rather than hard-coding it into the command we generate when we run integration specs.
1 parent 9620b70 commit 2230054

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ci/pipeline.yml

+1
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ jobs:
323323
COVERAGE: false
324324
DB: postgresql
325325
RAKE_TASK: spec:integration
326+
PARALLEL_TEST_MULTIPLY_PROCESSES: "0.5"
326327

327328
- name: integration-postgres-hotswap
328329
public: true

src/tasks/spec.rake

+3-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ namespace :spec do
1212

1313
spec_runner_command =
1414
if paths =~ /:\d+/ # line number was specified; run with `rspec`
15-
"bundle exec rspec #{rspec_opts.join(' ')} #{paths}"
16-
17-
else
18-
# no line number specified; run with `parallel_rspec`
19-
"SPEC_OPTS='#{rspec_opts.join(' ')}' bundle exec parallel_rspec --multiply-processes 0.5"
15+
"bundle exec rspec #{rspec_opts.join(' ')}"
16+
else # no line number specified; run with `parallel_rspec`
17+
"SPEC_OPTS='#{rspec_opts.join(' ')}' bundle exec parallel_rspec"
2018
end
2119

2220
proxy_env = 'https_proxy= http_proxy='

0 commit comments

Comments
 (0)