-
Notifications
You must be signed in to change notification settings - Fork 738
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
Add tests for Math max and min #2973
Conversation
17bda09
to
9f478df
Compare
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.
@dhong44 I think we'll need to modify playlist.xml or testing.xml to add some JIT options to these tests. I want to make sure they are deterministic, i.e. with count=1,disableAsyncCompilation
on the test classes so that we make sure we JIT compile and run the tests correctly.
28db887
to
a486aa2
Compare
@fjeremic I've updated the tests as you recommended in #2973 (review). Have also confirmed that these tests do expose corner cases such as the one patched in eclipse-omr/omr#2967 (comment). This is now ready for review. |
@@ -25,7 +25,7 @@ | |||
import org.testng.annotations.Test; | |||
import org.testng.Assert; | |||
|
|||
@Test(groups = { "level.sanity" }) | |||
@Test(groups = { "level.sanity" }, invocationCount = 10) |
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.
Do we need 10 invocations with count=1
? Shouldn't 2 do just fine and cut down on test execution time?
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.
2e5aa80
<test> | ||
<testCaseName>JCL_TEST_MathMethods</testCaseName> | ||
<variations> | ||
<variation>-Xjit:count=1,disableAsyncCompilation</variation> |
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.
Could we perhaps limit down to the Test_Math class? This is unnecessarily going to synchronously compile several hundred methods before we ever get to executing the tests which will slow down all the other testing.
i.e.
-Xjit:disableAsyncCompilation,{*Test_Math*}(count=1)
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.
a7cc1a9
@@ -0,0 +1,68 @@ | |||
package org.openj9.test.java.lang; |
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.
Can we move this below the copyright to stay consistent with the other files in the codebase?
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 tests in this folder did not follow a consistent formatting, in 088b765 all have been changed to follow the formatting in https://github.com/eclipse/openj9/blob/088b765f32c38597096ad0f626e099cd865edeaf/test/functional/Java11andUp/src/org/openj9/test/nestmate/NestmateTest.java#L1-L29
Formatting being, copyright at the beginning of the file with no empty lines, followed package declaration, an empty line and then import statements.
Jenkins test sanity xlinux,zlinux JDK8,JDK11 |
import org.testng.annotations.BeforeMethod; | ||
import org.testng.AssertJUnit; | ||
|
||
package org.openj9.test.java.lang; |
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.
@dhong44 some test failures because of this. The package
is already defined. Looks like a copy/paste error. Can you make the appropriate fixes and I'll relaunch the builds.
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.
1a2c592
Jenkins test sanity xlinux,zlinux JDK8,JDK11 |
Jenkins line endings check |
@dhong44 some issues with the builds:
Can you please take a look? Might want to try running in a Docker image to see what is wrong and get it working. |
Seems like it was a problem with the parentheses in the variation options from a7cc1a9, fixed in |
@dhong44 can we use single quotes to avoid having to escape anything (now and in the future). Here is an example: |
0a98d62
to
711c5ee
Compare
Add tests for Math max and min. Signed-off-by: Daniel Hong <daniel.hong@live.com>
711c5ee
to
9cd678b
Compare
I've changed the command line options to use single quotes. Since the changes have already |
Jenkins test sanity xlinux,zlinux JDK8,JDK11 |
Add tests for Math max and min.
Signed-off-by: Daniel Hong daniel.hong@live.com