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

[kbn/optimizer] add support for --focus option #80436

Merged
merged 2 commits into from
Oct 14, 2020

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Oct 14, 2020

Addresses part of #65955

Focus the optimizer on a subset of the bundles, including the implicit and explicit dependencies of those bundles. This can substantially reduce the amount of work the optimizer is doing and is ideal for when you're debugging bundle size changes that cause cascading changes which invalidate a lot of bundle (like when you're working on the optimizer itself and all bundles are constantly invalidated).

The format of the --focus flag is the same as the --filter flag, with the difference being that each bundle which is matched by the --focus flag has its dependencies (and transitive dependencies) built as well.

@spalger spalger added Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 labels Oct 14, 2020
@spalger spalger requested a review from mshustov October 14, 2020 00:31
@spalger spalger marked this pull request as ready for review October 14, 2020 00:31
@spalger spalger requested a review from a team as a code owner October 14, 2020 00:31
@elasticmachine
Copy link
Contributor

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

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

Copy link
Contributor

@mshustov mshustov left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

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

lgtm

@spalger spalger merged commit bc4093a into elastic:master Oct 14, 2020
@spalger spalger deleted the implement/optimizer-focus-option branch October 14, 2020 15:16
spalger added a commit to spalger/kibana that referenced this pull request Oct 14, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>
spalger added a commit that referenced this pull request Oct 14, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@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
Development

Successfully merging this pull request may close these issues.

5 participants