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

Expand j9vmemtest on Z/OS #8791

Closed
wants to merge 1 commit into from

Conversation

AlenBadel
Copy link
Contributor

Expanding the current tests to add cases where J9PORT_VMEM_PAGE_FLAG_PREFER_PAGEABLE may be used.

Signed-off-by: AlenBadel [email protected]

Expanding the current tests to test for cases where J9PORT_VMEM_PAGE_FLAG_PREFER_PAGEABLE may be used.

Signed-off-by: AlenBadel <[email protected]>
@AlenBadel
Copy link
Contributor Author

FYI @gita-omr @babsingh @dmitripivkine

@gita-omr
Copy link
Contributor

gita-omr commented Mar 9, 2020

The change seems to be matching the design in #8671 (comment).

@gita-omr
Copy link
Contributor

gita-omr commented Mar 9, 2020

Somehow could not assign @babsingh as a reviewer but could you please review?

@pshipton
Copy link
Member

pshipton commented Mar 9, 2020

Only committers can be assigned as reviewers or as Assignees. After a non-committer adds a comment to a PR, they can be added as Assignee, not sure if they can be assigned a review. They can however approve a review.

@fjeremic
Copy link
Contributor

What is the difference between this PR and eclipse-omr/omr#4918? Seems to be a lot of duplication here.

@AlenBadel
Copy link
Contributor Author

What is the difference between this PR and eclipse/omr#4918? Seems to be a lot of duplication here.

There's always been duplication in omrvmemtest/j9vmemtest.
Unless there exists a good reason, I don't see why j9vmemtest is needed. Internal sanity currently uses pltest, but that can be removed since omrporttest is also used during omr sanity testing.

@pshipton
Copy link
Member

Unless there exists a good reason, I don't see why j9vmemtest is needed. Internal sanity currently uses pltest, but that can be removed since omrporttest is also used during omr sanity testing.

@smlambert any thoughts on this?

@DanHeidinga
Copy link
Member

Internal sanity currently uses pltest, but that can be removed since omrporttest is also used during omr sanity testing.

The phrase "Internal sanity currently ..." is concerning. This project cannot depend on IBM's internal testing.

@AlenBadel
Copy link
Contributor Author

Internal sanity currently uses pltest, but that can be removed since omrporttest is also used during omr sanity testing.

The phrase "Internal sanity currently ..." is concerning. This project cannot depend on IBM's internal testing.

Agreed. It's not a justification, just curious on what the rationale was.

@pshipton
Copy link
Member

OpenJ9 pltest runs in the sanity.functional suite.

@babsingh
Copy link
Contributor

babsingh commented Mar 10, 2020

it may require effort: pltest can directly use the OMR test code instead of duplicating code, in the future. OR OpenJ9 sanity.functional can run OMR tests in their builds, which will allow us to remove the duplicate pltest code.

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

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

j9vmemTest is very old, and it doesn't follow the newest coding standards: https://github.com/eclipse/omr/blob/master/doc/CodingStandard.md. It will be tiresome to modernize the entire j9vmemTest. At least, the new code should follow the newest coding standards, and the updated function(s) should be modernized to follow the newest coding standard.

The same review also applies to eclipse-omr/omr#4918.

Functionally, the test cases look fine to me.

@AlenBadel I don't review on a regular basis. If you disagree with any of my feedback, please request a second opinion from a senior reviewer (committer). After addressing my feedback, please contact a committer for a final review, launching PR builds and merging.

OpenJ9 committers: @DanHeidinga @pshipton
OMR committers (for eclipse-omr/omr#4918): @youngar @rwy0717

runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
runtime/tests/port/j9vmemTest.c Show resolved Hide resolved
@AlenBadel
Copy link
Contributor Author

it may require effort: pltest can directly use the OMR test code instead of duplicating code, in the future. OR OpenJ9 sanity.functional can run OMR tests in their builds, which will allow us to remove the duplicate pltest code.

@pshipton
@babsingh

I suggest that we create an issue to investigate removing the redundant parts of pltest, and if it's completely redundant then replacing it with omrporttest. I also suggest that these test cases be added to OMR, and not OpenJ9.

@pshipton
Copy link
Member

I suggest that we create an issue to investigate removing the redundant parts of pltest, and if it's completely redundant then replacing it with omrporttest. I also suggest that these test cases be added to OMR, and not OpenJ9.

yes, this makes sense. I'm not sure why we have "duplicate" tests.

@smlambert
Copy link
Contributor

In reply to #8791 (comment) and the befuddling question of why there are duplicate tests, short answer is dev team would not delete them. Long answer, one has to go back in history, to when a bunch of test material was prepped and pushed into the omr project, including pltest -> porttest.

At that time, it was suggested that the internal pltest be removed, but for each of the attempts to remove it there was something blocking their full removal (see Sept 2015 RTC 100752 work item for details), but the last note was citing the fact that there was not full spec coverage in OMR, so the dev team decided these tests could not be removed from the jvm component.

I am glad that the request to remove the duplicate tests may finally happen.

@DanHeidinga
Copy link
Member

DanHeidinga commented Mar 11, 2020

I'm onboard with deleting duplicate tests provided that we're still running the tests (omr version or openj9 version) in the OpenJ9 build. I don't want to rely on the test having run at OMR as it may run on different machine configurations, with different compilers, etc.

@AlenBadel
Copy link
Contributor Author

I've went ahead and created the issue to have these portests removed on OpenJ9.
#8876

I'll be closing this PR, and these changes will go into OMR instead.

@AlenBadel AlenBadel closed this Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants