Open Bug 1882533 Opened 2 years ago Updated 2 years ago

Sometimes webdriver/tests/bidi/input/perform_actions/invalid.py times out locally

Categories

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

defect

Tracking

(Not tracked)

People

(Reporter: alexrudenko, Unassigned)

Details

python3 ./wpt run --channel=nightly firefox webdriver/tests/bidi/input/perform_actions/invalid.py --webdriver-arg=-vv --log-mach - --log-mach-level=debug &> debug.txt

Using the nightly version from 2024-02-27. It times out in approximately 1 out of 4 runs. 3 out of 4 runs it takes ~7 seconds and does not timeout.
Here is the log I captured when the timeout happens https://gist.githubusercontent.com/OrKoN/79e9ba8995db27fbf51bfe71d6f9fc28/raw/e10ead37d89d7baee486d7f59e7fad8a2cbe5d46/gistfile1.txt.

Somehow there is a stall for about 26s between the teardown code was run and before the next test starts. I've no idea what might actually happen after the WebDriver:GetWindowHandles command returned:

 0:08.48 pid:43164 1709045559009	Marionette	DEBUG	0 -> [0,1232,"WebDriver:GetWindowHandles",{}]
 0:08.48 pid:43164 1709045559009	Marionette	DEBUG	0 <- [1,1232,null,["14d9c636-71b7-4acc-a1c5-2b31a627f25a"]]
 0:08.48 pid:43164 1709045559009	webdriver::server	DEBUG	<- 200 OK {"value":["14d9c636-71b7-4acc-a1c5-2b31a627f25a"]}
 0:34.55 DEBUG Got command: 'log'
 0:34.55 INFO STDOUT: webdriver/tests/bidi/input/perform_actions/invalid.py::test_params_input_source_action_sequence_actions_actions_invalid_type[None-pointer] 
 0:34.55 DEBUG Got command: 'log'
 0:34.55 INFO STDOUT: ERROR
 0:34.55 DEBUG Got command: 'log'
 0:34.55 INFO STDOUT: webdriver/tests/bidi/input/perform_actions/invalid.py::test_params_input_source_action_sequence_actions_actions_invalid_type[None-wheel] 

Alex, how often do you see this issue? You mentioned that with the --timeout-multiplier=1 argument it is not visible anymore? Is that still true?

I cannot see it when I run the command myself. There is no hang.

Flags: needinfo?(alexrudenko)

I get it in about 1 out of 4 runs. --timeout-multiplier=1 still seems to fix the issue.
I am running it on a Mac M1 with the latest version of Firefox Nightly installed on the system.

Flags: needinfo?(alexrudenko)
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.