-
Notifications
You must be signed in to change notification settings - Fork 65
7903671: jcstress: Update buffer tests for JDK-8318966 #159
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back jvanek! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
I made a much more deeper look, and consulted with Aph and Thomas, and it seems that for jdk 23 and up, the correct replacement are direct buffers - which - feel free to correct me - are well covered in jcstress, Thus the buffer tests should be conditionally excluded, as here, or removed. |
|
@judovana This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
I still have faith! |
|
@judovana This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
loosing faith:( |
|
../live.. |
shipilev
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.
Finally have time to look at this.
No, we are not going to hard-code test names in generic harness code. The common way to "skip" the test that are incompatible with some JDKs is to record them as "soft errors", which make them skipped. This is what CODETOOLS-7903695 did, and it is supposed to be enough.
I think status quo with soft-failing alignment 8 tests, while inconvenient, is what we want. JDK 21 should be testing the heap buffers with strong alignment constraints. If anything, we should be looking whether to update the heap tests to also include alignment 1.
|
hi! Thanx a lot for eyball! If this should be the way, that I would rather run it with Sorry to say that, but I have doubts that the ByteBuffer tests are handled as soft errors. If that would be the case I think I would not bother with PR. "api mismatch" would be good enough. But as you know much better, I will try and elaborate. If they are not returning |
|
To emphasize, my point is that |
|
Ack. Wdyt about keeping the java version check, and on newer jdks set it to 1 then? |
Maybe, but likely not. I could see how JDK-specific test behavior would be confusing: you run seemingly the same test on different JDKs, but you actually run different tests? Bisecting for regressions would get extra fun. So, I would like all JDK versions attempt to run all the tests, and gracefully fail out some of them. So older JDKs would test both |
|
You mean " So older JDKs would test both alignment(1) and alignment(8). Newer JDKs only run alignment(1) tests." right? Well that make sense to me. |
|
Yes. We strive to test everything that users would likely end up using. |
|
@judovana Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
Ok. you are right. They are just api-mishmash, so soft errors, so ignored. Not sure when I run it last so it was so intrusive it led me to create and elaborate on CODETOOLS-7903671. That sounds like this PR is indeed no go. I'm tempted to add the |
|
faith restored |
|
@judovana This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
Is there hope? |
|
@judovana This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
Loosing the faith... |
|
@judovana This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
Loosing the faith... |
|
@judovana This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
keep_alive |
They ar eno longer apimishmases: Not sure whats wrong here, and why I had ever seen api-mishmash.... Can not see it with jdk25
Will go by this way now. |
part 1: Detecting jdk of target VM and exuding illegible tests
This is prequel to full fixing of CODETOOLS-7903671. This PR detects target JDK version and then disables illegible tests.
part 2 will be done in templates of affected tests and logic around generating the classes from them. In meantime this should server.
The jdk detection will be most likely used anyway. WDYT? If we agree on similar approach, I will create a new bug for this PR only.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jcstress.git pull/159/head:pull/159$ git checkout pull/159Update a local copy of the PR:
$ git checkout pull/159$ git pull https://git.openjdk.org/jcstress.git pull/159/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 159View PR using the GUI difftool:
$ git pr show -t 159Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jcstress/pull/159.diff
Using Webrev
Link to Webrev Comment