-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8351851: Update PmemTest to run on AMD64 #24416
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
8351851: Update PmemTest to run on AMD64 #24416
Conversation
|
👋 Welcome back isipka! A progress list of the required criteria for merging this PR into |
|
@frkator 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 275 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 (@adinn) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
|
Update the copy right year. |
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.
I'm not sure if this change is correct. The original directive was ignored and replaced with an x86_64-only directive because of automated testing concerns documented in PR 12352. If this change is happening because those automated test restrictions no longer apply for all three of amd64 (by which I mean not intel x86_64) aarch64 and ppc then reverting to the ignored directive would be fine. If the only change is that automated testing on amd64 now works as well as x86_64 then I would recommend modifying the first directive and keeping the ignored directive as the latter helps to clarify to general users how non-automated testing can be performed on aarch64 and ppc.
|
It would be preferable if we retained the current test structure and swap Change 80 /* @test To the preferred change i.e. to swap the x86_64 and amd64 and to use 80 /* @test 91 * @requires ((os.arch == “x86_64”)|(os.arch == "aarch64")|(os.arch == "ppc64le")) |
When I wrote my previous comment I was under the impression that it appears to me that these two |
just to clarify that both instances of @test are manual and that current test environments are os.arch == "amd64", which based on the default os.arch == "x86_64" meant the test was not run. As such, the purpose of the ticket is to make the default case "amd64" |
Thanks for the details above. Currently the main linux execution platforms are returning "amd64" for the OS arch, and that is not picked up by the current @requires (os.arch == "x86_64") It was observed that there might be a separate issue for jtreg on the @requires and |
|
@msheppar Thanks for clarifying what is at stake here. I am afraid don't know enough about the mechanics of the test infrastructure to explain why it is working the way you describe. However, given what you have observed I agree with your suggestion above that the right solution is to keep the two test declarations but switch "amd64" for "x86_64" and vice versa. That should make the tests work on amd64 CPUs while leaving it clear how anyone wanting to test on an alternative CPU would need to modify the test. I'll be happy to review the PR if it includes that change. |
|
@adinn thank you for pointing out the additional relevant tests, the @msheppar the issue on @requires directive consistency was suspected until the following observation was made on a machine with Intel Core i9 CPU (which is clearly x86_64 ISA) : To the best of my understanding the jtreg @requires directive is based on platform-dependent Furthermore, Oracle JDK releases for Linux list only Based on these facts (the architecture test and the releases) it is reasonable to conclude that Hence, in the general case any test that depends on the architecture should list If we are aiming specifically for mentioned test enviroment it can be In the case we want to proceed with two test cases - I suggest to introduce human readable ids (jtreg @test id tag) so that we dont see automatically assigned Please advise. |
…oving @ignores directive and adding test ids
|
changes:
and split to two test cases:
local test shows that requires directive resolves properly as well as the test id is applied |
|
|
/integrate |
|
@frkator This pull request has not yet been marked as ready for integration. |
adinn
left a comment
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.
Ok,that looks like a good solution
|
@frkator Try to integrate again and I will sponsor. |
|
/integrate |
|
/sponsor |
|
Going to push as commit 0feecb7.
Your commit was automatically rebased without conflicts. |
Remove default OS platform linux x86_64, remove @ignores allowing amd64 as a viable OS platform selection
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24416/head:pull/24416$ git checkout pull/24416Update a local copy of the PR:
$ git checkout pull/24416$ git pull https://git.openjdk.org/jdk.git pull/24416/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24416View PR using the GUI difftool:
$ git pr show -t 24416Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24416.diff
Using Webrev
Link to Webrev Comment