Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1849972] [wdspec] Only use local network in WebDriver BiDi's reload.py. #41661

Merged
merged 2 commits into from
Aug 31, 2023

[wptrunner] Do not remove "MOZ_DISABLE_NONLOCAL_CONNECTIONS" for wdsp…

a4990d0
Select commit
Loading
Failed to load commit list.
Merged

[Gecko Bug 1849972] [wdspec] Only use local network in WebDriver BiDi's reload.py. #41661

[wptrunner] Do not remove "MOZ_DISABLE_NONLOCAL_CONNECTIONS" for wdsp…
a4990d0
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-firefox-nightly-results succeeded Aug 30, 2023 in 5m 8s

Community-TC (pull_request)

Collect results for all tests affected by a pull request in firefox.

Details

View task in Taskcluster
View logs in Taskcluster

WPT Command: python3 ./wpt run --channel=nightly --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected base_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --no-headless --verify-log-full --binary=/home/test/build/firefox/firefox firefox


                 'xn--n8j6ds53lwwkrqhv28a.web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.www2.web-platform.test',
                 'web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.www2.not-web-platform.test',
                 'www1.not-web-platform.test',
                 'xn--lve-6lad.xn--lve-6lad.web-platform.test',
                 'www.xn--n8j6ds53lwwkrqhv28a.not-web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.xn--lve-6lad.web-platform.test',
                 'not-web-platform.test',
                 'www1.www2.not-web-platform.test',
                 'xn--lve-6lad.www.web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.www1.not-web-platform.test',
                 'xn--lve-6lad.www.not-web-platform.test',
                 'www1.www2.web-platform.test',
                 'xn--lve-6lad.www1.not-web-platform.test',
                 'www1.www1.web-platform.test',
                 'www.not-web-platform.test',
                 'xn--lve-6lad.www2.not-web-platform.test',
                 'xn--lve-6lad.www1.web-platform.test',
                 'www2.www1.not-web-platform.test',
                 'www1.xn--n8j6ds53lwwkrqhv28a.web-platform.test',
                 'www1.www1.not-web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.xn--n8j6ds53lwwkrqhv28a.web-platform.test',
                 'www2.not-web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.www1.web-platform.test',
                 'www2.xn--n8j6ds53lwwkrqhv28a.web-platform.test',
                 'www.web-platform.test',
                 'www.www1.not-web-platform.test',
                 'xn--lve-6lad.xn--lve-6lad.not-web-platform.test',
                 'www2.www.web-platform.test',
                 'www.xn--n8j6ds53lwwkrqhv28a.web-platform.test',
                 'www1.web-platform.test',
                 'www2.xn--lve-6lad.not-web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.xn--n8j6ds53lwwkrqhv28a.not-web-platform.test',
                 'xn--lve-6lad.web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.www.not-web-platform.test',
                 'www.www2.web-platform.test',
                 'www2.xn--n8j6ds53lwwkrqhv28a.not-web-platform.test',
                 'www2.web-platform.test',
                 'www.xn--lve-6lad.web-platform.test',
                 'www2.www2.web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.xn--lve-6lad.not-web-platform.test',
                 'www2.www2.not-web-platform.test',
                 'www.www.web-platform.test',
                 'www.www.not-web-platform.test',
                 'www.www2.not-web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.www.web-platform.test',
                 'www.www1.web-platform.test',
                 'xn--n8j6ds53lwwkrqhv28a.not-web-platform.test',
                 'www1.xn--lve-6lad.web-platform.test'],
 'inject_script': None,
 'logging': {'level': 'INFO', 'suppress_handler_traceback': False},
 'not_domains': {'': {'nonexistent': 'nonexistent.web-platform.test',
                      'nonexistent.nonexistent': 'nonexistent.nonexistent.web-platform.test'},
                 'alt': {'nonexistent': 'nonexistent.not-web-platform.test',
                         'nonexistent.nonexistent': 'nonexistent.nonexistent.not-web-platform.test'}},
 'not_domains_set': ['nonexistent.nonexistent.web-platform.test',
                     'nonexistent.nonexistent.not-web-platform.test',
                     'nonexistent.web-platform.test',
                     'nonexistent.not-web-platform.test'],
 'not_subdomains': ['nonexistent.nonexistent', 'nonexistent'],
 'paths': {'doc_root': '/home/test/web-platform-tests',
           'ws_doc_root': '/home/test/web-platform-tests/websockets/handlers'},
 'ports': {'h2': [9000],
           'http': [8000, 8001],
           'http-private': [8002],
           'http-public': [8003],
           'https': [8443, 8444],
           'https-private': [8445],
           'https-public': [8446],
           'webtransport-h3': [11000],
           'ws': [8888],
           'wss': [8889]},
 'server_host': '127.0.0.1',
 'ssl': {'encrypt_after_connect': False,
         'openssl': {'openssl_binary': 'openssl'},
         'pregenerated': {'ca_cert_path': '/home/test/web-platform-tests/tools/certs/cacert.pem',
                          'host_cert_path': '/home/test/web-platform-tests/tools/certs/web-platform.test.pem',
                          'host_key_path': '/home/test/web-platform-tests/tools/certs/web-platform.test.key'},
         'type': 'pregenerated'},
 'ssl_config': {'ca_cert_path': '/home/test/web-platform-tests/tools/certs/cacert.pem',
                'cert_path': '/home/test/web-platform-tests/tools/certs/web-platform.test.pem',
                'encrypt_after_connect': False,
                'key_path': '/home/test/web-platform-tests/tools/certs/web-platform.test.key'},
 'subdomains': ['élève.élève',
                'www2.élève',
                'www1.www2',
                '天気の良い日.www1',
                'www.www',
                'élève.天気の良い日',
                'www2.www1',
                'élève.www',
                'www2',
                'www1.élève',
                'www.élève',
                'www1.www',
                'élève.www1',
                'www1.www1',
                '天気の良い日',
                '天気の良い日.天気の良い日',
                'élève.www2',
                'www.www2',
                'www',
                'élève',
                'www2.www',
                'www.www1',
                'www.天気の良い日',
                'www1',
                '天気の良い日.www2',
                'www2.www2',
                '天気の良い日.www',
                '天気の良い日.élève',
                'www1.天気の良い日',
                'www2.天気の良い日'],
 'ws_doc_root': '/home/test/web-platform-tests/websockets/handlers'}
