Skip to content

Simplifying cleanup after code examples #51576

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

Open
lcawl opened this issue Jan 28, 2020 · 9 comments
Open

Simplifying cleanup after code examples #51576

lcawl opened this issue Jan 28, 2020 · 9 comments
Labels
:Delivery/Build Build or test infrastructure >enhancement Team:Delivery Meta label for Delivery team v9.1.0

Comments

@lcawl
Copy link
Contributor

lcawl commented Jan 28, 2020

Currently the examples in the Elasticsearch documentation are tested using the functionality described here: https://github.com/elastic/elasticsearch/tree/master/docs#snippet-testing

When the X-Pack code was merged into the OSS code, it seems that cleanup for the documentation tests was not carried over from the x-pack/docs folder to the docs folder. There seem to be structures created during testing (system indices, etc) that sometimes don’t get cleaned up and then cause problems with subsequent tests. As a result, cleanup has been added on an as-needed basis. For example:

https://github.com/elastic/x-pack-elasticsearch/issues/2818
#31450
#43271
#44123

Ideally the steps for cleaning up after documentation tests can be clarified or simplified so that it's easier to accomplish for new features and/or existing features (security, watcher) that are still lingering in the x-pack/docs due to testing issues.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (:Docs)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@mark-vieira
Copy link
Contributor

@lcawl this is labeled with :Core/Infra/Build but it's not clear to me if any build infrastructure changes really need to be made here. Rather this just describes some improvement to the docs tests themselves. I ask because this label is generally meant to indicate some issue or effort that would fall under the scope of responsibility of the build engineering team (i.e. me 😉).

Does this issue need intervention from our end, or is this just some backlog cleanup work that will primarily be handled by the docs team?

@lcawl
Copy link
Contributor Author

lcawl commented Feb 3, 2020

@mark-vieira I think @nik9000 @polyfractal or @davidkyle are better able to answer that question than I am, since they were involved in migrating the cleanup for rollup and ML features. Anything we can do to make it simpler or faster for other features to get the cleanup in place would be great in my opinion. I have no idea what cleanup steps would be required for the security and watcher features, for example, if they finally moved from the x-pack/docs to the docs folders.

@nik9000
Copy link
Member

nik9000 commented Feb 3, 2020

fall under the scope of responsibility of the build engineering team

This is part of the test framework and we decided a while back to use core/infra/build for that. If that isn't a thing we want to do any more maybe we should add another label?

@mark-vieira
Copy link
Contributor

@nik9000 we can keep the label, just wanted to know if I need to keep this on my radar or not.

@davidkyle
Copy link
Member

It was @colings86 who added the :core/infra/build label after this issue had already been tagged with :Docs. @colings86 is this something you've automated and regarding #51576 (comment) is it necessary

@colings86
Copy link
Contributor

Fixing this will require test infrastructure that actually cleans up the cluster including the x-pack features after each test. This is going to need to be a combination of Gradle and Java infrastructure so it comes under the definition of the :Core/Infra/Build label

@rjernst rjernst added Team:Core/Infra Meta label for core/infra team Team:Docs Meta label for docs team labels May 4, 2020
droberts195 added a commit to droberts195/elasticsearch that referenced this issue Oct 19, 2020
The original comment mentioned issue elastic#48583, but issue elastic#48941
is specifically open for this mute.  However, this is
inappropriate, as the underlying reason the test cannot be
unmuted is the same as for all the other tests skipped with the
comment "Kibana sample data": issues elastic#51572, elastic#51576 and elastic#51678.

Closes elastic#48941
droberts195 added a commit that referenced this issue Oct 19, 2020
The original comment mentioned issue #48583, but issue #48941
is specifically open for this mute.  However, this is
inappropriate, as the underlying reason the test cannot be
unmuted is the same as for all the other tests skipped with the
comment "Kibana sample data": issues #51572, #51576 and #51678.

Closes #48941
droberts195 added a commit that referenced this issue Oct 19, 2020
The original comment mentioned issue #48583, but issue #48941
is specifically open for this mute.  However, this is
inappropriate, as the underlying reason the test cannot be
unmuted is the same as for all the other tests skipped with the
comment "Kibana sample data": issues #51572, #51576 and #51678.

Closes #48941
@mark-vieira mark-vieira added Team:Delivery Meta label for Delivery team and removed Team:Core/Infra Meta label for core/infra team labels Nov 11, 2020
@jrodewig jrodewig added >docs General docs changes and removed :Docs labels Sep 16, 2021
@arteam arteam added v8.1.0 and removed v8.0.0 labels Jan 12, 2022
@mark-vieira mark-vieira added v8.2.0 and removed v8.1.0 labels Feb 2, 2022
@lockewritesdocs lockewritesdocs removed the >docs General docs changes label Apr 27, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >enhancement Team:Delivery Meta label for Delivery team v9.1.0
Projects
None yet
Development

No branches or pull requests