Skip to content

prevent state leak

f73c304
Select commit
Loading
Failed to load commit list.
Merged

[wdspec] emulation.setTouchOverride #56779

prevent state leak
f73c304
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-chrome-dev-stability succeeded Dec 17, 2025 in 8m 26s

Community-TC (pull_request)

Verify that all tests affected by a pull request are stable when executed in chrome.

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2025-12-17T10:46:51.942Z
Resolved: 2025-12-17T10:55:17.230Z
Task Execution Time: 8 minutes, 25 seconds, 288 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0

Artifacts

- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md

WPT Command: python3 ./wpt run --channel=dev --verify --verify-no-chaos-mode --verify-repeat-loop=0 --verify-repeat-restart=10 --github-checks-text-file=/home/test/artifacts/checkrun.md --affected base_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --verify-log-full --no-headless --enable-swiftshader --install-browser --install-webdriver chrome


[taskcluster 2025-12-17 10:46:52.090Z] Task ID: VSINgfFWTUawwiUCJuO-XQ
[taskcluster 2025-12-17 10:46:52.090Z] Worker ID: 2890226768083404796
[taskcluster 2025-12-17 10:46:52.090Z] Worker Group: us-central1-a
[taskcluster 2025-12-17 10:46:52.090Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2025-12-17 10:46:52.090Z] Worker Pool: proj-wpt/ci
[taskcluster 2025-12-17 10:46:52.090Z] Worker Version: 46.1.0
[taskcluster 2025-12-17 10:46:52.090Z] Public IP: 34.69.70.244
[taskcluster 2025-12-17 10:46:52.090Z] Hostname: proj-wpt-ci-ctwjtse0rbmzvhapm-q2tw

[taskcluster 2025-12-17 10:46:52.802Z] === Task Starting ===
+ '[' '' ']'
+ '[' -d /etc/profile.d ']'
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/01-locale-fix.sh ']'
+ . /etc/profile.d/01-locale-fix.sh
+++ /usr/bin/locale-check C.UTF-8
++ eval
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/apps-bin-path.sh ']'
+ . /etc/profile.d/apps-bin-path.sh

...(434742 lines hidden)...

        if hasattr(owner, "prefix"):
            mod_name = f"{owner.prefix}:{mod_name}"
        cmd_name = f"{mod_name}.{to_camelcase(name)}"
    
        # Verify specified vendor parameters
        for key in extension_params:
            if ":" not in key:
                raise ValueError(f"Extension parameter '{key}' misses prefix.")
    
        # Merge into params (vendor keys win if duplicates)
        params.update(extension_params)
    
        future = await self.session.send_command(cmd_name, params)
>       result = await future
E       webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)

cmd_name   = 'emulation.setTouchOverride'
extension_params = {}
future     = <Future finished exception=UnknownCommandException(unknown command, Unknown command 'emulation.setTouchOverride'., None)>
kwargs     = {'max_touch_points': 5, 'user_contexts': ['default']}
mod_name   = 'emulation'
name       = 'set_touch_override'
owner      = <class 'webdriver.bidi.modules.emulation.Emulation'>
params     = {'maxTouchPoints': 5, 'userContexts': ['default']}
params_fn  = <function Emulation.set_touch_override at 0x7f8700ba4430>
raw_result = False
result_fn  = None
self       = <webdriver.bidi.modules.emulation.Emulation object at 0x7f86f3eb9a50>

tools/webdriver/webdriver/bidi/modules/_module.py:86: UnknownCommandException
  FAIL test_overrides_global[Custom user context] - webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)
bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f86f3eb9930>
get_max_touch_points = <function get_max_touch_points.<locals>.get_max_touch_points at 0x7f86f3e4caf0>
affected_user_context = '1C3BD53FDC59A047D4A062E8EF771897'
initial_max_touch_points = 0

    async def test_overrides_global(bidi_session, get_max_touch_points,
                                    affected_user_context,
                                    initial_max_touch_points):
        affected_context = await bidi_session.browsing_context.create(
            type_hint="tab", user_context=affected_user_context)
    
