-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix flakiness in runIndexCleanerTest by filtering Jaeger indices #7004
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
Fix flakiness in runIndexCleanerTest by filtering Jaeger indices #7004
Conversation
Signed-off-by: Shubham Solanki <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
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.
I simplified a bit
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7004 +/- ##
==========================================
- Coverage 95.99% 95.96% -0.04%
==========================================
Files 346 346
Lines 20507 20552 +45
==========================================
+ Hits 19686 19722 +36
- Misses 618 626 +8
- Partials 203 204 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ef87405
Thanks! |
"You're welcome! Let me know if there are any other issues I can pick up." |
Anything with |
…gertracing#7004) RESOLVE jaegertracing#7002 **issue:** - The test `runIndexCleanerTest` was flaky because it included unrelated system indices (e.g., `top_queries-2025.04.08-51429`). ## Description of the changes - Added `strings` import to use `strings.HasPrefix`. - Filtered indices to only include those starting with `prefixWithSeparator + "jaeger-"`. - Updated the assertion to use `filteredIndices` instead of raw `indices`. **Impact:** Ensures the test only checks relevant Jaeger indices, improving reliability. ## Checklist - [✓]I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [✓] I have signed all commits - [ ] I have added unit tests for the new functionality - [✓]I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Shubham Solanki <[email protected]> Signed-off-by: Yuri Shkuro <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]>
…gertracing#7004) RESOLVE jaegertracing#7002 **issue:** - The test `runIndexCleanerTest` was flaky because it included unrelated system indices (e.g., `top_queries-2025.04.08-51429`). ## Description of the changes - Added `strings` import to use `strings.HasPrefix`. - Filtered indices to only include those starting with `prefixWithSeparator + "jaeger-"`. - Updated the assertion to use `filteredIndices` instead of raw `indices`. **Impact:** Ensures the test only checks relevant Jaeger indices, improving reliability. ## Checklist - [✓]I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [✓] I have signed all commits - [ ] I have added unit tests for the new functionality - [✓]I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Shubham Solanki <[email protected]> Signed-off-by: Yuri Shkuro <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]> Signed-off-by: amol-verma-allen <[email protected]>
RESOLVE #7002
issue: - The test
runIndexCleanerTest
was flaky because it included unrelated system indices (e.g.,top_queries-2025.04.08-51429
).Description of the changes
strings
import to usestrings.HasPrefix
.prefixWithSeparator + "jaeger-"
.filteredIndices
instead of rawindices
.Impact: Ensures the test only checks relevant Jaeger indices, improving reliability.
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test