-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make smoke tester script work on main branch (java 17) [LUCENE-10463] #11499
Comments
Tomoko Uchida (@mocobeta) (migrated from JIRA) Just to clarify, there are two "java version" - the target java version of the artifacts (this is fixed when build) and the runtime java version the script runs on (this can be changed by command-line arguments). |
Tomoko Uchida (@mocobeta) (migrated from JIRA) Would you share your thoughts on that, @dweiss - does it make sense to add a Gradle task that just outputs (to stdout or a temporary file) the target java version ( https://github.com/apache/lucene/blob/main/dev-tools/scripts/smokeTestRelease.py#L127 |
Dawid Weiss (@dweiss) (migrated from JIRA) There are a number of things that rely on the java version,Tomoko - when Adrien made a bump to Java 17 we kept discovering that "minimum bar" in various places of the code. Maybe it'd be good to try to cover all of those (or most of those) under one issue? As far as I understand - the smoke tester's reason to exist is to have an external, final validation of things. If w tie it to the build then that validation will no longer be independent. Speaking for myself, I think it's fine if we move this check to an integration test within distribution.tests but I recall some discussions asking for the script to be a separate validation check. |
Tomoko Uchida (@mocobeta) (migrated from JIRA) My issue description might not good or correct - I didn't mean to integrate the smoke tester checks into distribution tasks. I understand there could be risks that obscure the boundary between tests and the tested target. My intention was, the smoke tester could utilize Gradle to pick common environments or setup while it is still kept independent from the "distribution" related tasks.
As for this issue, as an easy fix, we can bump the java version by just updating all the literal "11" to "17" in the smoke tester script. I think there would be no harm to make the quick fix so that it works on main. |
Tomoko Uchida (@mocobeta) (migrated from JIRA) Or - from the extreme perspective - are there any substantial problems/concerns if we fully port the smoke tester to a set of Gradle tasks? (I am even not sure it's possible and/or we want to take time for it, just a thought experiment...) |
ASF subversion and git services (migrated from JIRA) Commit b6c1024 in lucene's branch refs/heads/main from Tomoko Uchida LUCENE-10463: increment java version to 17 in smoke tester (#748) |
The smoke tester script has been obsoleted on main after upgrading to Java 17. To enable nightly smoke tests on Jenkins for main, its target java version should be bumped to 17.
In addition to bump the java version, it looks it should be refactored not to hard-code target java version. I feel it'd be better to make it coordinate with the Gradle distribution task.
Migrated from LUCENE-10463 by Tomoko Uchida (@mocobeta), resolved Mar 15 2022
Pull requests: #748
The text was updated successfully, but these errors were encountered: