Closed Bug 1836972 Opened 1 years ago Closed 1 years ago

Intermittent TEST-UNEXPECTED-TIMEOUT | /webdriver/tests/bidi/input/perform_actions/key_events.py | expected OK

Categories

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

defect

Tracking

(firefox-esr102 unaffected, firefox-esr115 fixed, firefox114 unaffected, firefox115 unaffected, firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- fixed
firefox114 --- unaffected
firefox115 --- unaffected
firefox116 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jdescottes)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

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


[task 2023-06-06T12:15:32.882Z] 12:15:32     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/bidi/input/perform_actions/key_events.py::test_key_special_key_sends_keydown[R_PAGEDOWN-expected59] 
[task 2023-06-06T12:15:32.885Z] 12:15:32     INFO - PID 2359 | 1686053732885	RemoteAgent	INFO	Perform WebSocket upgrade for incoming connection from 127.0.0.1:55794
[task 2023-06-06T12:15:32.888Z] 12:15:32     INFO - PID 2359 | 1686053732887	webdriver::server	DEBUG	-> POST /session/a33a789a-f4b4-4483-884d-14b703bfe264/window/rect {"width": 800, "height": 600}
[task 2023-06-06T12:15:32.890Z] 12:15:32     INFO - PID 2359 | 1686053732888	RemoteAgent	DEBUG	WebDriverBiDiConnection a8c8e575-3cea-4331-a124-ecd4ba1227e8 accepted
[task 2023-06-06T12:15:32.890Z] 12:15:32     INFO - PID 2359 | 1686053732889	WebDriver BiDi	DEBUG	Connection a8c8e575-3cea-4331-a124-ecd4ba1227e8 attached to session a33a789a-f4b4-4483-884d-14b703bfe264
[task 2023-06-06T12:15:32.891Z] 12:15:32     INFO - PID 2359 | 1686053732889	Marionette	DEBUG	0 -> [0,1282,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2023-06-06T12:15:32.891Z] 12:15:32     INFO - PID 2359 | 1686053732890	Marionette	TRACE	Requested window geometry matches
[task 2023-06-06T12:15:32.893Z] 12:15:32     INFO - PID 2359 | 1686053732892	Marionette	DEBUG	0 <- [1,1282,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2023-06-06T12:15:32.894Z] 12:15:32     INFO - PID 2359 | 1686053732893	webdriver::server	DEBUG	<- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2023-06-06T12:15:32.895Z] 12:15:32     INFO - PID 2359 | 1686053732894	webdriver::server	DEBUG	-> POST /session/a33a789a-f4b4-4483-884d-14b703bfe264/window/rect {"x": 100, "y": 100}
[task 2023-06-06T12:15:32.896Z] 12:15:32     INFO - PID 2359 | 1686053732895	Marionette	DEBUG	0 -> [0,1283,"WebDriver:SetWindowRect",{"x":100,"y":100}]
[task 2023-06-06T12:15:32.897Z] 12:15:32     INFO - PID 2359 | 1686053732897	Marionette	TRACE	Requested window geometry matches
[task 2023-06-06T12:15:32.898Z] 12:15:32     INFO - PID 2359 | 1686053732898	Marionette	DEBUG	0 <- [1,1283,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2023-06-06T12:15:32.900Z] 12:15:32     INFO - PID 2359 | 1686053732898	webdriver::server	DEBUG	<- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2023-06-06T12:15:32.903Z] 12:15:32     INFO - PID 2359 | 1686053732900	RemoteAgent	DEBUG	WebDriverBiDiConnection a8c8e575-3cea-4331-a124-ecd4ba1227e8 -> {"id":573,"method":"browsingContext.getTree","params":{}}
[task 2023-06-06T12:15:32.903Z] 12:15:32     INFO - PID 2359 | 1686053732901	RemoteAgent	TRACE	Module root/browsingContext.jsm found for ROOT
[task 2023-06-06T12:15:32.903Z] 12:15:32     INFO - PID 2359 | 1686053732901	RemoteAgent	TRACE	Received command browsingContext.getTree for destination ROOT
[task 2023-06-06T12:15:32.903Z] 12:15:32     INFO - PID 2359 | 1686053732901	RemoteAgent	TRACE	Module root/browsingContext.jsm found for ROOT
[task 2023-06-06T12:15:32.903Z] 12:15:32     INFO - PID 2359 | 1686053732902	RemoteAgent	DEBUG	WebDriverBiDiConnection a8c8e575-3cea-4331-a124-ecd4ba1227e8 <- {"id":573,"result":{"contexts":[{"context":"e5308be8-4748-458f-a095-4776665b8851","url":"http://web-platform.test:8000/webdriver/tests/support/html/test_actions.html","children":[],"parent":null}]}}
[task 2023-06-06T12:15:32.906Z] 12:15:32     INFO - PID 2359 | 1686053732904	RemoteAgent	DEBUG	WebDriverBiDiConnection a8c8e575-3cea-4331-a124-ecd4ba1227e8 -> {"id":574,"method":"browsingContext.navigate","params":{"context":"e5308be8-4748-458f-a095-4776665b8851","url":"http://web-platform.test:8000/webdriver/tests/support/html/test_actions.html","wait":"complete"}}
[task 2023-06-06T12:15:32.907Z] 12:15:32     INFO - PID 2359 | 1686053732904	RemoteAgent	TRACE	Module root/browsingContext.jsm found for ROOT
[task 2023-06-06T12:15:32.907Z] 12:15:32     INFO - PID 2359 | 1686053732904	RemoteAgent	TRACE	Received command browsingContext.navigate for destination ROOT
[task 2023-06-06T12:15:32.907Z] 12:15:32     INFO - PID 2359 | 1686053732904	RemoteAgent	TRACE	Module root/browsingContext.jsm found for ROOT
[task 2023-06-06T12:15:32.907Z] 12:15:32     INFO - PID 2359 | 1686053732905	RemoteAgent	TRACE	Received command browsingContext._getBaseURL for destination WINDOW_GLOBAL
[task 2023-06-06T12:15:32.909Z] 12:15:32     INFO - PID 2359 | 1686053732905	RemoteAgent	TRACE	Module windowglobal-in-root/browsingContext.jsm found for WINDOW_GLOBAL
[task 2023-06-06T12:15:32.910Z] 12:15:32     INFO - PID 2359 | 1686053732905	RemoteAgent	TRACE	Module windowglobal/browsingContext.jsm found for WINDOW_GLOBAL
[task 2023-06-06T12:15:32.911Z] 12:15:32     INFO - PID 2359 | 1686053732906	RemoteAgent	TRACE	Received command browsingContext._getBaseURL for destination WINDOW_GLOBAL
[task 2023-06-06T12:15:32.911Z] 12:15:32     INFO - PID 2359 | 1686053732906	RemoteAgent	TRACE	Module windowglobal/browsingContext.jsm found for WINDOW_GLOBAL
[task 2023-06-06T12:15:32.911Z] 12:15:32     INFO - PID 2359 | 1686053732906	RemoteAgent	TRACE	Module windowglobal/browsingContext.jsm found for WINDOW_GLOBAL
[task 2023-06-06T12:15:32.912Z] 12:15:32     INFO - PID 2359 | 1686053732909	RemoteAgent	TRACE	[11] ProgressListener Start: expectNavigation=true resolveWhenStarted=false unloadTimeout=1600 waitForExplicitStart=true
[task 2023-06-06T12:15:32.912Z] 12:15:32     INFO - PID 2359 | 1686053732909	RemoteAgent	TRACE	[11] ProgressListener Skip setting the unload timer
[task 2023-06-06T12:15:32.923Z] 12:15:32     INFO - PID 2359 | 1686053732922	RemoteAgent	TRACE	[11] ProgressListener Check loading state: isStart=1 isStop=0
[task 2023-06-06T12:15:32.924Z] 12:15:32     INFO - PID 2359 | 1686053732922	RemoteAgent	TRACE	[11] ProgressListener state=start: http://web-platform.test:8000/webdriver/tests/support/html/test_actions.html
[task 2023-06-06T12:15:33.081Z] 12:15:33     INFO - TEST-UNEXPECTED-TIMEOUT | /webdriver/tests/bidi/input/perform_actions/key_events.py | expected OK
[task 2023-06-06T12:15:33.081Z] 12:15:33     INFO - TEST-INFO took 80003ms
[task 2023-06-06T12:15:43.158Z] 12:15:43  WARNING - Forcibly terminating runner process
[task 2023-06-06T12:15:43.170Z] 12:15:43     INFO - PID 3415 | 1686053743168	geckodriver	INFO	Listening on 127.0.0.1:49831
[task 2023-06-06T12:15:43.171Z] 12:15:43     INFO - Starting runner

