-
Notifications
You must be signed in to change notification settings - Fork 82
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
7903931: Add "test.thread.factory" property to filter tests based on test thread factory value #242
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back lmesnik! A progress list of the required criteria for merging this PR into |
@lmesnik 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 4 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@sormuras, @irisclark) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
The namespace Is |
I think |
For the long term, clarity is better than cryptic brevity. |
What about re-using the
|
I'm fine with using test namespace.
It is the name of property used by test to check thread factory inside of test. |
We have a winner! |
@@ -101,6 +101,11 @@ static RegressionContext getDefault() { | |||
values.put("os.maxMemory", String.valueOf(os.maxMemory)); | |||
values.put("os.maxSwap", String.valueOf(os.maxSwap)); | |||
|
|||
String testThreadFactory = (params == null || params.getTestThreadFactory() == null) | |||
? "null" |
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.
Having null
as the value for "no test thread factory available" is right choice regarding easier handling on the use-site?
Or would skipping the values.put()
call be a better default? 🤔
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.
I haven't checked but it should be considered as a "invalid name" if we don't put any value.
Also, want to be consistent with other properties, that just have some default value, often "null".
jtreg support test thread factory parameter that allows to execute tests by running main in virtual thread.
Currently, all incompatible tests are problemlisted. However after security manager removal the number of such tests is small.
So is it makes sense to add "jtreg.ttf" property to filter tests based on test thread factory value to allow filter out incompatible tests.
The only jtreg knows if -testThreadFactory is set so it should set corresponding property
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jtreg.git pull/242/head:pull/242
$ git checkout pull/242
Update a local copy of the PR:
$ git checkout pull/242
$ git pull https://git.openjdk.org/jtreg.git pull/242/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 242
View PR using the GUI difftool:
$ git pr show -t 242
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jtreg/pull/242.diff
Using Webrev
Link to Webrev Comment