Closed Bug 1811174 Opened 3 years ago Closed 3 years ago

Intermittent [Tier 2] /webdriver/tests/accept_alert/accept.py | test_null_response_value - setup error: ConnectionRefusedError: [Errno 111] Connection refused (Address in use)

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure)

Filed by: smolnar [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=402832808&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KOla9ndBTC-3uYdrSNV9CQ/runs/0/artifacts/public/logs/live_backing.log


INFO - STDOUT: tests/web-platform/tests/tools/third_party/pytest-asyncio/pytest_asyncio/plugin.py
[task 2023-01-19T05:29:41.139Z] 05:29:41     INFO - STDOUT: :127: 
[task 2023-01-19T05:29:41.140Z] 05:29:41     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2023-01-19T05:29:41.141Z] 05:29:41     INFO - STDOUT: /usr/lib/python3.6/asyncio/base_events.py
[task 2023-01-19T05:29:41.141Z] 05:29:41     INFO - STDOUT: :484: in run_until_complete
[task 2023-01-19T05:29:41.142Z] 05:29:41     INFO - STDOUT:     return future.result()
[task 2023-01-19T05:29:41.143Z] 05:29:41     INFO - STDOUT:         future     = <Task finished coro=<pytest_fixture_setup.<locals>.wrapper.<locals>.setup() done, defined at /builds/worker/workspace/build/tests/web-platform/tests/tools/third_party/pytest-asyncio/pytest_asyncio/plugin.py:109> exception=ConnectionRefusedError(111, 'Connection refused')>
[task 2023-01-19T05:29:41.144Z] 05:29:41     INFO - STDOUT:         new_task   = True
[task 2023-01-19T05:29:41.145Z] 05:29:41     INFO - STDOUT:         self       = <_UnixSelectorEventLoop running=False closed=False debug=False>
[task 2023-01-19T05:29:41.147Z] 05:29:41     INFO - STDOUT: tests/web-platform/tests/tools/third_party/pytest-asyncio/pytest_asyncio/plugin.py
[task 2023-01-19T05:29:41.148Z] 05:29:41     INFO - STDOUT: :110: in setup
[task 2023-01-19T05:29:41.149Z] 05:29:41     INFO - STDOUT:     res = await gen_obj.__anext__()
[task 2023-01-19T05:29:41.149Z] 05:29:41     INFO - STDOUT:         gen_obj    = <async_generator object session at 0x7fc3aa059e80>
[task 2023-01-19T05:29:41.150Z] 05:29:41     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/support/fixtures.py
[task 2023-01-19T05:29:41.151Z] 05:29:41     INFO - STDOUT: :145: in session
[task 2023-01-19T05:29:41.152Z] 05:29:41     INFO - STDOUT:     _current_session.start()
[task 2023-01-19T05:29:41.153Z] 05:29:41     INFO - STDOUT:         capabilities = {}
[task 2023-01-19T05:29:41.154Z] 05:29:41     INFO - STDOUT:         caps       = {'alwaysMatch': {'moz:firefoxOptions': {'args': ['--profile',
[task 2023-01-19T05:29:41.154Z] 05:29:41     INFO -                                                  '/tmp/tmpz652khdl.mozrunner'],
[task 2023-01-19T05:29:41.155Z] 05:29:41     INFO -                                         'binary': '/builds/worker/workspace/build/application/firefox/firefox'}}}
[task 2023-01-19T05:29:41.156Z] 05:29:41     INFO - STDOUT:         configuration = {'capabilities': {'moz:firefoxOptions': {'args': ['--profile',
[task 2023-01-19T05:29:41.157Z] 05:29:41     INFO -                                                   '/tmp/tmpz652khdl.mozrunner'],
[task 2023-01-19T05:29:41.158Z] 05:29:41     INFO -                                          'binary': '/builds/worker/workspace/build/application/firefox/firefox'}},
[task 2023-01-19T05:29:41.158Z] 05:29:41     INFO -  'host': '127.0.0.1',
[task 2023-01-19T05:29:41.159Z] 05:29:41     INFO -  'port': 40808,
[task 2023-01-19T05:29:41.160Z] 05:29:41     INFO -  'webdriver': {'args': ['-vv'], 'binary': '/builds/worker/fetches/geckodriver'}}
[task 2023-01-19T05:29:41.161Z] 05:29:41     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2023-01-19T05:29:41.166Z] 05:29:41     INFO - 
[task 2023-01-19T05:29:41.166Z] 05:29:41     INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/accept_alert/accept.py | test_null_response_value - setup error: ConnectionRefusedError: [Errno 111] Connection refused
[task 2023-01-19T05:29:41.166Z] 05:29:41     INFO - args = ()
INFO - kwargs = {'capabilities': {}, 'configuration': {'capabilities': {'moz:firefoxOptions': {'args': ['--profile', '/tmp/tmpz652khdl...}, 'host': '127.0.0.1', 'port': 40808, 'webdriver': {'args': ['-vv'], 'binary': '/builds/worker/fetches/geckodriver'}}}
[task 2023-01-19T05:29:41.167Z] 05:29:41     INFO - request = <SubRequest 'session' for <Function test_null_response_value>>
[task 2023-01-19T05:29:41.168Z] 05:29:41     INFO - setup = <function pytest_fixture_setup.<locals>.wrapper.<locals>.setup at 0x7fc3aa0127b8>
[task 2023-01-19T05:29:41.169Z] 05:29:41     INFO - finalizer = <function pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer at 0x7fc3aa012620>
[task 2023-01-19T05:29:41.169Z] 05:29:41     INFO - 
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -     def wrapper(*args, **kwargs):
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -         loop = fixture_stripper.get_and_strip_from(FixtureStripper.EVENT_LOOP, kwargs)
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -         request = fixture_stripper.get_and_strip_from(FixtureStripper.REQUEST, kwargs)
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -     
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -         gen_obj = generator(*args, **kwargs)
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -     
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -         async def setup():
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -             res = await gen_obj.__anext__()
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -             return res
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -     
[task 2023-01-19T05:29:41.170Z] 05:29:41     INFO -         def finalizer():
[task 2023-01-19T05:29:41.171Z] 05:29:41     INFO -             """Yield again, to finalize."""
[task 2023-01-19T05:29:41.171Z] 05:29:41     INFO -             async def async_finalizer():
[task 2023-01-19T05:29:41.171Z] 05:29:41     INFO -                 try:
[task 2023-01-19T05:29:41.171Z] 05:29:41     INFO -                     await gen_obj.__anext__()
[task 2023-01-19T05:29:41.171Z] 05:29:41     INFO -                 except StopAsyncIteration:
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -                     pass
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -                 else:
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -                     msg = "Async generator fixture didn't stop."
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -                     msg += "Yield only once."
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -                     raise ValueError(msg)
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -             loop.run_until_complete(async_finalizer())
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -     
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO -         request.addfinalizer(finalizer)
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO - >       return loop.run_until_complete(setup())
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO - 
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO - args       = ()
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO - finalizer  = <function pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer at 0x7fc3aa012620>
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO - fixture_stripper = <pytest_asyncio.plugin.FixtureStripper object at 0x7fc3aa0249b0>
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO - gen_obj    = <async_generator object session at 0x7fc3aa059e80>
[task 2023-01-19T05:29:41.172Z] 05:29:41     INFO - generator  = <function session at 0x7fc3aa163840>
<...>

The first start of geckodriver fails because the port is still taken. Might be related to some left-over state from a former test job.

Summary: Intermittent [Tier 2] /webdriver/tests/accept_alert/accept.py | test_null_response_value - setup error: ConnectionRefusedError: [Errno 111] Connection refused → Intermittent [Tier 2] /webdriver/tests/accept_alert/accept.py | test_null_response_value - setup error: ConnectionRefusedError: [Errno 111] Connection refused (Address in use)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.