Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!" #11425

Closed
wants to merge 4 commits into from

Conversation

alisenchung
Copy link
Contributor

@alisenchung alisenchung commented Nov 29, 2022

Test was run on mac, windows, linux 50 times and passed after change
Before fix, test fails about once every 50 runs on linux and windows platforms


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

Issue

  • JDK-8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!"

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 11425

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 29, 2022

👋 Welcome back achung! 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 openjdk bot added the rfr Pull request is ready for review label Nov 29, 2022
@openjdk
Copy link

openjdk bot commented Nov 29, 2022

@alisenchung 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.

@openjdk openjdk bot added the client client-libs-dev@openjdk.org label Nov 29, 2022
@mlbridge
Copy link

mlbridge bot commented Nov 29, 2022

Webrevs

@@ -55,7 +55,7 @@ public class DragWindowTest {
public static void main(String[] args) throws Exception {

Robot robot = new Robot();
robot.setAutoDelay(50);
robot.setAutoDelay(250);
Copy link
Contributor

@prsadhuk prsadhuk Nov 30, 2022

Choose a reason for hiding this comment

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

We normally do not need so much delay for test to work, 100ms being the norm which has sufficed for other tests.
Maybe you need to wait robot.delay after creating and showing the GUI which is not done here.
Also, this test has heavyweight and lightweight mix, for ex. MyDragWindow class uses JPanel but not in EDT which can result in some timing issue you are seeing, either it needs to be in EDT or can it be changed to AWT Panel as done elsewhere in the test?

ALso, please change the wildcards imports while you are at it..

Copy link
Contributor

Choose a reason for hiding this comment

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

JPanel question is still unanswered/unchanged...

Copy link
Member

@jayathirthrao jayathirthrao left a comment

Choose a reason for hiding this comment

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

This test was de-problemlisted recently under https://bugs.openjdk.org/browse/JDK-8023562 after running test 100 times in CI. And now with increased auto delay we are trying de-problemlist it again.

With increased auto delay test is passing in our CI on all platforms when ran for 100 times, but we need to refine this test as mentioned by @prsadhuk to add needed delay at appropriate places and remove mixture of lightweight & heavyweight parts.

@@ -81,6 +81,7 @@ public Point call() throws Exception {
robot.waitForIdle();

if (dragWindowMouseEnteredCount != 1) {
// System.out.println("dragWindowMouseEnteredCount " + dragWindowMouseEnteredCount);
Copy link
Member

Choose a reason for hiding this comment

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

We should remove this line or uncomment it(if needed as debug info for future failures)

Comment on lines +80 to 81
robot.delay(250);
robot.waitForIdle();
Copy link
Contributor

Choose a reason for hiding this comment

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

Not positive if it matters, but from what I've seen the delay usually comes after waitForIdle.

But I also ran the test and it seems to be OK.

@honkar-jdk
Copy link
Contributor

@alisenchung Was this an intermittent issue? If so it is better to run the entire test folder multiple times to catch any intermittent issue.

@alisenchung
Copy link
Contributor Author

After pulling newest changes test is failing again... looking into issue

Copy link
Contributor

@prsadhuk prsadhuk left a comment

Choose a reason for hiding this comment

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

I guess it's better to use setLocationRelativeTo() to position the frame to middle of screen too to make it more stable..

@openjdk
Copy link

openjdk bot commented Dec 13, 2022

@alisenchung This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!"

Reviewed-by: psadhukhan, dnguyen

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 150 new commits pushed to the master branch:

  • 8ff2928: 8297639: Remove preventive GCs in G1
  • 7241e35: 8298692: Fix typos in test/jdk/com/sun/jdi files
  • 736fcd4: 8296318: use-def assert: special case undetected loops nested in infinite loops
  • c05dbac: 8193547: Regression automated test '/open/test/jdk/java/awt/Toolkit/DesktopProperties/rfe4758438.java' fails
  • 0dce5b8: 8296610: java/net/HttpURLConnection/SetAuthenticator/HTTPSetAuthenticatorTest.java failed with "BindException: Address already in use: connect"
  • ed8a212: 8298376: ZGC: thaws stackChunk with stale oops
  • 2e801e1: 8298475: Remove JVM_ACC_PROMOTED_FLAGS
  • 9ee5037: 8298636: Fix return value in WB_CountAliveClasses and WB_GetSymbolRefcount
  • ceca4fc: 8298264: Merge OffsetTableContigSpace into TenuredSpace
  • d32d6c0: 8297791: update _max_classes in node type system
  • ... and 140 more: https://git.openjdk.org/jdk/compare/7d20a60a983e459ea1c4e843fbde70fb796c6249...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 13, 2022
@alisenchung
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Dec 14, 2022

Going to push as commit 0ed6d0b.
Since your change was applied there have been 162 commits pushed to the master branch:

  • a130c8a: Merge
  • 581f9f2: 8297235: ZGC: assert(regs[i] != regs[j]) failed: Multiple uses of register: rax
  • 0eeaf6b: 8298649: JFR: RemoteRecordingStream support for checkpoint event sizes beyond u4
  • 2791701: 8298296: gc/TestFullGCCount.java fails with "System.gc collections miscounted."
  • 0bbc418: 8294902: Undefined Behavior in C2 regalloc with null references
  • 9bcdfc4: 8298425: System.console().readLine() hangs in jshell
  • 27d4971: 8298520: C2: assert(found_opaque == res) failed: wrong pattern
  • 51f0a1c: 8298527: Cygwin's uname -m returns different string than before
  • 61ab16f: 8298700: Typo in DocTree comment
  • c6f22b4: 8297305: Clarify that javax.lang.model.util.Elements.overrides is irreflexive
  • ... and 152 more: https://git.openjdk.org/jdk/compare/7d20a60a983e459ea1c4e843fbde70fb796c6249...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 14, 2022
@openjdk openjdk bot closed this Dec 14, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 14, 2022
@openjdk
Copy link

openjdk bot commented Dec 14, 2022

@alisenchung Pushed as commit 0ed6d0b.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@dholmes-ora
Copy link
Member

@alisenchung this test continues to fail in our CI in tier4. I will file a new bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client client-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

6 participants