target_url = 'file:///home/test/web-platform-tests/webdriver/tests/bidi/browsing_context/support/empty.html'

webdriver/tests/bidi/browsing_context/reload/reload.py:42: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7fd53c9332b0>
kwargs = {'context': '80367463-7d11-461c-a837-6144c6d1fb05', 'wait': 'complete'}
raw_result = False
params = {'context': '80367463-7d11-461c-a837-6144c6d1fb05', 'wait': 'complete'}
mod_name = 'browsingContext', cmd_name = 'browsingContext.reload'
future = <[AttributeError("'UnknownCommandException' object has no attribute 'error'") raised in repr()] Future object at 0x7fd53c97edc0>

    @functools.wraps(params_fn)
    async def inner(self: Any, **kwargs: Any) -> Any:
        raw_result = kwargs.pop("raw_result", False)
        params = params_fn(self, **kwargs)
    
        # Convert the classname and the method name to a bidi command name
        mod_name = owner.__name__[0].lower() + owner.__name__[1:]
        if hasattr(owner, "prefix"):
            mod_name = f"{owner.prefix}:{mod_name}"
        cmd_name = f"{mod_name}.{to_camelcase(name)}"
    
        future = await self.session.send_command(cmd_name, params)
>       result = await future
E       webdriver.bidi.error.UnknownCommandException: unknown command (browsingContext.reload)
E       
E       Remote-end stacktrace:
E       
E       RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
E       WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
E       UnknownCommandError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:752:5
E       execute@chrome://remote/content/shared/webdriver/Session.sys.mjs:271:13
E       onPacket@chrome://remote/content/webdriver-bidi/WebDriverBiDiConnection.sys.mjs:211:37
E       onMessage@chrome://remote/content/server/WebSocketTransport.sys.mjs:127:18
E       handleEvent@chrome://remote/content/server/WebSocketTransport.sys.mjs:109:14

cmd_name   = 'browsingContext.reload'
future     = <[AttributeError("'UnknownCommandException' object has no attribute 'error'") raised in repr()] Future object at 0x7fd53c97edc0>
kwargs     = {'context': '80367463-7d11-461c-a837-6144c6d1fb05', 'wait': 'complete'}
mod_name   = 'browsingContext'
name       = 'reload'
owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
params     = {'context': '80367463-7d11-461c-a837-6144c6d1fb05', 'wait': 'complete'}
params_fn  = <function BrowsingContext.reload at 0x7fd53cb4fd30>
raw_result = False
result_fn  = None
self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7fd53c9332b0>

tools/webdriver/webdriver/bidi/modules/_module.py:73: UnknownCommandException
  FAIL test_image - webdriver.bidi.error.UnknownCommandException: unknown command (browsingContext.reload)
