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

Add qualifier support to metrics queries #611

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

gaiksaya
Copy link
Member

Description

Add qualifier support to metrics queries

Issues Resolved

Work around solution for opensearch-project/opensearch-build#5386

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.

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Copy link

codecov bot commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 57.14286% with 9 lines in your changes missing coverage. Please review.

Project coverage is 88.84%. Comparing base (a0e5039) to head (02e25bb).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/jenkins/ComponentBuildStatus.groovy 57.14% 1 Missing and 2 partials ⚠️
src/jenkins/ComponentIntegTestStatus.groovy 50.00% 1 Missing and 2 partials ⚠️
src/jenkins/ReleaseCandidateStatus.groovy 62.50% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #611      +/-   ##
============================================
- Coverage     90.21%   88.84%   -1.37%     
- Complexity       94      109      +15     
============================================
  Files           114      114              
  Lines           511      529      +18     
  Branches         24       30       +6     
============================================
+ Hits            461      470       +9     
- Misses           26       29       +3     
- Partials         24       30       +6     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -106,6 +115,13 @@ class ComponentIntegTestStatus {
]
]
]
if (this.qualifier != null && this.qualifier != "None") {
Copy link
Member

Choose a reason for hiding this comment

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

Too many of this calls can we replace with:

boolean isNullOrEmpty(String str) { return (str == 'Null' || str == null || str.allWhitespace || str.isEmpty()) }

Copy link
Member Author

Choose a reason for hiding this comment

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

We want to check for "None" as that is what is indexed by default for non-qualifiers while indexing data.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a private method to incorporate above logic.
Thanks!

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
@gaiksaya gaiksaya merged commit 822d25f into opensearch-project:main Mar 12, 2025
9 of 10 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 12, 2025
(cherry picked from commit 822d25f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants