Closed Bug 1874455 Opened 1 years ago Closed 1 year ago

Intermittent /webdriver/tests/bidi/browsing_context/load/load.py | single tracking bug

Categories

(Remote Protocol :: WebDriver BiDi, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure, intermittent-testcase)

Filed by: nbeleuzu [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=443101628&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/XIaXukzOS3Ks0333RuqgBw/runs/0/artifacts/public/logs/live_backing.log


[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO - TEST-PASS | /webdriver/tests/bidi/browsing_context/load/load.py | test_document_write 
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/browsing_context/load/load.py | test_page_with_base_tag - asyncio.exceptions.CancelledError
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO - fut = <Future cancelled>, timeout = 2.0
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO - 
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -     async def wait_for(fut, timeout, *, loop=None):
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         """Wait for the single Future or coroutine to complete, with timeout.
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         Coroutine will be wrapped in Task.
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         Returns result of the Future or coroutine.  When a timeout occurs,
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         it cancels the task and raises TimeoutError.  To avoid the task
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         cancellation, wrap it in shield().
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         If the wait is cancelled, the task is also cancelled.
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         This function is a coroutine.
[task 2024-01-12T13:05:56.079Z] 13:05:56     INFO -         """
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -         if loop is None:
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             loop = events.get_running_loop()
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -         else:
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             warnings.warn("The loop argument is deprecated since Python 3.8, "
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -                           "and scheduled for removal in Python 3.10.",
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -                           DeprecationWarning, stacklevel=2)
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -         if timeout is None:
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             return await fut
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -         if timeout <= 0:
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             fut = ensure_future(fut, loop=loop)
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             if fut.done():
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -                 return fut.result()
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             await _cancel_and_wait(fut, loop=loop)
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             try:
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -                 return fut.result()
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -             except exceptions.CancelledError as exc:
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -                 raise exceptions.TimeoutError() from exc
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.080Z] 13:05:56     INFO -         waiter = loop.create_future()
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -         timeout_handle = loop.call_later(timeout, _release_waiter, waiter)
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -         cb = functools.partial(_release_waiter, waiter)
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -         fut = ensure_future(fut, loop=loop)
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -         fut.add_done_callback(cb)
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -         try:
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -             # wait until the future completes or the timeout
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -             try:
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                 await waiter
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -             except exceptions.CancelledError:
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                 if fut.done():
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                     return fut.result()
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                 else:
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                     fut.remove_done_callback(cb)
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                     # We must ensure that the task is not running
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                     # after wait_for() returns.
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                     # See https://bugs.python.org/issue32751
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                     await _cancel_and_wait(fut, loop=loop)
[task 2024-01-12T13:05:56.081Z] 13:05:56     INFO -                     raise
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -     
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -             if fut.done():
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 return fut.result()
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -             else:
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 fut.remove_done_callback(cb)
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 # We must ensure that the task is not running
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 # after wait_for() returns.
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 # See https://bugs.python.org/issue32751
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 await _cancel_and_wait(fut, loop=loop)
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 # In case task cancellation failed with some
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 # exception, we should re-raise it
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 # See https://bugs.python.org/issue40607
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO -                 try:
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - >                   return fut.result()
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - E                   asyncio.exceptions.CancelledError
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - 
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - cb         = functools.partial(<function _release_waiter at 0x0000019190EEDD30>, <Future finished result=None>)
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - fut        = <Future cancelled>
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - loop       = <ProactorEventLoop running=False closed=False debug=False>
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - timeout    = 2.0
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - timeout_handle = <TimerHandle cancelled when=625.031>
[task 2024-01-12T13:05:56.082Z] 13:05:56     INFO - waiter     = <Future finished result=None>

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

(In reply to Treeherder Bug Filer from comment #4)

New failure instance: https://treeherder.mozilla.org/logviewer?job_id=452992102&repo=autoland

This is bug 1774392.

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.