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] Fix issue with feature flags where default value may not be honored (#12849) #12912

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Mar 25, 2024

Backport #12849 to 2.x

…pensearch-project#12849)

* Fix issue with feature flags passed as system props where default value was not being honored

Signed-off-by: Craig Perkins <craig5008@gmail.com>

* Add CHANGELOG entry

Signed-off-by: Craig Perkins <craig5008@gmail.com>

* Add test for default value of false

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Fix issue when empty settings passed in initialization

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Get actual value from settings and default from ff setting

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add test with non-empty setting initialization

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <craig5008@gmail.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
(cherry picked from commit 12f1487)
@cwperks cwperks changed the title Fix issue with feature flags where default value may not be honored (#12849) [Backport 2.x] Fix issue with feature flags where default value may not be honored (#12849) Mar 25, 2024
Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change c67a803

Incompatible components

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/sql.git]

Copy link
Contributor

❌ Gradle check result for c67a803: null

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 c67a803: 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 c67a803: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=indices.get_field_mapping/20_missing_field/Return empty object if field doesn't exist, but index does}

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 Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.24%. Comparing base (0dd892c) to head (c67a803).
Report is 90 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #12912      +/-   ##
============================================
- Coverage     71.28%   71.24%   -0.05%     
- Complexity    60145    60468     +323     
============================================
  Files          4957     4985      +28     
  Lines        282799   284413    +1614     
  Branches      41409    41584     +175     
============================================
+ Hits         201591   202617    +1026     
- Misses        64189    64729     +540     
- Partials      17019    17067      +48     

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

@dblock dblock merged commit f96669a into opensearch-project:2.x Mar 26, 2024
79 checks passed
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.

2 participants