bidi_session = <webdriver.bidi.client.BidiSession object at 0x7fd53c933460>
new_tab = {'context': 'e132e5e1-5995-4065-8ec5-8cbdb5b6d8a2'}
url = <function url.<locals>.url at 0x7fd53c97d790>

    async def test_image(bidi_session, new_tab, url):
        initial_url = url(PNG_BLACK_DOT)
        await bidi_session.browsing_context.navigate(context=new_tab["context"],
                                                     url=initial_url)
>       await bidi_session.browsing_context.reload(context=new_tab["context"],
                                                   wait="complete")

bidi_session = <webdriver.bidi.client.BidiSession object at 0x7fd53c933460>
initial_url = 'https://web-platform.test:8443/webdriver/tests/bidi/browsing_context/support/black_dot.png'
new_tab    = {'context': 'e132e5e1-5995-4065-8ec5-8cbdb5b6d8a2'}
url        = <function url.<locals>.url at 0x7fd53c97d790>

webdriver/tests/bidi/browsing_context/reload/reload.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7fd53c9332b0>
kwargs = {'context': 'e132e5e1-5995-4065-8ec5-8cbdb5b6d8a2', 'wait': 'complete'}
raw_result = False
params = {'context': 'e132e5e1-5995-4065-8ec5-8cbdb5b6d8a2', 'wait': 'complete'}
mod_name = 'browsingContext', cmd_name = 'browsingContext.reload'
future = <[AttributeError("'UnknownCommandException' object has no attribute 'error'") raised in repr()] Future object at 0x7fd53c9769c0>

    @functools.wraps(params_fn)
    async def inner(self: Any, **kwargs: Any) -> Any:
        raw_result = kwargs.pop("raw_result", False)
        params = params_fn(self, **kwargs)
    
        # Convert the classname and the method name to a bidi command name
        mod_name = owner.__name__[0].lower() + owner.__name__[1:]
        if hasattr(owner, "prefix"):
            mod_name = f"{owner.prefix}:{mod_name}"
        cmd_name = f"{mod_name}.{to_camelcase(name)}"
    
        future = await self.session.send_command(cmd_name, params)
>       result = await future
E       webdriver.bidi.error.UnknownCommandException: unknown command (browsingContext.reload)
E       
E       Remote-end stacktrace:
E       
E       RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
E       WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
E       UnknownCommandError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:752:5
E       execute@chrome://remote/content/shared/webdriver/Session.sys.mjs:271:13
E       onPacket@chrome://remote/content/webdriver-bidi/WebDriverBiDiConnection.sys.mjs:211:37
E       onMessage@chrome://remote/content/server/WebSocketTransport.sys.mjs:127:18
E       handleEvent@chrome://remote/content/server/WebSocketTransport.sys.mjs:109:14

cmd_name   = 'browsingContext.reload'
future     = <[AttributeError("'UnknownCommandException' object has no attribute 'error'") raised in repr()] Future object at 0x7fd53c9769c0>
kwargs     = {'context': 'e132e5e1-5995-4065-8ec5-8cbdb5b6d8a2', 'wait': 'complete'}
mod_name   = 'browsingContext'
name       = 'reload'
owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
params     = {'context': 'e132e5e1-5995-4065-8ec5-8cbdb5b6d8a2', 'wait': 'complete'}
params_fn  = <function BrowsingContext.reload at 0x7fd53cb4fd30>
raw_result = False
result_fn  = None
self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7fd53c9332b0>

tools/webdriver/webdriver/bidi/modules/_module.py:73: UnknownCommandException
 0:49.87 INFO Got 1 unexpected results, with 0 unexpected passes
 0:49.87 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 0:50.17 wptserve INFO Stopped http server on 127.0.0.1:8443
 0:50.22 wptserve INFO Stopped http server on 127.0.0.1:8002
 0:50.23 wptserve INFO Stopped http server on 127.0.0.1:8445
 0:50.23 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 0:50.23 wptserve INFO Stopped http server on 127.0.0.1:8446
 0:50.23 wptserve INFO Stopped http server on 127.0.0.1:8001
 0:50.23 wptserve INFO Stopped http server on 127.0.0.1:8003
 0:50.23 wptserve INFO Stopped http server on 127.0.0.1:8444
 0:50.23 wptserve INFO Stopped http server on 127.0.0.1:8000
 0:50.23 wptserve INFO Stopped http server on 127.0.0.1:9000
 0:50.23 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 0:50.37 INFO Removed font: Ahem.ttf
 0:50.40 INFO Closing logging queue
 0:50.40 INFO queue closed
 0:50.40 INFO Tolerating 1 unexpected results
[taskcluster 2023-08-30 15:28:38.450Z] === Task Finished ===
[taskcluster 2023-08-30 15:28:39.168Z] Successful task run with exit code: 0 completed in 149.338 seconds