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

[Archive Migration] batch 1 of removing es_archives/empty_kibana #138189

Merged
merged 4 commits into from
Aug 12, 2022

Conversation

LeeDr
Copy link

@LeeDr LeeDr commented Aug 4, 2022

Summary

Fixes: #50373
Part of Meta issue: #102552

This PR removes the use of es_archives/empty_kibana and replaced it with calls to kibanaServer.savedObjects.cleanStandardList. I have changes queued up for the same change in more tests (30 more files at least).

WARNING: I should note that there is a difference between
esArchiver.load('x-pack/test/functional/es_archives/empty_kibana'); (which I think deletes the entire .kibana index) and
kibanaServer.savedObjects.cleanStandardList(); (which can only delete savedObjects of types supported by the Saved Object API in the DEFAULT SPACE). There might be some types of saved objects which are not deleted. The full set we delete are here https://github.com/elastic/kibana/blob/main/packages/kbn-test/src/kbn_client/kbn_client_saved_objects.ts#L225 And saved objects in other spaces wouldn't be deleted. I mostly used find/replace to generate this PR and didn't review all the tests in detail. But the tests passed! The fact that our tests are broken up into so many separate configs probably helps with the isolation of tests.
I checked and it looks like all the tests that created a space also already had an after method that deletes the space (and everything in it).

@LeeDr LeeDr added 7.14 candidate test_xpack_functional release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) and removed 7.14 candidate labels Aug 5, 2022
@LeeDr LeeDr marked this pull request as ready for review August 5, 2022 03:23
@LeeDr LeeDr requested review from a team as code owners August 5, 2022 03:23
Copy link
Contributor

@watson watson left a comment

Choose a reason for hiding this comment

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

Nice update! AppEx Platform Security changes LGTM!

@LeeDr LeeDr changed the title batch 1 of removing es_archives/empty_kibana [Archive Migration] batch 1 of removing es_archives/empty_kibana Aug 5, 2022
@LeeDr
Copy link
Author

LeeDr commented Aug 5, 2022

@elasticmachine merge upstream

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

DataDiscovery.team owned code LGTM

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

ML changes LGTM

@LeeDr
Copy link
Author

LeeDr commented Aug 10, 2022

@elasticmachine merge upstream

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

x-pack/test/functional/apps/reporting_management/report_listing.ts changes LGTM

reviewed the code

Copy link
Contributor

@awahab07 awahab07 left a comment

Choose a reason for hiding this comment

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

Uptime changes LGTM.

@LeeDr LeeDr enabled auto-merge (squash) August 12, 2022 13:26
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@klacabane klacabane left a comment

Choose a reason for hiding this comment

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

Infra changes LGTM

@LeeDr LeeDr merged commit 6221b4f into elastic:main Aug 12, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 12, 2022
Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 6221b4f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.4

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@LeeDr LeeDr deleted the remove_empty_kibana branch August 12, 2022 16:42
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Aug 13, 2022
…c#138747)

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 6221b4f)

Co-authored-by: Lee Drengenberg <[email protected]>
Mpdreamz pushed a commit to Mpdreamz/kibana that referenced this pull request Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Functional Testing release_note:skip Skip the PR/issue when compiling release notes test_xpack_functional v8.4.0 v8.5.0
Projects
None yet
9 participants