[openstreetmap/openstreetmap-website] Add testing on Ubuntu 22.04 (PR #3606)

Tom Hughes notifications at github.com
Wed Jul 20 07:48:13 UTC 2022


This is more painful that it ought to be for a number of annoying reasons...

Firstly https://github.com/ruby/setup-ruby currently only supports ruby 3.1 on 22.04 even though 22.04 actually ships with 3.0 as the system ruby - apparently 3.1 is the first version that builds with openssl 3 out of the box so I guess Ubuntu must have patched 3.0 for the system build.

Secondly the forced move to a snap for Firefox means that geckdriver has (currently at least) gone away ([discussion here](https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1968266)) so we need to switch to Chrome and hope we won't have the same problem there once they force a move to snap for that!

Finally because chrome in headless mode doesn't support browser preferences ([discussion here](https://bugs.chromium.org/p/chromedriver/issues/detail?id=1925)) we have to set the preferred language in the environment before starting it instead.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Run tests on ubuntu 20.04 and 22.04 with ruby 3.1
  * Switch to using chrome for system tests

-- File Changes --

    M .github/workflows/tests.yml (9)
    M Dockerfile (2)
    M INSTALL.md (2)
    M script/vagrant/setup/provision.sh (2)
    M test/application_system_test_case.rb (6)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list