-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Refactoring globMatch using simpleMatchWithNormalizedStrings from Regex #13104
Conversation
Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>
Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>
Compatibility status:Checks if related components are compatible with change e9fd701 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/performance-analyzer.git] |
❌ Gradle check result for 2314218: 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? |
@niyatiagg There don't appear to be any tests for |
❌ Gradle check result for fb3f588: 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? |
Okay, let me add some tests! |
The failure is due to flaky test #12788 |
Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>
❕ Gradle check result for ab6c653: 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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13104 +/- ##
============================================
+ Coverage 71.42% 71.46% +0.04%
- Complexity 59978 60475 +497
============================================
Files 4985 5026 +41
Lines 282275 284509 +2234
Branches 40946 41205 +259
============================================
+ Hits 201603 203323 +1720
- Misses 63999 64404 +405
- Partials 16673 16782 +109 ☔ View full report in Codecov by Sentry. |
Dismissing my review as I'm not a maintainer (yet), but its showing the green check mark for my review. This change looks good to me.
Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>
❕ Gradle check result for e9fd701: 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. |
@cwperks good to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…ex (#13104) * Refactoring globMatch using simpleMatchWithNormalizedStrings from Regex Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com> * Adding entry to CHANGELOG.md Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com> * Adding tests for GlobMatch Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com> * Moving entry to Changed section in CHANGELOG.md Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com> --------- Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com> (cherry picked from commit f2e2a85) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Yes, I dismissed my own review since I'm not a maintainer of this repo but it was showing a green check mark instead of a grey check mark. |
…ex (#13104) (#13176) * Refactoring globMatch using simpleMatchWithNormalizedStrings from Regex * Adding entry to CHANGELOG.md * Adding tests for GlobMatch * Moving entry to Changed section in CHANGELOG.md --------- (cherry picked from commit f2e2a85) Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Changed globMatch from recursive to iterative implementation using the existing code in simpleMatchWithNormalizedStrings by @cwperks as part of #11060.
Related Issues
Resolves #12065
Check List
- [ ] Public documentation issue/PR createdBy 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.