Open Bug 1857057 Opened 8 months ago Updated 2 months ago

Perma dom/tests/mochitest/pointerlock/mochitest.ini failures on new Ubuntu 22.04 Wayland pool

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: ahal, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

This is happening on a new Ubuntu 22.04 Wayland enabled pool we're in the process of standing up.

Example failure log:
https://treeherder.mozilla.org/logviewer?job_id=431033473&repo=try&lineNumber=10237

There are two test failures here:

  1. dom/tests/mochitest/pointerlock/test_pointerlock-api.html
[task 2023-10-02T16:36:25.889Z] 16:36:25     INFO - TEST-START | dom/tests/mochitest/pointerlock/test_pointerlock-api.html
[task 2023-10-02T16:36:27.039Z] 16:36:27     INFO - GECKO(17786) | [POINTERLOCK] Starting file_screenClientXYConst.html
[task 2023-10-02T16:36:27.067Z] 16:36:27     INFO - GECKO(17786) | JavaScript error: http://mochi.test:8888/tests/dom/tests/mochitest/pointerlock/file_screenClientXYConst.html, line 139: TypeError: Fullscreen request denied
[task 2023-10-02T16:36:27.694Z] 16:36:27     INFO - GECKO(17786) | 1696264587687	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2023-10-02T16:36:47.693Z] 16:36:47     INFO - GECKO(17786) | console.error: (new Error("Polling for changes failed: Unexpected content-type \"text/plain;charset=US-ASCII\".", "resource://services-settings/remote-settings.sys.mjs", 321))
[task 2023-10-02T16:41:30.628Z] 16:41:30     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-10-02T16:41:30.632Z] 16:41:30     INFO - Buffered messages logged at 16:36:26
[task 2023-10-02T16:41:30.634Z] 16:41:30     INFO - Testing file_screenClientXYConst.html
[task 2023-10-02T16:41:30.635Z] 16:41:30     INFO - Buffered messages logged at 16:36:27
[task 2023-10-02T16:41:30.642Z] 16:41:30     INFO - TEST-PASS | dom/tests/mochitest/pointerlock/test_pointerlock-api.html | A valid string reason is expected 
[task 2023-10-02T16:41:30.642Z] 16:41:30     INFO - TEST-PASS | dom/tests/mochitest/pointerlock/test_pointerlock-api.html | Reason cannot be empty 
[task 2023-10-02T16:41:30.642Z] 16:41:30     INFO - file_screenClientXYConst.html: Resetting fullscreen enter count.
[task 2023-10-02T16:41:30.642Z] 16:41:30     INFO - file_screenClientXYConst.html: Requesting fullscreen on parent
[task 2023-10-02T16:41:30.642Z] 16:41:30     INFO - Buffered messages finished
[task 2023-10-02T16:41:30.643Z] 16:41:30     INFO - TEST-UNEXPECTED-FAIL | dom/tests/mochitest/pointerlock/test_pointerlock-api.html | Test timed out. - 
[task 2023-10-02T16:41:31.641Z] 16:41:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO - TEST-UNEXPECTED-FAIL | dom/tests/mochitest/pointerlock/test_pointerlock-api.html | [SimpleTest.finish()] No checks actually run. (You need to call ok(), is(), or similar functions at least once.  Make sure you use SimpleTest.waitForExplicitFinish() if you need it.) 
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     SimpleTest.ok@SimpleTest/SimpleTest.js:426:16
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     afterCleanup@SimpleTest/SimpleTest.js:1477:18
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     executeCleanupFunction@SimpleTest/SimpleTest.js:1562:7
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     SimpleTest.finish@SimpleTest/SimpleTest.js:1582:3
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     killTest@SimpleTest/TestRunner.js:200:22
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     async*delayedKillTest@SimpleTest/TestRunner.js:240:17
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:238:17
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.646Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:252:15
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     TestRunner.runTests/<@SimpleTest/TestRunner.js:532:16
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     Async*TestRunner.runTests@SimpleTest/TestRunner.js:519:48
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     RunSet.runtests@SimpleTest/setup.js:285:14
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     RunSet.runall@SimpleTest/setup.js:264:12
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     getPrefList/<@SimpleTest/setup.js:351:14
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     loadFile/req.onload@SimpleTest/setup.js:80:19
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     EventHandlerNonNull*loadFile@SimpleTest/setup.js:75:3
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     getPrefList@SimpleTest/setup.js:349:13
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     hookupTests@SimpleTest/setup.js:372:5
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO - parseTestManifest@http://mochi.test:8888/manifestLibrary.js:53:13
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO - getTestManifest/req.onload@http://mochi.test:8888/manifestLibrary.js:66:28
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO - EventHandlerNonNull*getTestManifest@http://mochi.test:8888/manifestLibrary.js:62:3
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO -     hookup@SimpleTest/setup.js:337:20
[task 2023-10-02T16:41:31.647Z] 16:41:31     INFO - EventHandlerNonNull*@http://mochi.test:8888/tests?autorun=1&closeWhenDone=1&consoleLevel=INFO&manifestFile=tests.json&dumpOutputDirectory=%2Ftmp&cleanupCrashes=true&ignorePrefsFile=ignorePrefs.json:10:32
[task 2023-10-02T16:41:31.648Z] 16:41:31     INFO - GECKO(17786) | MEMORY STAT | vsize 2391MB | residentFast 88MB | heapAllocated 7MB
[task 2023-10-02T16:41:34.689Z] 16:41:34     INFO - Error: Unable to restore focus, expect failures and timeouts.
  1. dom/tests/mochitest/pointerlock/test_pointerlock_xorigin_iframe.html
