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

Register UnmodifiableOnRestore settings #17121

Merged
merged 4 commits into from
Jan 30, 2025

Conversation

anntians
Copy link
Contributor

Description

This PR builds on another PR. In the other PR we added a new Setting property UnmodifiableOnRestore to prevent settings from being modified on restore, but we weren't able to add the property to several settings because they were not yet registered. So this PR registers those settings with UnmodifiableOnRestore

Related Issues

Resolves Issue 2334 in KNN repository: opensearch-project/k-NN#2334
#17019

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Copy link
Contributor

✅ Gradle check result for 49fc11a: SUCCESS

Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.25%. Comparing base (931c1aa) to head (970368e).
Report is 32 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17121      +/-   ##
============================================
- Coverage     72.30%   72.25%   -0.06%     
+ Complexity    65482    65398      -84     
============================================
  Files          5309     5309              
  Lines        304324   304350      +26     
  Branches      44132    44141       +9     
============================================
- Hits         220056   219903     -153     
- Misses        66259    66335      +76     
- Partials      18009    18112     +103     

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

@anntians
Copy link
Contributor Author

This PR is more of a code refactor to register previously unregistered settings with UnmodifiableOnRestore property. So could the skip-changelog label be added to this PR please. Thanks!

Copy link
Collaborator

@jed326 jed326 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few questions on the tests, thanks @anntians !

@jed326 jed326 added the v3.0.0 Issues and PRs related to version 3.0.0 label Jan 29, 2025
@anntians anntians force-pushed the finalRegisterSettings branch from 5734f23 to d2a894e Compare January 30, 2025 01:15
Signed-off-by: AnnTian Shao <[email protected]>
@anntians anntians force-pushed the finalRegisterSettings branch from d2a894e to d2b4139 Compare January 30, 2025 01:41
Copy link
Contributor

✅ Gradle check result for d2b4139: SUCCESS

Signed-off-by: AnnTian Shao <[email protected]>
Signed-off-by: AnnTian Shao <[email protected]>
Copy link
Contributor

❌ Gradle check result for 8576e43: 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 970368e: SUCCESS

@sohami sohami merged commit d601c37 into opensearch-project:main Jan 30, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants