-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8307778: com/sun/jdi/cds tests fail with jtreg's Virtual test thread factory #19244
Conversation
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
@jaikiran 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 25 new commits pushed to the
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 |
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.
Looks good.
Thanks
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.
Looks good.
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.
Changes look good. I think the CR needs a better title. Something that mentions "Virtual". Also, it's not the "test factory" we are talking about here. It is the "test thread factory".
Thank you all for the reviews.
I have now updated the title of the JBS issue (and this PR) to "com/sun/jdi/cds tests fail with jtreg's Virtual test thread factory". No other changes have been done. I'll integrate this in a few hours from now. |
/integrate |
Going to push as commit fe8a2af.
Your commit was automatically rebased without conflicts. |
Can I please get a review of this change which removes the
test/jdk/com/sun/jdi/cds/
tests from being problem listed when jtreg launches these tests through a virtual thread?These tests aren't actually incompatible with virtual threads. The real issue is that in https://bugs.openjdk.org/browse/JDK-8305608, a test infrastructure class
test/jdk/com/sun/jdi/VMConnection.java
was changed to use thetest.class.path
system property instead of the previously usedtest.classes
.That change missed out updating the
test/jdk/com/sun/jdi/cds/
tests to pass along the classpath through thetest.class.path
system property. As a result these tests still use the oldtest.classes
system property to pass around the test classpath and thus causes these tests to fail. The reason why this only impacts virtual threads is noted by Chris in this JBS comment https://bugs.openjdk.org/browse/JDK-8305608?focusedId=14572100&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14572100.The commit in this PR updates the
CDSJDITest
to pass alongtest.class.path
instead oftest.classes
. TheCDSJDITest
is only used in the tests undertest/jdk/com/sun/jdi/cds/
, so nothing else should be impacted by this change.I ran these changes against both launching with platform thread as well as virtual thread and these tests now pass in both these cases.
Progress
Warning
8307778: com/sun/jdi/cds tests fail with jtreg's Virtual test thread factory
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19244/head:pull/19244
$ git checkout pull/19244
Update a local copy of the PR:
$ git checkout pull/19244
$ git pull https://git.openjdk.org/jdk.git pull/19244/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19244
View PR using the GUI difftool:
$ git pr show -t 19244
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19244.diff
Webrev
Link to Webrev Comment