Fix BlockTransferManagerTests to extend OpenSearchTestCase instead of LuceneTestCase - #21363
Merged
cwperks merged 1 commit intoApr 28, 2026
Conversation
Contributor
PR Reviewer Guide 🔍(Review updated until commit a485fba)Here are some key observations to aid the review process:
|
chaitanya588
approved these changes
Apr 27, 2026
Contributor
|
❌ Gradle check result for 5bcabc1: 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? |
mgodwan
approved these changes
Apr 27, 2026
Member
|
MayankHarsh03
force-pushed
the
fix/block-transfer-manager-tests-base-class
branch
from
April 27, 2026 12:44
5bcabc1 to
0d1982f
Compare
Contributor
|
Persistent review updated to latest commit 0d1982f |
MayankHarsh03
force-pushed
the
fix/block-transfer-manager-tests-base-class
branch
from
April 27, 2026 12:46
0d1982f to
8e79bf9
Compare
Contributor
|
Persistent review updated to latest commit 8e79bf9 |
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21363 +/- ##
============================================
+ Coverage 73.34% 73.47% +0.12%
- Complexity 74223 74333 +110
============================================
Files 5958 5958
Lines 337309 337359 +50
Branches 48664 48687 +23
============================================
+ Hits 247408 247870 +462
+ Misses 70188 69754 -434
- Partials 19713 19735 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… LuceneTestCase BlockTransferManagerTests was extending LuceneTestCase directly which causes sysout check failures since the test uses loggers that print to console. Changed to extend OpenSearchTestCase which already includes @SuppressSysoutChecks and follows the project convention for all server tests. Signed-off-by: Mayank Harsh <mayankmh@amazon.com>
MayankHarsh03
force-pushed
the
fix/block-transfer-manager-tests-base-class
branch
from
April 27, 2026 17:42
8e79bf9 to
a485fba
Compare
Contributor
|
Persistent review updated to latest commit a485fba |
Contributor
3 tasks
krishna-ggk
pushed a commit
to krishna-ggk/OpenSearch
that referenced
this pull request
Apr 28, 2026
… LuceneTestCase (opensearch-project#21363) BlockTransferManagerTests was extending LuceneTestCase directly which causes sysout check failures since the test uses loggers that print to console. Changed to extend OpenSearchTestCase which already includes @SuppressSysoutChecks and follows the project convention for all server tests. Signed-off-by: Mayank Harsh <mayankmh@amazon.com> Co-authored-by: Mayank Harsh <mayankmh@amazon.com>
imRishN
pushed a commit
to imRishN/OpenSearch
that referenced
this pull request
May 8, 2026
… LuceneTestCase (opensearch-project#21363) BlockTransferManagerTests was extending LuceneTestCase directly which causes sysout check failures since the test uses loggers that print to console. Changed to extend OpenSearchTestCase which already includes @SuppressSysoutChecks and follows the project convention for all server tests. Signed-off-by: Mayank Harsh <mayankmh@amazon.com> Co-authored-by: Mayank Harsh <mayankmh@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
BlockTransferManagerTestswas extendingLuceneTestCasedirectly, which causes sysout check failures in CI since the test uses loggers that print to console during execution. Changed the base class toOpenSearchTestCasewhich already includes@SuppressSysoutChecksand follows the project convention for all tests in theserver/module.Related Issues
Related to #21355
Check List
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.