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

Replace AggregatorTestCase#search with AggregatorTestCase#searchAndReduce #60816

Merged

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Aug 6, 2020

Backport of #60683

…duce (elastic#60683)

* Replace AggregatorTestCase#search with AggregatorTestCase#searchAndReduce

This commit removes the ability to test the top level result of an aggregator
before it runs the final reduce. All aggregator tests that use AggregatorTestCase#search
are rewritten with AggregatorTestCase#searchAndReduce in order to ensure that we test
the final output (the one sent to the end user) rather than an intermediary result
that could be different.
This change also removes spurious commits triggered on top of a random index writer.
These commits slow down the tests and are redundant with the commits that the
random index writer performs.
@jimczi jimczi added the backport label Aug 6, 2020
@jimczi
Copy link
Contributor Author

jimczi commented Aug 6, 2020

@elasticmachine run elasticsearch-ci/packaging-sample-unix

@jimczi jimczi merged commit f30f1f0 into elastic:7.x Aug 10, 2020
@jimczi jimczi deleted the backport/aggregator_tests_search_and_reduce branch August 10, 2020 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant