RESOLVED FIXED301508
[WebXR][GLib] TestWebKitWebXR/permission-request is flaky
https://bugs.webkit.org/show_bug.cgi?id=301508
Summary [WebXR][GLib] TestWebKitWebXR/permission-request is flaky
Fujii Hironori
Reported 2025-10-27 02:22:29 PDT
[WebXR][GLib] TestWebKitWebXR/permission-request is flaky https://build.webkit.org/#/builders/57/builds/21883 > /webkit/WebKitWebXR/permission-request: TIMEOUT > ERROR:../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:246:void testWebKitXRPermissionRequest(WebXRTest*, gconstpointer): assertion failed (data.result.title.utf8().data() == "pass"): ("" == "pass")
Attachments
Fujii Hironori
Comment 1 2025-10-27 02:37:12 PDT
another failure. line#257 failed. https://s3-us-west-2.amazonaws.com/ews-archives.webkit.org/wpe-x86_64-release-re-run-api-tests/fd5138dc-78208.txt > /webkit/WebKitWebXR/permission-request: TIMEOUT > ERROR:../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:257:void testWebKitXRPermissionRequest(WebXRTest*, gconstpointer): assertion failed (data.result.title.utf8().data() == "fail"): ("" == "fail")
Simon Pena
Comment 2 2025-10-27 03:02:54 PDT
For API tests, do we have a history view to see how often something is flaky? At the moment, we stop the monado-service at the end of the tests, but I am not sure we do anything if it we find it already gone by the time we stop it. We could start by updating the test runner, and checking whether it's still running, otherwise printing an error. It would help narrow things down.
Fujii Hironori
Comment 3 2025-10-27 06:35:49 PDT
GTK and WPE are using run-gtk-tests and run-wpe-tests scripts which don't have the reporing feature. I don't know what's going on in the bots. But, I suppose we will see the log like the following if the monado service isn't running. > XR_ERROR_RUNTIME_FAILURE in xrCreateInstance: Failed to create instance '-1'
Claudio Saavedra
Comment 5 2025-10-28 08:47:55 PDT
*** Bug 301571 has been marked as a duplicate of this bug. ***
Simon Pena
Comment 6 2025-10-28 10:09:09 PDT
I've been debugging this locally. While the bots are flaky and pass, file or time out, when I run this locally I get it failing consistently. In my setup, building from tip of the tree, attempting to request a session with unbounded required features fails with `NotSupportedError: The operation is not supported.`. In that case, our permission request callback doesn't get called. I am updating my SDK, because my monado-service was the package provided, and want to see what happens when I use the jhbuild one.
Simon Pena
Comment 7 2025-10-28 11:30:50 PDT
Indeed, with the latest webkit-container-sdk and jhbuild-provided monado-service, the test passes locally.
Fujii Hironori
Comment 8 2025-10-28 20:50:29 PDT
This is reproducible on my PC by limiting CPU affinity with taskset. > WITH_OPENXR_RUNTIME=y taskset 1 ./Tools/Scripts/run-gtk-tests --release WebKitGTK/TestWebKitWebXR But, not 100%. 1/20
Fujii Hironori
Comment 9 2025-10-28 21:39:36 PDT
EWS
Comment 10 2025-10-29 08:55:41 PDT
Committed 302292@main (4eef88235757): <https://commits.webkit.org/302292@main> Reviewed commits have been landed. Closing PR #53123 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.