← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2065248] [NEW] Integration CI fails to run with firefox snap on the ubuntu platform

 

Public bug reported:

Sometimes we need to set up a local integration CI test env for
debugging purposes. However, I hit this error
'selenium.common.exceptions.InvalidArgumentException: Message: binary is
not a Firefox executable' while running 'tox -e integration' [1] locally
on the ubuntu platform.

Upon investigation, I found that the root cause was because I had
installed firefox via snap rather debian package. Specifying
firefox_bin="/snap/firefox/current/usr/lib/firefox/firefox" for
selenium's WebDriver can fix the problem [2].

I also checked horzion code, although firefox_binary.py#WebDriver[3]
introduced the firefox_binary parameter, but the code calling it did not
pass firefox_binary to it, nor did it pass firefox_binary to selenium's
WebDriver.

[1] https://docs.openstack.org/horizon/latest/contributor/testing.html
[2] https://github.com/SeleniumHQ/selenium/issues/13252
[3] https://github.com/openstack/horizon/blob/master/horizon/test/firefox_binary.py#L71

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2065248

Title:
  Integration CI fails to run with firefox snap on the ubuntu platform

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Sometimes we need to set up a local integration CI test env for
  debugging purposes. However, I hit this error
  'selenium.common.exceptions.InvalidArgumentException: Message: binary
  is not a Firefox executable' while running 'tox -e integration' [1]
  locally on the ubuntu platform.

  Upon investigation, I found that the root cause was because I had
  installed firefox via snap rather debian package. Specifying
  firefox_bin="/snap/firefox/current/usr/lib/firefox/firefox" for
  selenium's WebDriver can fix the problem [2].

  I also checked horzion code, although firefox_binary.py#WebDriver[3]
  introduced the firefox_binary parameter, but the code calling it did
  not pass firefox_binary to it, nor did it pass firefox_binary to
  selenium's WebDriver.

  [1] https://docs.openstack.org/horizon/latest/contributor/testing.html
  [2] https://github.com/SeleniumHQ/selenium/issues/13252
  [3] https://github.com/openstack/horizon/blob/master/horizon/test/firefox_binary.py#L71

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2065248/+subscriptions