-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update modularity tests based on Java 11 changes in SDK #196
Update modularity tests based on Java 11 changes in SDK #196
Conversation
This PR contains the following changes:
|
The PR has been tested here: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/465/tapResults/ Note: the two failing layers stress tests could e real issues. I've opened #197 to investigate them, they will be excluded from the playlist. |
Playlist changes to include modularity tests to jdk11 are contained here: adoptium/aqa-tests#703 |
openjdk.build/build.xml
Outdated
@@ -55,19 +51,13 @@ limitations under the License. | |||
<ant antfile="${source_root}/openjdk.test.serialization/build.xml" dir="${source_root}/openjdk.test.serialization" inheritAll="false"/> | |||
<ant antfile="${source_root}/openjdk.test.util/build.xml" dir="${source_root}/openjdk.test.util" inheritAll="false"/> | |||
<ant antfile="${source_root}/openjdk.test.jlm/build.xml" dir="${source_root}/openjdk.test.jlm" inheritAll="false"/> | |||
<ant antfile="${source_root}/openjdk.test.modularity/build.xml" dir="${source_root}/openjdk.test.modularity" inheritAll="false"/> |
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.
Will the source be built by any jdk version or build.xml has flag to do condition compiling?
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 catch! It should not be built for Java 8, it can be built for Java 9 and up. Need to add a check here. WIll update the PR.
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.
@sophia-guo - a check has been added.
Just to confirm that if excluded tests "upgrading an upgradale system/platform module" and CpMpJink test "use of --class-for-name" are excluded for all jdk versions? |
Modularity doesn't exist in Java 8. And I believe it is safe to not write and maintain complicated tests that are based on modules that do not exit in java 11 but only in Java 9 as Modularity had still been evolving during Java 9-- lots of things have been changed since (e.g. --class-for-name and some more of such options have been redesigned). |
Signed-off-by: Mesbah Alam <[email protected]>
1fa015c
to
9a011f7
Compare
Better to run a grinder with jdk8 before merging. |
@sophia-guo - agreed. Here's the grinder with JDK 8 - with a modularity test target - it builds successfully and runs nothing : https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/469/console |
Resolves #150
Signed-off-by: Mesbah Alam [email protected]