Repository navigation
Run RSpec in parallel with rspec-core-parallel - #473
Merged
Merged
Conversation
It replaces parallel_tests: the suite is loaded once and forked into workers, with a test database per worker, a single report and one exit code, and plain `rspec` runs in parallel.
added 2 commits
November 6, 2026 15:39
The main test database is created as before, the workers' ones by the gem. The run times file has to be cached between builds, otherwise the workers can't start with the longest groups.
renuo configure-semaphore now sets it up.
coorasse
commented
Nov 6, 2026
Comment on lines
+169
to
+170
| * Create the test database with `bin/rails db:create db:schema:load`, as the Semaphore template does, and not with | ||
| `parallel:create`. The databases of the workers (`test_0`, `test_1`, ...) are created by the gem, also when |
Member
Author
There was a problem hiding this comment.
why "and not with parallel:create"? remove that.
Comment on lines
+173
to
+177
| between builds, so that the workers start with the longest groups: the tests block restores it with | ||
| `source .semaphore/bin/cache_restore run_times` and stores it after `bin/check` with | ||
| `source .semaphore/bin/cache_store run_times` (only on `main` and `develop`). | ||
| In existing projects, copy the `run_times` cache group from the | ||
| [templates](https://github.com/renuo/renuo-cli/tree/main/lib/renuo/cli/templates/semaphore). |
Member
Author
There was a problem hiding this comment.
remove everything from ", so..." onwards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces
parallel_testswith rspec-core-parallel in the RSpec setup:rspec-core-parallelgoes in the:testgroup,parallel_testsis removedrequire "rspec/core/parallel"at the top ofspec/spec_helper.rbbin/checkrunsbundle exec rspecinstead ofbundle exec parallel_rspecdb:create db:schema:load, andtmp/rspec_parallel_run_times.txtis cached between Semaphore builds by therenuo configure-semaphoretemplate (renuo/renuo-cli#356)The suite is loaded once and forked into one worker per physical core. Each worker gets its own test database, created automatically, and the run produces a single report and exit code. SimpleCov results are merged without extra configuration. Already in use in migrolino and cobra.