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

[Backport 2.x] [rule based autotagging] add attribute value store #17441

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 4648c3f from #17342.

* [rule based autotagging] add attribute value store

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add CHANGELOG entry

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* make the store interface generic

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* run spotless apply

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add missing javadoc

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* improve javadoc for attribute value store

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* improve binary search bisecting expression

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add licenses directory

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

---------

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
(cherry picked from commit 4648c3f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

❌ Gradle check result for 3312432: 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?

Copy link
Contributor

❌ Gradle check result for 3312432: 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?

Copy link
Contributor

❌ Gradle check result for 3312432: 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?

@jainankitk
Copy link
Collaborator

❌ Gradle check result for 3312432: 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?

Cardinality tests seems to be failing consistently:

[Test Result](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/) (14 failures / +11)

    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/80_typed_keys/Test typed keys parameter for cardinality aggregation}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_80_typed_keys_Test_typed_keys_parameter_for_cardinality_aggregation_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric/Missing field without missing param}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_Missing_field_without_missing_param_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric/Only aggs test}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_Only_aggs_test_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric/Missing field with missing param}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_Missing_field_with_missing_param_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric_unsigned/Missing field without missing param}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_unsigned_Missing_field_without_missing_param_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric_unsigned/Only aggs test}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_unsigned_Only_aggs_test_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric_unsigned/Metadata test}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_unsigned_Metadata_test_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric/Basic test}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_Basic_test_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric_unsigned/Basic test}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_unsigned_Basic_test_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric_unsigned/profiler unsigned_long}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_unsigned_profiler_unsigned_long_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/40_range/Date range unmapped with children}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_40_range_Date_range_unmapped_with_children_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric/profiler double}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_profiler_double_/)
    [org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/170_cardinality_metric_unsigned/profiler string}](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.backwards/MixedClusterClientYamlTestSuiteIT/test__p0_search_aggregation_170_cardinality_metric_unsigned_profiler_string_/)
    [org.opensearch.remotemigration.RemotePrimaryRelocationIT.testMixedModeRelocation_FailInFinalize](https://build.ci.opensearch.org/job/gradle-check/53887/testReport/junit/org.opensearch.remotemigration/RemotePrimaryRelocationIT/testMixedModeRelocation_FailInFinalize/)

@cwperks
Copy link
Member

cwperks commented Feb 27, 2025

@kaushalmahi12 Could it be because #17380 is not in 2.19?

I am seeing this error:

» WARN ][o.o.a.s.TransportSearchAction] [v2.19.1-2] onPhaseStart listener [org.opensearch.action.search.SearchRequestStats@a4382da] failed
» java.lang.IllegalArgumentException: No enum constant org.opensearch.action.search.SearchPhaseName.CREATE_PIT
» at java.****/java.lang.Enum.valueOf(Enum.java:293) ~[?:?]
» at org.opensearch.action.search.SearchPhaseName.valueOf(SearchPhaseName.java:18) ~[opensearch-2.19.1-SNAPSHOT.jar:2.19.1-SNAPSHOT]
» at org.opensearch.action.search.SearchPhase.getSearchPhaseName(SearchPhase.java:77) ~[opensearch-2.19.1-SNAPSHOT.jar:2.19.1-SNAPSHOT]
» at org.opensearch.action.search.SearchRequestStats.onPhaseStart(SearchRequestStats.java:76) ~[opensearch-2.19.1-SNAPSHOT.jar:2.19.1-SNAPSHOT]
» at org.opensearch.action.search.SearchRequestOperationsListener$CompositeListener.onPhaseStart(SearchRequestOperationsListener.java:87) [opensearch-2.19.1-SNAPSHOT.jar:2.19.1-SNAPSHOT]

@cwperks
Copy link
Member

cwperks commented Feb 27, 2025

BWC failures were because #17419 was merged into 2.19 before it was merged into 2.x.

Copy link
Contributor

❕ Gradle check result for c684bfe: 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.

Copy link

codecov bot commented Feb 27, 2025

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.95%. Comparing base (7fc607b) to head (c684bfe).
Report is 2 commits behind head on 2.x.

Files with missing lines Patch % Lines
...n/wlm/rule/storage/DefaultAttributeValueStore.java 92.59% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #17441      +/-   ##
============================================
+ Coverage     71.92%   71.95%   +0.02%     
- Complexity    65942    65968      +26     
============================================
  Files          5341     5342       +1     
  Lines        307223   307250      +27     
  Branches      44838    44842       +4     
============================================
+ Hits         220981   221083     +102     
+ Misses        67788    67710      -78     
- Partials      18454    18457       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cwperks cwperks merged commit ec52148 into 2.x Feb 27, 2025
45 checks passed
@github-actions github-actions bot deleted the backport/backport-17342-to-2.x branch February 27, 2025 23:32
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.

3 participants