-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 a unit test for MultiTermsAggregator.buildEmptyAggregations (#7089) #7319
Conversation
…search-project#7089) Signed-off-by: Austin Lee <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
@austintlee Thanks! What are your concerns with this UT? The amount of setup you had to do to get to the actual aggregation? |
Gradle Check (Jenkins) Run Completed with:
|
@dblock yeah, the current implementation of MultiTermsAggregator makes it quite difficult to unit test it due to very heavy setup. Maybe this is generally the case for many classes in OpenSearch? Is there an issue for that that I can take a look at? Coming back to this, I think having a unit test is still worth it. The reason why this PR is failing checks is because this commit needs to be built on top of the other commit that has the actual fix for the NPE which is in another PR. I can add this commit to #7318 |
Absolutely. And thank you. I don't know of an open issue for this, feel free to make one or just do it. Any code deleted will be appreciated!
Yep, you should. A failing unit test that demonstrates a problem is a great step 1 for a fix, but you already did the step 2 of fixing the issue, so you're all set 😅 Close this and tack the UT to the other PR and iterate to green. |
This PR is stalled because it has been open for 30 days with no activity. Remove stalled label or comment or this will be closed in 7 days. |
This PR was closed because it has been stalled for 7 days with no activity. |
Apologies. This PR was auto closed without reaching a resolution from the maintainers. |
Compatibility status:Checks if related components are compatible with change b511b78 Incompatible componentsSkipped componentsCompatible components |
Gradle Check (Jenkins) Run Completed with:
|
Closing this PR as the marked issue is closed already |
@reta looks like you closed out the issue related to this change, what do you think of this change? @austintlee did you still want to see about getting this change merged? |
We can close this one. As I mentioned above, I merged the change in this PR into another PR. |
Description
A new unit test for the implementation of buildEmptyAggregation in MultiTermsAggregator
Issues Resolved
#7089
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.