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

8233648: [TESTBUG] DefaultMenuBarTest.java failing on macos #6015

Closed
wants to merge 4 commits into from

Conversation

azvegint
Copy link
Member

@azvegint azvegint commented Oct 19, 2021

Looks like this test does not fail anymore.

It does not fail once even without changes, but I've added extra waitForIdle() just for safety.

Checked on ~350 test runs.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8233648: [TESTBUG] DefaultMenuBarTest.java failing on macos

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6015/head:pull/6015
$ git checkout pull/6015

Update a local copy of the PR:
$ git checkout pull/6015
$ git pull https://git.openjdk.java.net/jdk pull/6015/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 6015

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6015.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 19, 2021

👋 Welcome back azvegint! 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 Oct 19, 2021
@openjdk
Copy link

openjdk bot commented Oct 19, 2021

@azvegint 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 Oct 19, 2021
@mlbridge
Copy link

mlbridge bot commented Oct 19, 2021

Webrevs

@openjdk
Copy link

openjdk bot commented Oct 19, 2021

@azvegint 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:

8233648: [TESTBUG] DefaultMenuBarTest.java failing on macos

Reviewed-by: pbansal, serb, psadhukhan, prr

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 46 new commits pushed to the master branch:

  • a91a0a5: 8233724: Remove -Wc++14-compat warning suppression in operator_new.cpp
  • 1271fbf: 8248584: Enable CHECK_UNHANDLED_OOPS for Windows fastdebug builds
  • 135cf3c: 8275439: Remove PrintVtableStats
  • 50a5723: 8274910: Compile in G1 evacuation failure injection code based on define
  • 5454a76: 8275273: Add missing HtmlStyle documentation
  • bd0bed7: 8273317: crash in cmovP_cmpP_zero_zeroNode::bottom_type()
  • 77b2789: 7124287: [macosx] JTableHeader doesn't get focus after pressing F8 key
  • c24fb85: 8275512: Upgrade required version of jtreg to 6.1
  • 926966b: 8275003: Suppress warnings on non-serializable non-transient instance fields in windows mscapi
  • e63c148: 8264849: Add KW and KWP support to PKCS11 provider
  • ... and 36 more: https://git.openjdk.java.net/jdk/compare/98ab4b03b311dcd8374cbbb21a898298798750d6...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 Oct 19, 2021
@prsadhuk
Copy link
Contributor

I guess you can remove @modules sun.awt which is not needed anymore..
Also, since you are touching the test, you probably can replace wildcard imports and remove author tag.
Additionally, i believe we should throw exception instead of catching and only print stacktrace at end of file.

@azvegint
Copy link
Member Author

azvegint commented Oct 19, 2021

I guess you can remove @modules sun.awt which is not needed anymore.. Also, since you are touching the test, you probably can replace wildcard imports and remove author tag. Additionally, i believe we should throw exception instead of catching and only print stacktrace at end of file.

updated, testing still green.

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.

One more thing..since you are setting apple.laf.useScreenMenuBar property, wouldn't it be prudent to run the test in main/othervm mode explicitly?

Copy link
Contributor

@prrace prrace left a comment

Choose a reason for hiding this comment

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

One for the monitor list.
Could you add this bug ID to the @bug list - so it can be found more easily in case of recurrence ?

@mrserb
Copy link
Member

mrserb commented Oct 20, 2021

All tests for java client should be configured to be run, it is done via othervm.dirs option in the TEST.ROOT

@prsadhuk
Copy link
Contributor

It is run in othervm mode for java/awt/Window/MainKeyWindowTest/TestMainKeyWindow.java
java/awt/MenuBar/DefaultMenuBarDispose.java, java/awt/MenuBar/TestNoScreenMenuBar.java
setting the same property so I asked.
I know all jtreg tests are run in othervm mode but, in last few weeks, couple of tests have set othervm mode explicitly to be more safe PR of which was approved.

@azvegint
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Oct 20, 2021

Going to push as commit 46b5bfb.
Since your change was applied there have been 50 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Oct 20, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Oct 20, 2021
@openjdk
Copy link

openjdk bot commented Oct 20, 2021

@azvegint Pushed as commit 46b5bfb.

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

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
5 participants