[openstreetmap/openstreetmap-website] Monkey patch Selenium to allocate unique bidi ports (PR #5796)

Tom Hughes notifications at github.com
Wed Mar 12 18:49:36 UTC 2025


Firefox 136 has started binding an extra port at startup when running via selenium but unfortunately it always uses port 9222 which causes problems running tests in parallel as discussed in https://github.com/mozilla/geckodriver/issues/2218.

This monkey patches things to try and allocate unique ports.

I believe this is the cause of the sporadic test failures we've been seeing the last few days - on my machine it happens basically every time since 136 came out but I probably have much high parallelism than Actions.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5796

-- Commit Summary --

  * Monkey patch Selenium to allocate unique bidi ports

-- File Changes --

    A config/initializers/selenium.rb (13)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5796.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5796.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5796
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5796 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250312/b6bb6a3e/attachment.htm>


More information about the rails-dev mailing list