Skip to content

Make some agg tests easier to read (backport #54954)#55079

Merged
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:agg_reduce_cleanup_1_7_x
Apr 10, 2020
Merged

Make some agg tests easier to read (backport #54954)#55079
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:agg_reduce_cleanup_1_7_x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Apr 10, 2020

We added a fancy method to provide random realistic test data to the
reduction tests in #54910. This uses that to remove some of the more
esoteric machinations in the agg tests. This will marginally increase
the coverage of the serialiation tests and, more importantly, remove
some mysterious value generation code that only really made sense for
random reduction tests but was used all over the place. It doesn't, on
the other hand, make the tests shorter. Just hopefully more clear.

I only cleaned up a few tests this way. If we like this it'd probably be
worth grabbing others.

We added a fancy method to provide random realistic test data to the
reduction tests in elastic#54910. This uses that to remove some of the more
esoteric machinations in the agg tests. This will marginally increase
the coverage of the serialiation tests and, more importantly, remove
some mysterious value generation code that only really made sense for
random reduction tests but was used all over the place. It doesn't, on
the other hand, make the tests shorter. Just *hopefully* more clear.

I only cleaned up a few tests this way. If we like this it'd probably be
worth grabbing others.
@nik9000
Copy link
Copy Markdown
Member Author

nik9000 commented Apr 10, 2020

run elasticsearch-ci/packaging-sample-unix-docker

@nik9000 nik9000 changed the title Make some agg tests easier to read (#54954) Make some agg tests easier to read (backport #54954) Apr 10, 2020
@nik9000 nik9000 merged commit c00811f into elastic:7.x Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant