Closed Bug 1904867 Opened 3 months ago Closed 3 months ago

Perma [tier 2] /webdriver/tests/bidi/network/continue_request/cookies.py | test_override_modified_header_cookies - AssertionError

Categories

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

defect

Tracking

(firefox-esr115 unaffected, firefox-esr128 unaffected, firefox127 unaffected, firefox128 unaffected, firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox127 --- unaffected
firefox128 --- unaffected
firefox129 --- fixed

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

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


[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO - TEST-PASS | /webdriver/tests/bidi/network/continue_request/cookies.py | test_override_header_cookie 
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/network/continue_request/cookies.py | test_override_modified_header_cookies - AssertionError
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO - setup_blocked_request = <function setup_blocked_request.<locals>.setup_blocked_request at 0x107e991c0>
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO - subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x107e9a020>
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO - wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x107e98400>
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x107e43ed0>
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO - 
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO -     async def test_override_modified_header_cookies(
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO -         setup_blocked_request,
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO -         subscribe_events,
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO -         wait_for_event,
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO -         bidi_session,
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO -     ):
[task 2024-06-26T13:54:37.693Z] 13:54:37     INFO -         request = await setup_blocked_request("beforeRequestSent")
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         await subscribe_events(events=[RESPONSE_COMPLETED_EVENT])
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -     
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         header = Header(name="Cookie", value=NetworkStringValue("a=1"))
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         cookie = CookieHeader(name="b", value=NetworkStringValue("2"))
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         on_response_completed = wait_for_event(RESPONSE_COMPLETED_EVENT)
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         await bidi_session.network.continue_request(
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -             request=request, headers=[header], cookies=[cookie]
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         )
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         response_event = await on_response_completed
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -     
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -         event_cookies = response_event["request"]["cookies"]
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - >       recursive_compare([cookie], event_cookies)
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - 
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x107e43ed0>
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - cookie     = {'name': 'b', 'value': {'type': 'string', 'value': '2'}}
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - event_cookies = [{'name': 'a', 'value': {'type': 'string', 'value': '1, b=2'}}]
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - header     = {'name': 'Cookie', 'value': {'type': 'string', 'value': 'a=1'}}
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - on_response_completed = <Future finished result={'context': '42f8fbc0-910...-8a9edcf9eeba', 'isBlocked': False, 'navigation': None, 'redirectCount': 0, ...}>
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - request    = '18'
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO - response_event = {'context': '42f8fbc0-910a-4087-b1d0-8a9edcf9eeba',
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -  'isBlocked': False,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -  'navigation': None,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -  'redirectCount': 0,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -  'request': {'bodySize': 0,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -              'cookies': [{'name': 'a',
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                           'value': {'type': 'string', 'value': '1, b=2'}}],
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -              'headers': [{'name': 'Cookie',
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                           'value': {'type': 'string', 'value': 'a=1, b=2'}},
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                          {'name': 'Priority',
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                           'value': {'type': 'string', 'value': 'u=4'}}],
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -              'headersSize': 97,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -              'method': 'GET',
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -              'request': '18',
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -              'timings': {'connectEnd': 1719410077336195,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                          'connectStart': 1719410077334443,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                          'dnsEnd': 1719410077331619,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                          'dnsStart': 1719410077330569,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                          'fetchStart': 1719410077330569,
[task 2024-06-26T13:54:37.694Z] 13:54:37     INFO -                          'redirectEnd': 0,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'redirectStart': 0,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'requestStart': 1719410077336261,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'requestTime': 1719410077330276,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'responseEnd': 1719410077336967,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'responseStart': 1719410077336292,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'timeOrigin': 0,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'tlsEnd': 1719410077336195,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                          'tlsStart': 1719410077334615},
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -              'url': 'https://web-platform.test:8443/webdriver/tests/bidi/network/support/empty.txt'},
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -  'response': {'bodySize': 6,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'bytesReceived': 124,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'content': {'size': 6},
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'fromCache': False,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'headers': [{'name': 'Content-Type',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                            'value': {'type': 'string', 'value': 'text/plain'}},
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                           {'name': 'Server',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                            'value': {'type': 'string',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                                      'value': 'BaseHTTP/0.6 Python/3.11.0'}},
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                           {'name': 'Date',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                            'value': {'type': 'string',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                                      'value': 'Wed, 26 Jun 2024 13:54:37 '
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -                                               'GMT'}}],
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'headersSize': 118,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'mimeType': 'text/plain',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'protocol': 'http/1.1',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'status': 200,
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'statusText': 'OK',
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -               'url': 'https://web-platform.test:8443/webdriver/tests/bidi/network/support/empty.txt'},
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO -  'timestamp': 1719410077352}
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO - setup_blocked_request = <function setup_blocked_request.<locals>.setup_blocked_request at 0x107e991c0>
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO - subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x107e9a020>
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO - wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x107e98400>
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO - 
[task 2024-06-26T13:54:37.695Z] 13:54:37     INFO - tests/web-platform/tests/webdriver/tests/bidi/network/continue_request/cookies.py:110: 
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO - tests/web-platform/tests/webdriver/tests/bidi/__init__.py:16: in recursive_compare
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -     recursive_compare(expected[index], actual[index])
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         _          = {'name': 'b', 'value': {'type': 'string', 'value': '2'}}
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         actual     = [{'name': 'a', 'value': {'type': 'string', 'value': '1, b=2'}}]
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         expected   = [{'name': 'b', 'value': {'type': 'string', 'value': '2'}}]
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         index      = 0
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO - tests/web-platform/tests/webdriver/tests/bidi/__init__.py:25: in recursive_compare
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -     recursive_compare(expected[key], actual[key])
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         actual     = {'name': 'a', 'value': {'type': 'string', 'value': '1, b=2'}}
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         expected   = {'name': 'b', 'value': {'type': 'string', 'value': '2'}}
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         key        = 'name'
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO - 
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO - expected = 'b', actual = 'a'
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO - 
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -     def recursive_compare(expected: Any, actual: Any) -> None:
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         if callable(expected):
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -             expected(actual)
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -             return
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -     
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         if isinstance(actual, List) and isinstance(expected, List):
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -             assert len(expected) == len(actual)
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -             for index, _ in enumerate(expected):
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -                 recursive_compare(expected[index], actual[index])
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -             return
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -     
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -         if isinstance(actual, Dict) and isinstance(expected, Dict):
[task 2024-06-26T13:54:37.696Z] 13:54:37     INFO -             # Actual Mapping can have more keys as part of the forwards-compat design.
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO -             assert (
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO -                 expected.keys() <= actual.keys()
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO -             ), f"Key set should be present: {set(expected.keys()) - set(actual.keys())}"
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO -             for key in expected.keys():
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO -                 recursive_compare(expected[key], actual[key])
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO -             return
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO -     
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - >       assert expected == actual
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - E       AssertionError
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - 
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - actual     = 'a'
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - expected   = 'b'
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - 
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - tests/web-platform/tests/webdriver/tests/bidi/__init__.py:28: AssertionError
[task 2024-06-26T13:54:37.697Z] 13:54:37     INFO - TEST-OK | /webdriver/tests/bidi/network/continue_request/cookies.py | took 3168ms
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Component: General → WebDriver BiDi
Product: Firefox Build System → Remote Protocol
Target Milestone: --- → 129 Branch

Set release status flags based on info from the regressing bug 1904379

You need to log in before you can comment on or make changes to this bug.