-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8344833: CTW: Make failing on zero classes optional #22320
8344833: CTW: Make failing on zero classes optional #22320
Conversation
👋 Welcome back enikitin! A progress list of the required criteria for merging this PR into |
@lepestock 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 446 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. 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 (@TobiHartmann, @vnkozlov) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@lepestock The following label will be automatically applied to this pull request:
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. |
Webrevs
|
test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/CtwRunner.java
Outdated
Show resolved
Hide resolved
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.
What is default value of allow_zero_class_count
and where it is set?
Why you even need this to be controlled and not default behavior? What is benefit of having error vs warning for empty jar
?
Should you check totalClassCount
too to catch empty jar
? As I see classCount
could be 0 if specified classStart
and classStop
as the same which could happened regardless number of classes in jar
file.
…twRunner.java Fix comment Co-authored-by: Tobias Hartmann <tobias.hartmann@oracle.com>
It's False, as per Boolean.getBoolean(...) specification
For mass-running of CTW against unchecked/random jars from various jar repositories, like Maven Central. Another solution would be filtering out such jars in advance, but that's a more difficult (read the jar file, check the class' count, etc.) solution.
I've missed it. You're right, relying on |
So for our normal testing it will be still error? Okay. |
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.
Good.
/integrate |
@lepestock |
I leave to @TobiHartmann to finish his review and sponsor if approved. |
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.
/sponsor |
Going to push as commit 0e2a285.
Your commit was automatically rebased without conflicts. |
@TobiHartmann @lepestock Pushed as commit 0e2a285. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
For CTW, zero classes in provided jar is now a failure.
This creates noisy and blocking false positives in fuzzy/mass scale runs, where we use jar archives from random sources, unchecked or randomly generated, etc.
This PR makes this behaviour controllable. Default reaction is a failure, like before.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22320/head:pull/22320
$ git checkout pull/22320
Update a local copy of the PR:
$ git checkout pull/22320
$ git pull https://git.openjdk.org/jdk.git pull/22320/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22320
View PR using the GUI difftool:
$ git pr show -t 22320
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22320.diff
Using Webrev
Link to Webrev Comment