Default CI Java Version to Java 11, run tests on 8, 11, 14 (and attempt 17)
dblock opened this issue · 0 comments
dblock commented
In the documentation we say:
We recommend Java 11 (LTS), but OpenSearch also works with Java 8.
OpenSearch 1.0, 1.1 and 1.2 have used Java 14, which is not an LTS release. Because of this:
- OpenSearch has lowered the JDK to 11 in opensearch-project/OpenSearch#940 and version 1.3.0 will package JDK 11 as a runtime via opensearch-project/OpenSearch#2301.
- The build/distribution pipeline has lowered the JDK to 11 for 1.3.0 in opensearch-project/opensearch-build#981.
Plugins need to do the same for 1.3.0.
- Change the default Java version for CI in GitHub actions from 14/15 to 11 (LTS) and ensure
🟢 . - Try adding Java 8, 14 (used before), and 17 (next LTS) to the CI matrix.
Open issues for any that don't work.
e.g. opensearch-project/common-utils#121
e.g. opensearch-project/job-scheduler#130 - Document Java versions in DEVELOPER_GUIDE.md for your project (copy/subset of OpenSearch).
Looking at 1.3.0:
Originally 1.3.0 was supposed to GA with JDK 17, but we ran into a number of issues:
- opensearch-project/security#1653
- opensearch-project/OpenSearch#2298
- opensearch-project/OpenSearch#2299
- opensearch-project/performance-analyzer#144
For 2.0 we will remove support for Java 8, fix the above issues, upgrade to Gradle 7, and bundle JDK 17, which is #110.
OpenSearch
- opensearch-project/OpenSearch#2395
- opensearch-project/common-utils#100
opensearch-project/common-utils#121
Plugins
- opensearch-project/cross-cluster-replication#254
- opensearch-project/alerting#242
- opensearch-project/anomaly-detection#320
- opensearch-project/asynchronous-search#66
- opensearch-project/dashboards-reports#230
- opensearch-project/index-management#200
- opensearch-project/job-scheduler#103
opensearch-project/job-scheduler#130 - opensearch-project/k-NN#220
- opensearch-project/performance-analyzer#91
- opensearch-project/security-dashboards-plugin#862
- opensearch-project/security#1502
- opensearch-project/sql#288
- opensearch-project/observability#260