acceptance tests intermittently fail when starting up the browser

Description

the error message given is: [Errno 17] File exists: '/tmp/<tmpdir>/extensions/fxdriver@googlecode.com'

It happened, for example in this PR build.

Error Message

1 2 3 4 5 [Errno 17] File exists: '/tmp/tmp2g4rsy/extensions/fxdriver@googlecode.com' -------------------- >> begin captured logging << -------------------- bok_choy.browser: INFO: Using local browser: firefox [Default is firefox] bok_choy.browser: DEBUG: Failed to instantiate browser: Connection refused --------------------- >> end captured logging << ---------------------

Stacktrace

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 File "/usr/lib/python2.7/unittest/case.py", line 318, in run self.setUp() File "/home/jenkins/workspace/edx-platform-test-subset/common/test/acceptance/tests/discussion/test_cohort_management.py", line 33, in setUp super(CohortConfigurationTest, self).setUp() File "/home/jenkins/workspace/edx-platform-test-subset/common/test/acceptance/tests/helpers.py", line 255, in setUp super(EventsTestMixin, self).setUp() File "/home/jenkins/workspace/edx-platform-test-subset/common/test/acceptance/tests/helpers.py", line 291, in setUp super(UniqueCourseTest, self).setUp() File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/web_app_test.py", line 55, in setUp self.browser = browser(tags, self.proxy) File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/browser.py", line 197, in browser browser_check_func, "Browser is instantiated successfully.", timeout=30).fulfill() File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/promise.py", line 91, in fulfill is_fulfilled, result = self._check_fulfilled() File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/promise.py", line 117, in _check_fulfilled is_fulfilled, result = self._check_func() File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/browser.py", line 191, in browser_check_func return True, browser_class(*browser_args, **browser_kwargs) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 59, in __init__ self.binary, timeout), File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/firefox/extension_connection.py", line 45, in __init__ self.profile.add_extension() File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_profile.py", line 92, in add_extension self._install_extension(extension) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_profile.py", line 281, in _install_extension shutil.copytree(addon, addon_path, symlinks=True) File "/usr/lib/python2.7/shutil.py", line 175, in copytree os.makedirs(dst) File "/home/jenkins/edx-venv/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) "[Errno 17] File exists: '/tmp/tmp2g4rsy/extensions/fxdriver@googlecode.com'\n-------------------- >> begin captured logging << --------------------\nbok_choy.browser: INFO: Using local browser: firefox [Default is firefox]\nbok_choy.browser: DEBUG: Failed to instantiate browser: Connection refused\n--------------------- >> end captured logging << ---------------------"

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

JesseZ

Reporter

JesseZ

Labels

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Story Points

2

Sprint

None

Priority

Unset
Configure