opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
8.83k stars 1.62k forks source link

Adding User Behavior Insights functionality. #13546

Closed jzonthemtn closed 1 week ago

jzonthemtn commented 2 weeks ago

Description

Adds the User Behavior Insights (UBI) functionality described in #12084.

Check List

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.

github-actions[bot] commented 1 week ago

:x: Gradle check result for bea92e0c4dc97ccf31b098dda0652fa4ce1f3a38: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

jzonthemtn commented 1 week ago

❌ Gradle check result for bea92e0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

I think it is a flaky test outside of UBI changes:

[Test Result](https://build.ci.opensearch.org/job/gradle-check/38340/testReport/) (1 failure / -1)
[org.opensearch.common.cache.stats.DefaultCacheStatsHolderTests.testConcurrentRemoval](https://build.ci.opensearch.org/job/gradle-check/38340/testReport/junit/org.opensearch.common.cache.stats/DefaultCacheStatsHolderTests/testConcurrentRemoval/)

And described by #13220.

github-actions[bot] commented 1 week ago

:x: Gradle check result for 2fb835fcfc7ce271208eead32d222acc46d67c4c: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

jzonthemtn commented 1 week ago

❌ Gradle check result for 2fb835f: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Also appears to be a flaky test outside of the code changes here. #1006

reta commented 1 week ago

@jzonthemtn I haven't look into implementation yet (sorry about that), but it looks to me the plugin should not be part of the core but a separate repository (like most of the non essential plugins out there).

github-actions[bot] commented 1 week ago

:white_check_mark: Gradle check result for 00c7c8565e65f8ff5fae13c03e5698e888e61d85: SUCCESS

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 47.08995% with 100 lines in your changes are missing coverage. Please review.

Project coverage is 71.53%. Comparing base (b15cb0c) to head (333e45e). Report is 271 commits behind head on main.

Files Patch % Lines
.../main/java/org/opensearch/ubi/UbiActionFilter.java 16.00% 60 Missing and 3 partials :warning:
...src/main/java/org/opensearch/ubi/QueryRequest.java 0.00% 12 Missing :warning:
...ain/java/org/opensearch/ubi/ext/UbiParameters.java 83.58% 3 Missing and 8 partials :warning:
...rc/main/java/org/opensearch/ubi/QueryResponse.java 0.00% 8 Missing :warning:
...rg/opensearch/ubi/ext/UbiParametersExtBuilder.java 75.00% 3 Missing and 2 partials :warning:
.../main/java/org/opensearch/ubi/UbiModulePlugin.java 85.71% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #13546 +/- ## ============================================ + Coverage 71.42% 71.53% +0.11% - Complexity 59978 61077 +1099 ============================================ Files 4985 5058 +73 Lines 282275 287313 +5038 Branches 40946 41617 +671 ============================================ + Hits 201603 205518 +3915 - Misses 63999 64748 +749 - Partials 16673 17047 +374 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 week ago

:x: Gradle check result for be5b3a04aedbe1dc36046a2e0d4cb289d87975b3: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

github-actions[bot] commented 1 week ago

:x: Gradle check result for 1d5d8718b91a48921db459cee8d71e6c722e51de: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

github-actions[bot] commented 1 week ago

:grey_exclamation: Gradle check result for 333e45e930f1076d38d937ed85fde55727a4755c: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

andrross commented 1 week ago

I haven't look into implementation yet (sorry about that), but it looks to me the plugin should not be part of the core but a separate repository (like most of the non essential plugins out there).

This is super important and something we should figure out ASAP as it will determine where this code will live. Have we discussed this yet in any other issue? My inclination is that this feature might benefit from being a separate repository where it can iterate much more quickly and not be so tightly coupled to the OpenSearch repository.

/cc @reta @msfroh

jzonthemtn commented 1 week ago

I haven't look into implementation yet (sorry about that), but it looks to me the plugin should not be part of the core but a separate repository (like most of the non essential plugins out there).

This is super important and something we should figure out ASAP as it will determine where this code will live. Have we discussed this yet in any other issue? My inclination is that this feature might benefit from being a separate repository where it can iterate much more quickly and not be so tightly coupled to the OpenSearch repository.

/cc @reta @msfroh

Appreciate the nudge on this point. Just some history since not everyone is familiar with UBI, this project started as an external plugin and was then moved to a module (this PR).

jzonthemtn commented 1 week ago

Apologies for missing the search triage meeting, but I heard it was decided that UBI will be moved to an external plugin project repository so I am going to close this pull request. Thanks to everyone for the comments!