-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[Test] Convert Pipeline agg integration tests into AggregatorTestCase #36015
Comments
Pinging @elastic/es-analytics-geo |
Hey @polyfractal I'm interested in taking this one on. Can you give me some more details around this task - maybe a file or two ;) |
Sure! Thanks for offering to help out! IIRC I filed this issue while working on #29641. In that PR, I removed CumulativeSumIT and replaced it with CumulativeSumAggregatorTests.
In contrast, all the tests that end in In most cases (I think!) we can convert directly from the IT to the AggregatorTestCase version without any loss of testing functionality. I'd recommend doing individual pipeline aggs one at a time (one per PR), which will make your life easier since you aren't on the hook for all the aggs, and easier for us to review. Thanks again! Feel free to ping me if you have questions, or you can open a WIP PR and we can iterate there. ❤️ |
Hi @polyfractal, I was looking to convert a couple of other IT to extend AggregatorTestCase but I have a few questions. |
Heya @mirkojotic, sorry for the delay. Had a quick skim and you're right, I'm not sure there's a way to do sibling aggs right now. I didn't get a chance to look closely but I think we'll need to do something like you suggested, passing a list of aggregators to the The |
@polyfractal no problem 😉 I wouldn't mind taking a stab at it. I might open a WIP PR if I get stuck. Just to confirm AggregatorTestCase is modeled after the actual internal implementation. So I need to follow that closely and add the a list of sibling aggs as an optional argument to searchAndReduce? |
Pipeline aggs were added before the
AggregatorTestCase
was created, so most of the pipelines are tested with a few unit tests and a lot of integration tests. We should be able to convert these over toAggregatorTestCase
, which should be faster and generally easier to test against.The text was updated successfully, but these errors were encountered: