On Sat, 20 Dec 2025 03:31:24 GMT, Alexander Zvegintsev <[email protected]> 
wrote:

> This is a test stabilization changeset for intermittent failures in the CI 
> for Wayland.
> I made minimal changes where applicable. There was no goal to refactor all 
> affected tests.
> 
> * `test/jdk/java/awt/Choice/PopupPosTest/PopupPosTest.java`
>  Without the added delay, the `stateChanged` variable could be overwritten by 
> a previous `mouseMoveAndPressOnChoice` call.
> * `test/jdk/java/awt/Focus/ClearLwQueueBreakTest/ClearLwQueueBreakTest.java`
> The test may still fail intermittently in the CI, but an additional delay 
> after setVisible won't cause any problems / 
> https://bugs.openjdk.org/browse/JDK-8198618
> * `test/jdk/java/awt/Frame/FrameSetMinimumSizeTest.java` 
> The test made many setSize calls within a single `invokeAndWait` block and 
> immediately checked the sizes. This works on the X11 server, but the XWayland 
> implementation appears to be different. The `ConfigureNotify` with the 
> correct sizes arrives later, but the test doesn't wait for it. Therefore, it 
> was refactored.
> * 
> test/jdk/java/awt/KeyboardFocusmanager/TypeAhead/ButtonActionKeyTest/ButtonActionKeyTest.java
> The test may still fail intermittently in the CI, but an additional delay 
> after `setVisible` won't cause any problems / 
> https://bugs.openjdk.org/browse/JDK-8257529
> * 
> `test/jdk/java/awt/LightweightComponent/LightWeightTabFocus/LightWeightTabFocus.java`
> mouse button was not released causing subsequent test failures.
> * `test/jdk/java/awt/Modal/ToFront/DialogToFrontModeless1Test.java`
> details are in the test's comment.
>  
> This doesn't solve all the intermittent test issues related to Wayland 
> (sometimes not even on Wayland).
> Some of the tests described in the bug report are no longer reproducible. I 
> will file new issues for future failures.
> I also tested that it does not break other platforms testing as well.

Marked as reviewed by prr (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/28939#pullrequestreview-3601876470

Reply via email to