>       await bidi_session.emulation.set_touch_override(
            max_touch_points=MAX_TOUCHES_PER_USER_CONTEXT,
            user_contexts=[affected_user_context])

affected_context = {'context': 'BE42FBD571BC86004A1037A652E516F1'}
affected_user_context = '1C3BD53FDC59A047D4A062E8EF771897'
bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f86f3eb9930>
get_max_touch_points = <function get_max_touch_points.<locals>.get_max_touch_points at 0x7f86f3e4caf0>
initial_max_touch_points = 0

webdriver/tests/bidi/emulation/set_touch_override/user_contexts.py:74: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <webdriver.bidi.modules.emulation.Emulation object at 0x7f86f3eb9a50>
kwargs = {'max_touch_points': 5, 'user_contexts': ['1C3BD53FDC59A047D4A062E8EF771897']}
raw_result = False, extension_params = {}
params = {'maxTouchPoints': 5, 'userContexts': ['1C3BD53FDC59A047D4A062E8EF771897']}
mod_name = 'emulation', cmd_name = 'emulation.setTouchOverride'
future = <Future finished exception=UnknownCommandException(unknown command, Unknown command 'emulation.setTouchOverride'., None)>

    @functools.wraps(params_fn)
    async def inner(self: Any, **kwargs: Any) -> Any:
        raw_result = kwargs.pop("raw_result", False)
        extension_params = kwargs.pop("_extension_params", {})
    
        params = remove_undefined(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)}"
    
        # Verify specified vendor parameters
        for key in extension_params:
            if ":" not in key:
                raise ValueError(f"Extension parameter '{key}' misses prefix.")
    
        # Merge into params (vendor keys win if duplicates)
        params.update(extension_params)
    
        future = await self.session.send_command(cmd_name, params)
>       result = await future
E       webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)

cmd_name   = 'emulation.setTouchOverride'
extension_params = {}
future     = <Future finished exception=UnknownCommandException(unknown command, Unknown command 'emulation.setTouchOverride'., None)>
kwargs     = {'max_touch_points': 5, 'user_contexts': ['1C3BD53FDC59A047D4A062E8EF771897']}
mod_name   = 'emulation'
name       = 'set_touch_override'
owner      = <class 'webdriver.bidi.modules.emulation.Emulation'>
params     = {'maxTouchPoints': 5, 'userContexts': ['1C3BD53FDC59A047D4A062E8EF771897']}
params_fn  = <function Emulation.set_touch_override at 0x7f8700ba4430>
raw_result = False
result_fn  = None
self       = <webdriver.bidi.modules.emulation.Emulation object at 0x7f86f3eb9a50>

