Skip to content
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

Added new MockitoTests SegmentationErrorTest #5133

Merged
merged 31 commits into from
Apr 18, 2024

Conversation

sophiaxu0424
Copy link
Contributor

@sophiaxu0424 sophiaxu0424 commented Mar 11, 2024

@sophiaxu0424 sophiaxu0424 force-pushed the issue5073 branch 3 times, most recently from d3ba8dc to ab2044f Compare March 11, 2024 20:57
@sophiaxu0424 sophiaxu0424 marked this pull request as ready for review March 11, 2024 21:31
Copy link
Contributor

@LongyuZhang LongyuZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Binary files should not be put in the PR.

Copy link
Contributor

@karianna karianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove .class files

@llxia
Copy link
Contributor

llxia commented Mar 11, 2024

All the tests are disabled. The above Grinder did not test anything.

Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • please remove pom.xml as we do not run maven
  • ideally, we only need one folder, not multiple ones. Please only include required java files under one src folder.
  • I am not sure maven_jar_plugin in Add build dependencies for Mockito testcase TKG#505 is needed
  • I do not see any testNG API being used in java file. I am not sure the purpose of using testNG in this case.
  • Test the PR in Grinder to ensure the test runs and passes with latest SDK, and fails with the old SDK (without fix)

@llxia
Copy link
Contributor

llxia commented Mar 11, 2024

Ideally, the folder structure should look like the following. We should not need anything extra.

  • MockitoTests
    • src
      • java package/ java file
    • build.xml
    • playlist.xml

@smlambert
Copy link
Contributor

It may also be useful to add a short README file in functional/MockitoTests directory, especially if the intention will be to add more Mockito-based testing into it (to give guidance on how to do so) or to say what the current test target is intended to test.

@sophiaxu0424 sophiaxu0424 force-pushed the issue5073 branch 2 times, most recently from 964f833 to 0e72efa Compare March 12, 2024 02:58
@karianna karianna requested review from llxia and LongyuZhang March 12, 2024 06:24
Copy link
Contributor

@karianna karianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks broadly OK but will leave to the experts to make a call on this one.

@llxia
Copy link
Contributor

llxia commented Mar 16, 2024

Move this back to draft until the above comments are addressed.

@llxia llxia marked this pull request as draft March 16, 2024 03:35
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
@karianna karianna self-requested a review April 10, 2024 20:28
Copy link
Contributor

@karianna karianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks broadly OK to me but would prefer two other reviewers closer to aqa-tests to review

@sophiaxu0424
Copy link
Contributor Author

sophiaxu0424 commented Apr 11, 2024

  • Since JDK11 passes, please check with dev if we should enable the test on JDK11.

    • Please run Grinder on wins. If this test applies to zOS, please also run Grinder. Thanks

Dev team has agreed to use 11

Tested on windows and zlinux
On s390x_linux customed sdk 17
Passed: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/39661/console

On windows- customed openj9 sdk 17
Passed: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/39668/

@llxia
Copy link
Contributor

llxia commented Apr 12, 2024

@sophiaxu0424 are you going to test on zOS? And we need also run test against hotspot.

@sophiaxu0424
Copy link
Contributor Author

sophiaxu0424 commented Apr 12, 2024

@sophiaxu0424 are you going to test on zOS? And we need also run test against hotspot.

Hi Lan,

On IBM ZOS platform - customed ibm idk 17
Failed: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/39771/consoleFull

Signed-off-by: sophiaxu0424 <[email protected]>
@llxia
Copy link
Contributor

llxia commented Apr 12, 2024

Please analyze the failure to ensure it is not a test setup issue. If everything is ok, then confirm with the dev team if the behavior is expected or not.

@sophiaxu0424
Copy link
Contributor Author

sophiaxu0424 commented Apr 12, 2024

Please analyze the failure to ensure it is not a test setup issue. If everything is ok, then confirm with the dev team if the behavior is expected or not.

Hi Lan, it is not an test setup failure, after talking with Babneet, and he suggested that we can exclude this test on ZOS and document it.

@llxia
Copy link
Contributor

llxia commented Apr 16, 2024

we can exclude this test on ZOS

Please update the PR to exclude the test on zOS.

@sophiaxu0424
Copy link
Contributor Author

@sophiaxu0424 are you going to test on zOS? And we need also run test against hotspot.

Hi Lan, build run on hotspot:
hotspot x86_linux java 17
Passed: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/39885/

<comment>Temporarily disabled on z/OS for now</comment>
<platform>.*zos.*</platform>
<impl>ibm</impl>
<version>11+</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove <version>11+</version> and <impl>ibm</impl>

@llxia
Copy link
Contributor

llxia commented Apr 17, 2024

For due diligence, please run the test against 11 and 21 hotspot.

Signed-off-by: sophiaxu0424 <[email protected]>
<testCaseName>MockitoMockTest</testCaseName>
<disables>
<disable>
<comment>Temporarily disabled on z/OS for now</comment>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have an issue for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ask the dev team for the issue. Otherwise, we have no way to track this temporary disable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asked Babneet, and he suggested me to open one issue under openj9/issue, and here's the link, I've added this info to our disable comment.
eclipse-openj9/openj9#19331

@sophiaxu0424
Copy link
Contributor Author

For due diligence, please run the test against 11 and 21 hotspot.
hotspot 11 passed: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/39896/rebuild/parameterized
hotspot 21 passed: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/39897/rebuild/parameterized

Signed-off-by: sophiaxu0424 <[email protected]>
Signed-off-by: sophiaxu0424 <[email protected]>
Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@llxia
Copy link
Contributor

llxia commented Apr 18, 2024

Since this PR is only one of the two tests, @sophiaxu0424 please change Fix issue: https://github.com/adoptium/aqa-tests/issues/5073 to related in the description.

@llxia
Copy link
Contributor

llxia commented Apr 18, 2024

Note:

Copy link
Contributor

@LongyuZhang LongyuZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants