[openstreetmap/openstreetmap-website] Option to disable parallel tests (PR #6926)
Pablo Brasero
notifications at github.com
Mon Mar 23 12:03:13 UTC 2026
For a while now I have had intermittent issues on macOS, where running the tests would cause a segmentation fault at random:
```
$ bin/rails test
Running 2488 tests in parallel using 8 processes
PABLOS_RUBY_DIR/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/pg-1.6.3-arm64-darwin/lib/pg/connection.rb:944: [BUG] Segmentation fault at 0x00
00000102eb4b14
ruby 4.0.1 (2026-01-13 revision e04267a14b) +YJIT +PRISM [arm64-darwin24]
-- Crash Report log information --------------------------------------------
See Crash Report log file in one of the following locations:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0060 p:---- s:0345 e:000344 l:y b:---- CFUNC :connect_start
c:0059 p:0136 s:0340 e:000339 l:y b:0001 METHOD PABLOS_RUBY_DIR/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/pg-1.6.3-arm64-darwin/lib/pg/con
nection.rb:944
(...about 70k lines...)
600000000000-600020000000 rw-
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
302000000-3028d4000 r-- PABLOS_RUBY_DIR/ruby/4.0.1/lib/libruby.4.0.dylib
fc0000000-1000000000 ---
1000000000-7000000000 ---
600000000000-600020000000 rw-
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
```
On investigation, I think this only happens when tests are running in parallel. Therefore I'm adding an option to disable parallel tests, which then I can set myself in my macOS environment:
```
# config/settings/test.local.yml
enable_parallel_tests: false
```
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6926
-- Commit Summary --
* Option to disable parallel tests
-- File Changes --
M config/settings/test.yml (3)
M test/test_helper.rb (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6926.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6926.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6926
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6926 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260323/5eb03785/attachment.htm>
More information about the rails-dev
mailing list