Bug 219482 - [WPE] imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame_invalidhandle.https.html is flaky
Summary: [WPE] imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame_in...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-02 21:25 PST by Diego Pino
Modified: 2022-01-02 18:29 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Pino 2020-12-02 21:25:09 PST
The test sometimes fails with the following output:

Diff: https://build.webkit.org/results/WPE-Linux-64-bit-Release-Tests/r270360%20(21308)/imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame_invalidhandle.https-diff.txt

--- /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame_invalidhandle.https-expected.txt
+++ /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame_invalidhandle.https-actual.txt
@@ -1,3 +1,6 @@
+CONSOLE MESSAGE: SyntaxError: Can't create duplicate variable: 'isChromiumBased'
+
+Harness Error (FAIL), message = SyntaxError: Can't create duplicate variable: 'isChromiumBased'
 
 PASS XRSession cancelAnimationFrame does not have unexpected behavior when given invalid handles on immersive testSession
 PASS XRSession cancelAnimationFrame does not have unexpected behavior when given invalid handles on non-immersive testSession

It's possible to reproduce the failure with the following command:

$ Tools/Scripts/run-webkit-tests --wpe --release --iterations=3 imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame_invalidhandle.https.html

I think the problem is in https://webkit-search.igalia.com/webkit/source/LayoutTests/imported/w3c/web-platform-tests/webxr/resources/webxr_util.js#22, that block of code is meant to be executed only once but sometimes is executed more than once.
Comment 1 Diego Pino 2022-01-02 18:29:30 PST
This test has been constantly passing for the last 4000 revisions:

https://results.webkit.org/?platform=WPE&limit=4000&suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fwebxr%2FxrSession_cancelAnimationFrame_invalidhandle.https.html

There are no tests filed under this bug in TestExpectations.

Closing bug.