Skip to content
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

Migrate master to 2.18.0.0 #13

Merged
merged 9 commits into from
Nov 21, 2024
Merged

Conversation

AlexRuiz7
Copy link
Member

Description

This PR migrates master to OpenSearch 2.18.0.

Issues Resolved

Closes #12

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

AlexRuiz7 and others added 9 commits November 15, 2024 17:49
* Migrate from #2

* Rename plugin
* Migrate from #2

* Rename plugin

* Fix path

---------

Signed-off-by: Álex Ruiz <[email protected]>
* List artifacts folder

* Fix revision in Gradle
* Apply POC email notification

* Roll back changes to IDEs config files

* Roll back changes to IDEs config files

* Refactor

---------

Co-authored-by: Alex Ruiz <[email protected]>
* Fix invalid cast from SecureIndexClient to NodeClient

* Add labels to issue templates
* Format files

* Update CI workflow
@AlexRuiz7 AlexRuiz7 self-assigned this Nov 15, 2024
@AlexRuiz7 AlexRuiz7 linked an issue Nov 15, 2024 that may be closed by this pull request
1 task
@AlexRuiz7
Copy link
Member Author

@alex-MS-7D25 ➜ wazuh-indexer-reporting git:(migrate-master-to-2.18.0.0) ./gradlew check
Downloading https://services.gradle.org/distributions/gradle-8.5-all.zip
....................10%.....................20%.....................30%.....................40%.....................50%.....................60%....................70%.....................80%.....................90%.....................100%

Welcome to Gradle 8.5!

Here are the highlights of this release:
 - Support for running on Java 21
 - Faster first use with Kotlin DSL
 - Improved error and warning messages

For more details see https://docs.gradle.org/8.5/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 8.5
  OS Info               : Linux 6.8.0-48-generic (amd64)
  JDK Version           : 21 (Eclipse Temurin JDK)
  JAVA_HOME             : /usr/lib/jvm/temurin-21-jdk-amd64
  Random Testing Seed   : 497A1641180353FB
  In FIPS 140 mode      : false
=======================================

> Task :compileKotlin
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/main/kotlin/org/opensearch/reportsscheduler/index/ReportDefinitionsIndex.kt:68:18 'mapping(String!, XContentType!): CreateIndexRequest!' is deprecated. Deprecated in Java
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/main/kotlin/org/opensearch/reportsscheduler/index/ReportDefinitionsIndex.kt:69:18 'settings(String!, XContentType!): CreateIndexRequest!' is deprecated. Deprecated in Java
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/main/kotlin/org/opensearch/reportsscheduler/index/ReportInstancesIndex.kt:68:18 'mapping(String!, XContentType!): CreateIndexRequest!' is deprecated. Deprecated in Java
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/main/kotlin/org/opensearch/reportsscheduler/index/ReportInstancesIndex.kt:69:18 'settings(String!, XContentType!): CreateIndexRequest!' is deprecated. Deprecated in Java
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/main/kotlin/org/opensearch/reportsscheduler/security/SecurityAccess.kt:9:22 'AccessController' is deprecated. Deprecated in Java
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/main/kotlin/org/opensearch/reportsscheduler/security/SecurityAccess.kt:26:13 'AccessController' is deprecated. Deprecated in Java

> Task :forbiddenApisMain
Forbidden method invocation: org.opensearch.common.io.PathUtils#get(java.lang.String, java.lang.String[]) [Don't try reading from paths that are not configured in Environment, resolve from Environment instead]
  in org.opensearch.reportsscheduler.settings.PluginSettings (PluginSettings.kt:98)

> Task :compileTestKotlin
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/test/kotlin/org/opensearch/reportsscheduler/model/GetAllReportDefinitionsRequestTests.kt:9:24 'Assert' is deprecated. Deprecated in Java
w: file:///home/alex/wazuh/wazuh-indexer-reporting/src/test/kotlin/org/opensearch/reportsscheduler/model/GetAllReportInstancesRequestTests.kt:8:24 'Assert' is deprecated. Deprecated in Java

> Task :compileTestJava
warning: unknown enum constant Status.STABLE
  reason: class file for org.apiguardian.api.API$Status not found
warning: unknown enum constant Status.STABLE
warning: unknown enum constant Status.STABLE
warning: unknown enum constant Status.STABLE
4 warnings

> Task :forbiddenApisTest
Forbidden annotation use: org.junit.Ignore [Use AwaitsFix instead]
  in org.opensearch.integTest.ReportsSchedulerPluginIT (ReportsSchedulerPluginIT.kt, annotation on method declaration of 'testPluginsAreInstalled()')
Forbidden class/interface use: java.nio.file.Paths [Use org.opensearch.common.io.PathUtils.get() instead.]
  in org.opensearch.integTest.PluginRestTestCase$Companion (PluginRestTestCase.kt:253)

> Task :integTest
Nov 15, 2024 5:58:05 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release

> Task :test
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
Nov 15, 2024 5:58:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 1m 28s
26 actionable tasks: 26 executed

@AlexRuiz7 AlexRuiz7 requested a review from a team November 15, 2024 17:00
@AlexRuiz7 AlexRuiz7 merged commit 3e0ef45 into master-2.18.0.0 Nov 21, 2024
@AlexRuiz7 AlexRuiz7 deleted the migrate-master-to-2.18.0.0 branch November 21, 2024 10:04
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.

Compatibility with OpenSearch 2.18.0
3 participants