tools/webdriver/webdriver/bidi/modules/_module.py:86: UnknownCommandException
 4:00.03 INFO Got 40 unexpected results, with 0 unexpected passes
 4:00.03 wptserve INFO Stopped http server on 127.0.0.1:8000
 4:00.03 wptserve INFO Stopped http server on 127.0.0.1:8002
 4:00.04 wptserve INFO Stopped http server on 127.0.0.1:8001
 4:00.06 wptserve INFO Stopped http server on 127.0.0.1:8443
 4:00.06 wptserve INFO Stopped http server on 127.0.0.1:8444
 4:00.06 wptserve INFO Stopped http server on 127.0.0.1:8003
 4:00.06 wptserve INFO Stopped http server on 127.0.0.1:8445
 4:00.06 wptserve INFO Stopped http server on 127.0.0.1:9000
 4:00.06 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 4:00.06 wptserve INFO Stopped http server on 127.0.0.1:8446
 4:00.21 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 4:00.22 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 4:00.28 INFO Removed font: Ahem.ttf
 4:00.31 INFO Closing logging queue
 4:00.31 INFO queue closed
 4:00.64 INFO ::: Ran 10 of expected 10 iterations.
 4:00.64 INFO ## All results ##

 4:00.64 INFO ### /webdriver/tests/bidi/emulation/set_touch_override/contexts.py ###
 4:00.64 INFO |                       Subtest                        | Results |                                                     Messages                                                    |
 4:00.64 INFO |------------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------|
 4:00.64 INFO |                                                      | OK      |                                                                                                                 |
 4:00.64 INFO | `test_contexts_isolation`                            | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_frame[same_origin]`                            | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_frame[cross_origin]`                           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_overrides_user_contexts[Default user context]` | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_overrides_user_contexts[Custom user context]`  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_overrides_global[Default user context]`        | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_overrides_global[Custom user context]`         | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO 
 4:00.64 INFO ### /webdriver/tests/bidi/emulation/set_touch_override/global.py ###
 4:00.64 INFO |                     Subtest                      | Results |                                                     Messages                                                    |
 4:00.64 INFO |--------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------|
 4:00.64 INFO |                                                  | OK      |                                                                                                                 |
 4:00.64 INFO | `test_top_level[Default user context]`           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_top_level[Custom user context]`            | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_iframe[Default user context-same_origin]`  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_iframe[Default user context-cross_origin]` | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_iframe[Custom user context-same_origin]`   | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_iframe[Custom user context-cross_origin]`  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO 
 4:00.64 INFO ### /webdriver/tests/bidi/emulation/set_touch_override/invalid.py ###
 4:00.64 INFO |                           Subtest                           | Results |                                                     Messages                                                    |
 4:00.64 INFO |-------------------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------|
 4:00.64 INFO |                                                             | OK      |                                                                                                                 |
 4:00.64 INFO | `test_params_contexts_invalid_type[42]`                     | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_invalid_type[False]`                  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_invalid_type[None]`                   | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_invalid_type[foo]`                    | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_invalid_type[value4]`                 | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_empty_list`                           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_entry_invalid_type[42]`               | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_entry_invalid_type[False]`            | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_entry_invalid_type[None]`             | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_entry_invalid_type[value3]`           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_entry_invalid_type[value4]`           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_entry_invalid_value`                  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_invalid_type[42]`                | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_invalid_type[False]`             | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_invalid_type[None]`              | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_invalid_type[foo]`               | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_invalid_type[value4]`            | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_empty_list`                      | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_entry_invalid_type[42]`          | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_entry_invalid_type[False]`       | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_entry_invalid_type[None]`        | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_entry_invalid_type[value3]`      | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_entry_invalid_type[value4]`      | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_entry_invalid_value[]`           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_user_contexts_entry_invalid_value[somestring]` | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_contexts_and_user_contexts`                    | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_touch_override_missing`                        | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_touch_override_invalid_type[False]`            | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_touch_override_invalid_type[value1]`           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_touch_override_invalid_type[foo]`              | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_touch_override_invalid_type[value3]`           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO | `test_params_touch_override_invalid_value`                  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.64 INFO 
 4:00.64 INFO ### /webdriver/tests/bidi/emulation/set_touch_override/user_contexts.py ###
 4:00.64 INFO |                     Subtest                     | Results |                                                     Messages                                                    |
 4:00.64 INFO |-------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------|
 4:00.65 INFO |                                                 | OK      |                                                                                                                 |
 4:00.65 INFO | `test_isolation[Default user context]`          | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO | `test_isolation[Custom user context]`           | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO | `test_frame[Default user context-same_origin]`  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO | `test_frame[Default user context-cross_origin]` | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO | `test_frame[Custom user context-same_origin]`   | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO | `test_frame[Custom user context-cross_origin]`  | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO | `test_overrides_global[Default user context]`   | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO | `test_overrides_global[Custom user context]`    | FAIL    | `webdriver.bidi.error.UnknownCommandException: unknown command (Unknown command 'emulation.setTouchOverride'.)` |
 4:00.65 INFO 
 4:00.65 INFO ::: Running tests in a loop with restarts 10 times : PASS
 4:00.65 INFO :::
 4:00.65 INFO ::: Test verification PASS
 4:00.65 INFO :::
[taskcluster 2025-12-17 10:55:14.831Z] === Task Finished ===
[taskcluster 2025-12-17 10:55:15.198Z] Successful task run with exit code: 0 completed in 503.109 seconds