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

[cli/dev] remove cluster module, modernize, test #84726

Merged
merged 20 commits into from
Dec 4, 2020

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Dec 2, 2020

Closes #84134
Closes #84131
Closes #83976

We've had a number of issues with the dev CLI lately, detailed in the issues above, and I really want to work on some improvements like #84555, but the legacy code has been a huge mess to deal with and is a complicated bundle of evented items which are tricky to manage. This PR attempts to address all these issues at once by rewriting the dev CLI as several observable components detailed in https://github.com/spalger/kibana/blob/dev-cli/remove-cluster-usage/src/dev/cli_dev_mode/README.md.

This PR moves us to using pipes to handle the stdout from the child process now, rather than passing our stdout/stderr handles to the Kibana server. This gives us the opportunity to mask the basePathProxy target URL and should reduce the likelihood of #84131 from coming back.

@spalger spalger added release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.11.0 v8.0.0 labels Dec 2, 2020
@spalger spalger marked this pull request as ready for review December 2, 2020 18:26
@spalger spalger requested review from a team as code owners December 2, 2020 18:26
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

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

I've tested and it works great! I added a Super-NIT comment.

And I'll also re-add kibana-core because I don't think I'm the best one here to approve it 🙂

packages/kbn-dev-utils/src/tooling_log/log_levels.ts Outdated Show resolved Hide resolved
@afharo afharo requested a review from a team December 3, 2020 13:41
Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

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

LGTM - also tested.

@spalger
Copy link
Contributor Author

spalger commented Dec 4, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.7MB 1.7MB +20.0B

Distributable file count

id before after diff
default 46838 46837 -1
oss 27567 27566 -1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
upgradeAssistant 60.4KB 60.5KB +20.0B

History

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

@spalger spalger merged commit fd1328f into elastic:master Dec 4, 2020
@spalger spalger deleted the dev-cli/remove-cluster-usage branch December 4, 2020 21:28
spalger added a commit to spalger/kibana that referenced this pull request Dec 7, 2020
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
spalger added a commit that referenced this pull request Dec 7, 2020
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.11.0 v8.0.0
Projects
None yet
6 participants