-
Notifications
You must be signed in to change notification settings - Fork 5.9k
8357165: test java/lang/invoke/ClassValueTest.java fails intermittently #25292
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
Conversation
👋 Welcome back liach! A progress list of the required criteria for merging this PR into |
@liach 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:
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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
Hello Chen, in general for tests like these we don't use any explicit timeout value for waiting on certain condition. It's based on our past experiences in the CI and various other test runtime environments where no timeout value is a "right" timeout and can cause intermittent timeouts like here. In this test, I think we should just switch to using |
I still wish to keep these explicit timeouts - they can be fiddled around for debugging when something stalls after a ClassValue change. In comparison, the argless variants are much harder to tweak and/or debug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update to increase the timeout to 1 minute * timeout factor, looks good to me.
I'm not too familiar with the bug that's requiring the testWeakAgainstClassValue()
method to be updated, but if that helps with the test failures then it seems reasonable to fix it.
The failing tier 1 tests on GitHub are gc ones. Thanks for the reviews! I think we are good to go. |
/integrate |
Going to push as commit 12efc1f.
Your commit was automatically rebased without conflicts. |
The test was originally written with product builds in mind; it didn't consider the slowness of debug builds, thus causing tests to fail.
Also there was a bug in testWeakAgainstClassValue: the test need to flush the backing map in the class to have the weak value removed. It is fixed in this patch as well.
Testing: ClassValueTest repeated 10 times on windows-x64/linux-x64/macosx-aarch64/linux-aarch64 fastdebug.
Progress
Warning
8357165: test java/lang/invoke/ClassValueTest.java fails intermittently
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25292/head:pull/25292
$ git checkout pull/25292
Update a local copy of the PR:
$ git checkout pull/25292
$ git pull https://git.openjdk.org/jdk.git pull/25292/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25292
View PR using the GUI difftool:
$ git pr show -t 25292
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25292.diff
Using Webrev
Link to Webrev Comment