-
-
Notifications
You must be signed in to change notification settings - Fork 100
Made JTREG_JAR declared once #688
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
CUSTOM_JTREG_JAR=false | ||
JTREG_JAR=$(TEST_RESROOT)$(D)jtreg$(D)lib$(D)jtreg.jar | ||
endif | ||
|
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 https://github.com/adoptium/aqa-tests/blob/12b61e0d12e477077d8a5ccfb250329d00b47cc1/openjdk/openjdk.mk may be better place, but am not sure
We need a clear description of the problem that this PR is trying to resolve so we can suggest the best way to solve the problem. If we are to support swapping in a custom jtreg.jar, we need to consider how to track and report what is being installed and used in test pipelines. In the feature request, listing the details of where jtreg.jar is pulled in and declared will be necessary. I am only aware of it being pulled in as a testDependency via TKG, and also somewhat silently from the rh-openjdk wrapper scripts, which is one of the reasons using those wrapper scripts is not preferred. |
Hi! Thanx for reply!
We failed to upstream the fast/slow debug extension point to jtregs: openjdk/jtreg#235 (comment) It will take years (if ever) before I or @jandrlik/@andrlos will get back to it with second attempt. If the upstream jtreg jar will be missing the crash detection and propagation for next few years, and I want to use aqa-test for slow/fastdebug testing, then I need custom jtreg.jar. Currently I have to sed all that lines as in adoptium/aqa-tests#6125
I would love to do that. And already before this PR, i was trying to look where and how. But all the dependence checks seems to run before - including jtreg version selector. If you have any pointers where to look or what to enhance, would be awesome. One internal view to myslef - I believe that any dependence should be replaceable without hacking and together with that, I'm really happy how aqa-tests/tkg and comp. are keeping the versions clear and pure. So you can see, I do not have it easy with myself...
But that was not broken, right?
Please, no. After the chat we had, I had reworked it all and it is strictly honouring what aqa-tests gives. Only I kept the ability to overwrite it if it is necessary, exactly for cases like this one. I have definitely understood and signed under purity of clear dependences fully in aqa-tests/tkg control, and am not going to intentionally break that. That also remained me, that some parts are using something like |
Yah, that support needs small rework of this PR. but afaik it is mandatory (if it ever can go in somehow) |
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.
Adding some review comments now, is not a full review at this time, since I also want to consider whether we should also do as we do for pulling in official releases of testDependencies, verify the checksum / track SHAs etc.
The path to jtreg.jar is decalred on several places in aqa-tests. This PR is declaring it once, and is allowing it tto be reused. It is honouring the user declaration, if any