[task 2023-10-02T16:41:40.933Z] 16:41:40     INFO - TEST-START | dom/tests/mochitest/pointerlock/test_pointerlock_xorigin_iframe.html
[task 2023-10-02T16:41:41.738Z] 16:41:41     INFO - GECKO(17786) | [POINTERLOCK] Starting file_pointerlock_xorigin_iframe.html
[task 2023-10-02T16:41:41.974Z] 16:41:41     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-10-02T16:41:41.974Z] 16:41:41     INFO - Buffered messages logged at 16:41:41
[task 2023-10-02T16:41:41.974Z] 16:41:41     INFO - Testing file_pointerlock_xorigin_iframe.html
[task 2023-10-02T16:41:41.974Z] 16:41:41     INFO - Test finish
[task 2023-10-02T16:41:41.975Z] 16:41:41     INFO - file_pointerlock_xorigin_iframe.html: Resetting fullscreen enter count.
[task 2023-10-02T16:41:41.975Z] 16:41:41     INFO - Buffered messages finished
[task 2023-10-02T16:41:41.995Z] 16:41:41     INFO - TEST-UNEXPECTED-FAIL | dom/tests/mochitest/pointerlock/test_pointerlock_xorigin_iframe.html | file_pointerlock_xorigin_iframe.html: got pointerlockerror - got "pointerlockerror", expected "pointerlockchange"
[task 2023-10-02T16:41:41.996Z] 16:41:41     INFO -     SimpleTest.is@SimpleTest/SimpleTest.js:509:14
[task 2023-10-02T16:41:41.998Z] 16:41:41     INFO -     window.is@dom/tests/mochitest/pointerlock/pointerlock_utils.js:10:10
[task 2023-10-02T16:41:41.998Z] 16:41:41     INFO -     eventHandler@dom/tests/mochitest/pointerlock/file_pointerlock_xorigin_iframe.html:40:11
[task 2023-10-02T16:41:41.998Z] 16:41:41     INFO -     EventListener.handleEvent*waitForPointerLockEvent/<@dom/tests/mochitest/pointerlock/file_pointerlock_xorigin_iframe.html:48:11
[task 2023-10-02T16:41:41.999Z] 16:41:41     INFO -     waitForPointerLockEvent@dom/tests/mochitest/pointerlock/file_pointerlock_xorigin_iframe.html:38:12
[task 2023-10-02T16:41:41.999Z] 16:41:41     INFO -     requestPointerLock@dom/tests/mochitest/pointerlock/file_pointerlock_xorigin_iframe.html:54:9
[task 2023-10-02T16:41:41.999Z] 16:41:41     INFO -     start@dom/tests/mochitest/pointerlock/file_pointerlock_xorigin_iframe.html:74:9
[task 2023-10-02T16:41:41.999Z] 16:41:41     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-10-02T16:41:42.000Z] 16:41:42     INFO - TEST-UNEXPECTED-FAIL | dom/tests/mochitest/pointerlock/test_pointerlock_xorigin_iframe.html | file_pointerlock_xorigin_iframe.html: target pointer locked - got null, expected [object HTMLDivElement]
[task 2023-10-02T16:41:42.009Z] 16:41:42     INFO -     SimpleTest.is@SimpleTest/SimpleTest.js:509:14
[task 2023-10-02T16:41:42.009Z] 16:41:42     INFO -     window.is@dom/tests/mochitest/pointerlock/pointerlock_utils.js:10:10
[task 2023-10-02T16:41:42.010Z] 16:41:42     INFO -     requestPointerLock@dom/tests/mochitest/pointerlock/file_pointerlock_xorigin_iframe.html:55:5
[task 2023-10-02T16:41:42.010Z] 16:41:42     INFO -     async*start@dom/tests/mochitest/pointerlock/file_pointerlock_xorigin_iframe.html:74:9
[task 2023-10-02T16:41:42.161Z] 16:41:42     INFO - GECKO(17786) | 1696264902155	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2023-10-02T16:47:00.730Z] 16:47:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-10-02T16:47:00.734Z] 16:47:00     INFO - TEST-UNEXPECTED-FAIL | dom/tests/mochitest/pointerlock/test_pointerlock_xorigin_iframe.html | Test timed out. - 
[task 2023-10-02T16:47:01.753Z] 16:47:01     INFO - GECKO(17786) | MEMORY STAT | vsize 2396MB | residentFast 96MB | heapAllocated 9MB
[task 2023-10-02T16:47:04.789Z] 16:47:04     INFO - Error: Unable to restore focus, expect failures and timeouts.

It's unclear whether these are a result of Wayland, upgrading to Ubuntu 22.04 or hardware characteristics of the new workers. The tests will be skipped on this new platform.

No longer depends on: 1857035
Blocks: 1857164
Depends on: 1856971
Severity: -- → S3

Hey Adam, since you're looking into other PointerLock issues and adding native APIs, I am bringing this issue to your radar so we can consider Wayland properly.

Flags: needinfo?(avandolder)

Simple

./mach test dom/tests/mochitest/pointerlock/test_pointerlock_xorigin_iframe.html

on Linux/Wayland works for me. But running whole suite as

./mach test dom/tests/mochitest/pointerlock/

fails with fullscreen request.

Pointer lock is supported on Wayland, there's a Wayland protocol for it. But it may need some plumbing to fit to the testsuite.

Flags: needinfo?(avandolder)
You need to log in before you can comment on or make changes to this bug.