Skip to content

Rollup: Consolidate rollup cleanup for http tests #34342

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

Merged
merged 11 commits into from
Oct 17, 2018

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Oct 6, 2018

This moves the rollup cleanup code for http tests from the high level rest
client into the test framework and then entirely removes the rollup cleanup
code for http tests that lived in x-pack. This is nice because it
consolidates the cleanup into one spot, automatically invokes the cleanup
without the test having to know that it is "about rollup", and should allow
us to run the rollup docs tests.

Part of #34530

@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests v7.0.0 :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data v6.5.0 labels Oct 6, 2018
@nik9000 nik9000 requested a review from polyfractal October 6, 2018 17:09
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@nik9000
Copy link
Member Author

nik9000 commented Oct 6, 2018

Note to self and others: we skip the rollup tests using gradle configuration in docs/build.gradle starting with the comment "// Broken code snippet tests". I'd like to reenable those tests in a follow up.

@nik9000
Copy link
Member Author

nik9000 commented Oct 6, 2018

This issue tracks the rollup docs tests being disabled: #33319.

@nik9000
Copy link
Member Author

nik9000 commented Oct 16, 2018

@polyfractal, could you have a look at this when you get a chance? I think this is the last thing I need before I can fix the rollup docs tests.

Copy link
Contributor

@polyfractal polyfractal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for shuffling all this around @nik9000 :)

@nik9000 nik9000 merged commit 139bbc3 into elastic:master Oct 17, 2018
@nik9000
Copy link
Member Author

nik9000 commented Oct 17, 2018

Thanks for reviewing @polyfractal! I've merged to master and am running the backport tests now.

nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Oct 17, 2018
We'd disabled them because we didn't have a way to clean up after each
test. I implemented elastic#34342 which adds the clean ups so now we can
re-enable the tests.

In the `setup` sections we have to use `raw` requests instead of
`x-pack` requests because we don't have the json config for x-pack.

Closes elastic#33319
nik9000 added a commit that referenced this pull request Oct 17, 2018
This moves the rollup cleanup code for http tests from the high level rest
client into the test framework and then entirely removes the rollup cleanup
code for http tests that lived in x-pack. This is nice because it
consolidates the cleanup into one spot, automatically invokes the cleanup
without the test having to know that it is "about rollup", and should allow
us to run the rollup docs tests.

Part of #34530
@nik9000
Copy link
Member Author

nik9000 commented Oct 17, 2018

All backported!

nik9000 added a commit that referenced this pull request Oct 18, 2018
We'd disabled them because we didn't have a way to clean up after each
test. I implemented #34342 which adds the clean ups so now we can
re-enable the tests.

In the `setup` sections we have to use `raw` requests instead of
`x-pack` requests because we don't have the json config for x-pack.

Closes #33319
nik9000 added a commit that referenced this pull request Oct 19, 2018
We'd disabled them because we didn't have a way to clean up after each
test. I implemented #34342 which adds the clean ups so now we can
re-enable the tests.

In the `setup` sections we have to use `raw` requests instead of
`x-pack` requests because we don't have the json config for x-pack.

Closes #33319
kcm pushed a commit that referenced this pull request Oct 30, 2018
This moves the rollup cleanup code for http tests from the high level rest
client into the test framework and then entirely removes the rollup cleanup
code for http tests that lived in x-pack. This is nice because it
consolidates the cleanup into one spot, automatically invokes the cleanup
without the test having to know that it is "about rollup", and should allow
us to run the rollup docs tests.

Part of #34530
kcm pushed a commit that referenced this pull request Oct 30, 2018
We'd disabled them because we didn't have a way to clean up after each
test. I implemented #34342 which adds the clean ups so now we can
re-enable the tests.

In the `setup` sections we have to use `raw` requests instead of
`x-pack` requests because we don't have the json config for x-pack.

Closes #33319
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data >test Issues or PRs that are addressing/adding tests v6.5.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants