Skip to content

Conversation

anass-baya
Copy link
Contributor

@anass-baya anass-baya commented Aug 18, 2025

This test was recently automated and is failing intermittently in the CI due to timing issues.
This enhancement aims to stabilize the test and also adds the missing null pointer check.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Integration blocker

 ⚠️ Title mismatch between PR and JBS for issue JDK-8361387

Warning

 ⚠️ Found trailing period in issue title for 8361387: Test bug4655513.java fails intermittently on Windows platform.

Issue

  • JDK-8361387: Test bug4655513.java fails intermittently on Windows platform (Bug - P4) ⚠️ Title mismatch between PR and JBS.

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26824/head:pull/26824
$ git checkout pull/26824

Update a local copy of the PR:
$ git checkout pull/26824
$ git pull https://git.openjdk.org/jdk.git pull/26824/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 26824

View PR using the GUI difftool:
$ git pr show -t 26824

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26824.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 18, 2025

👋 Welcome back abaya! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Aug 18, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk
Copy link

openjdk bot commented Aug 18, 2025

@anass-baya The following label will be automatically applied to this pull request:

  • client

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@anass-baya anass-baya marked this pull request as draft August 18, 2025 16:21
@anass-baya anass-baya marked this pull request as ready for review August 18, 2025 16:21
@anass-baya anass-baya changed the title 8361387 : Test bug4655513.java fails intermittently on Windows platform 8361387 : Test bug4655513.java fails intermittently on Windows platform. Aug 18, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Aug 18, 2025
@mlbridge
Copy link

mlbridge bot commented Aug 18, 2025

Webrevs

@openjdk openjdk bot added rfr Pull request is ready for review and removed rfr Pull request is ready for review labels Aug 18, 2025
robot.mouseMove(dragStartLoc.x, y);
robot.delay(50);
robot.delay(20);
}
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mousePress parameter should be InputEvent.BUTTON1_DOWN_MASK instead which is usually the norm? mouseRelease is called correctly..
Also, I dont think we usually use delay between drag...guess once drag is complete, we can call waitForIdle and delay..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @prsadhuk,
Thank you for your review.
its done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @prsadhuk,
We need to add at least waitForIdle() before releasing the mouse button. Otherwise, the test will start failing again.
KR,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK..Can you please run the test with repeat count of atleast 50 on all platforms and share the result in JBS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @prsadhuk,
Linux is not stable with that one, while it is stable with my first proposed enhancement. Do you agree with rolling back to it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the mainline or in other update releases?
I dont see this test fail in mainline except once due to NPE while disposing..
If using slight delay in between mouseMove works well in all trains for multiple iterations then you can add that I presume..

@openjdk openjdk bot added rfr Pull request is ready for review and removed rfr Pull request is ready for review labels Aug 20, 2025
use InputEvent
@anass-baya anass-baya requested a review from prsadhuk August 25, 2025 10:49
@anass-baya anass-baya marked this pull request as draft August 26, 2025 03:58
@openjdk openjdk bot removed the rfr Pull request is ready for review label Aug 26, 2025
@anass-baya anass-baya marked this pull request as ready for review August 26, 2025 04:57
@openjdk openjdk bot added the rfr Pull request is ready for review label Aug 26, 2025
Copy link
Contributor

@TejeshR13 TejeshR13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import java.awt.event.MouseEvent; can be removed.

Copy link
Contributor

@TejeshR13 TejeshR13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are you concluding this as timing issue ? Since this issue is intermittent.

Copy link
Contributor

@DamonGuy DamonGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. I tested with and without and I haven't seen it occur yet but I can run larger amounts of reruns. I'm not 100% sold that this will fix the intermittent issue but I don't see an issue with the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client [email protected] rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

4 participants