Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

judovana
Copy link
Contributor

@judovana judovana commented Apr 1, 2025

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

CUSTOM_JTREG_JAR=false
JTREG_JAR=$(TEST_RESROOT)$(D)jtreg$(D)lib$(D)jtreg.jar
endif

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smlambert
Copy link
Contributor

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.

@judovana
Copy link
Contributor Author

judovana commented Apr 3, 2025

Hi! Thanx for reply!

We need a clear description of the problem that this PR is trying to resolve so we can suggest the best way to solve

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

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.

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.
The only idea I had was t run some SHA and java -jar jtreg.jar --version in/after that ifdef in this PR.
I dropped it, as I come to conclusion, that actually nothing is touching that, and the only touch would be strictly intentional.

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...

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

But that was not broken, right?

also somewhat silently from the rh-openjdk wrapper scripts, which is one of the reasons using those wrapper scripts is not preferred.

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 "$(TEST_RESROOT)$(D)jtreg" That should probably be handled in this PR too.

@judovana
Copy link
Contributor Author

judovana commented Apr 3, 2025

That also remained me, that some parts are using something like "$(TEST_RESROOT)$(D)jtreg" That should probably be handled in this PR too.

Yah, that support needs small rework of this PR. but afaik it is mandatory (if it ever can go in somehow)

Copy link
Contributor

@smlambert smlambert left a 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.

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.

2 participants