Julian, could it be caused by Bug 1833090?

Flags: needinfo?(jdescottes)

(In reply to Narcis Beleuzu [:NarcisB] from comment #1)

Julian, could it be caused by Bug 1833090?

It seems unlikely because this is just an individual test timing out, and this bug only changed how test suites are assigned to chunks.

This test takes a very long time to run. In the only green wd8 job from the link above, it took 78s, and otherwise it seems to timeout at 80 seconds.
I checked another run for the current beta, and it seems to take around 50 seconds: https://treeherder.mozilla.org/logviewer?job_id=418253402&repo=mozilla-beta&lineNumber=21061

I am keeping the needinfo as I will try to understand why the simulation is much slower (feel free to add other need infos if other bugs in the pushlog seem related to this issue though).

You were right, this has been regressed by Bug 1833090. I guess that must be a side effect of another test suite now running in the same chunk? Or the opposite, the fact that we are no longer running some tests prior to this one?

In any case, I also tried extending the timeout, so I think we should just do that for now, it seems to fix the issue.

Flags: needinfo?(jdescottes)
Keywords: regression
Regressed by: 1833090

Is that now the very first test that runs in a Wdspec job? Do you have a link to a try build with the extended timeout requested?

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

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

(In reply to Henrik Skupin [:whimboo][⌚️UTC+2] from comment #4)

Is that now the very first test that runs in a Wdspec job?

No it runs in the middle of the test, both with the old and new chunks. I also compared the total runtimes of all wdspec jobs on this tsan platform:

With old chunks

wd1: 57
wd2: 23
wd3: 22
wd4: 42
wd5: 28
wd6: 29
wd7: 29
wd8: 25
Total: 255

With new chunks

wd1: 37
wd2: 28
wd3: 29
wd4: 35
wd5: 36
wd6: 27
wd7: 30
wd8: 37
Total: 259

So it's very similar, and I assume most tests have the same runtime with the old and the new chunks. It might only affect some very specific tests (and only in beta...)

Do you have a link to a try build with the extended timeout requested?

Sure, wd8 on https://treeherder.mozilla.org/jobs?repo=try&revision=5e3d1805cd652180f1b997bbc53883f88830b71a&selectedTaskRun=CgdxXkuIRp67AzErjZoJAg.0

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d588d40904f7 [wdspec] Add timeout=long to /webdriver/tests/bidi/input/perform_actions/key_events.py r=webdriver-reviewers,whimboo
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/40440 for changes under testing/web-platform/tests
Blocks: 1837347
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Upstream PR merged by moz-wptsync-bot

It looks like we're running into this same timeout occasionally on esr15 -- maybe worth uplifting the fix there?

(In particular, see the log linked from comment 15, and also this log that that I just found misclassified on another bug which seems to really be this bug.)

(The autoland failure in comment 16 seems to be some sort of unrelated webdriver issue that happened during this test. Not sure if that wants its own bug filed or not, I'll leave it to folks who are familiar with this test & with webdriver to handle that as-needed.)

Flags: needinfo?(jdescottes)

We can try, although it's odd that it fails in 115 esr, since the regressing bug only landed on 116 and was not uplifted. But we also did not fully understand why this was timing out only on some channels, so maybe that's worth doing anyway.

Flags: needinfo?(jdescottes)

Comment on attachment 9337730 [details]
Bug 1836972 - [wdspec] Add timeout=long to /webdriver/tests/bidi/input/perform_actions/key_events.py

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Occasional timeouts for this test on CI
  • User impact if declined: No user impact, only CI
  • Fix Landed on Version: 116
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): No risk, just adding # META: timeout=long to a wdspect test
Attachment #9337730 - Flags: approval-mozilla-esr115?

Comment on attachment 9337730 [details]
Bug 1836972 - [wdspec] Add timeout=long to /webdriver/tests/bidi/input/perform_actions/key_events.py

test-only change, approved for ESR115

Attachment #9337730 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: