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

chore(NA): improves @kbn/ui-shared-deps build performance #105971

Merged
merged 22 commits into from
Jul 21, 2021

Conversation

mistic
Copy link
Member

@mistic mistic commented Jul 16, 2021

Part of #69706 and #104519

This PR closes #104253

It removes the minification and the compression tasks from @kbn/ui-shared-deps into the distributable build pipeline which increases the bootstrap performance in more than ~60% without any cache.

Also re-introduces React Profiler in development.

@mistic mistic added chore Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 labels Jul 16, 2021
@mistic mistic requested a review from jbudz July 16, 2021 15:01
@mistic mistic requested a review from a team as a code owner July 16, 2021 15:01
@mistic mistic changed the title Improve kbn UI shared deps performance chore(NA): improves @kbn/ui-shared-deps build performance Jul 16, 2021
@mistic
Copy link
Member Author

mistic commented Jul 17, 2021

@elasticmachine merge upstream

@mistic
Copy link
Member Author

mistic commented Jul 19, 2021

@elasticmachine merge upstream

@jbudz
Copy link
Member

jbudz commented Jul 19, 2021

In development mode. Left side is master, noting the 404's on sourcemaps. This is on Windows, but I expect it's on both
image

Otherwise, bundles in production LGTM. Size matches the previously minified versions.

@mistic
Copy link
Member Author

mistic commented Jul 19, 2021

@jbudz I've included the source-maps, could you check if that worked?

@jbudz
Copy link
Member

jbudz commented Jul 19, 2021

f995b69 fixed the source map issues.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

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

id before after diff
kbnUiSharedDeps-css 520.6KB 520.2KB -429.0B
kbnUiSharedDeps-elastic 2.6MB 2.6MB +5.0B
kbnUiSharedDeps-js 6.5MB 6.5MB +6.9KB
total +6.5KB

History

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

@mistic mistic merged commit 465b36c into elastic:master Jul 21, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 105971

mistic added a commit to mistic/kibana that referenced this pull request Jul 21, 2021
…5971)

* chore(NA): move packages assets optimization into the distributable build

* chore(NA): include terser task on distributable build

* chore(NA): migrate everything into the build tasks

* chore(NA): update webpack config to include react profiler

* chore(NA): optional fsevents

* chore(NA): redo optional fsevents

* chore(NA): remove noparse for fsevents

* chore(NA): include missing task declaration

* chore(NA): include sourcemaps

* chore(NA): include metrics bundle file generation during distributable build

* chore(NA): correctly setup paths

* chore(NA): change sourcemap types

* chore(NA): remove useless sourcemaps

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh
mistic added a commit that referenced this pull request Jul 21, 2021
…106472)

* chore(NA): move packages assets optimization into the distributable build

* chore(NA): include terser task on distributable build

* chore(NA): migrate everything into the build tasks

* chore(NA): update webpack config to include react profiler

* chore(NA): optional fsevents

* chore(NA): redo optional fsevents

* chore(NA): remove noparse for fsevents

* chore(NA): include missing task declaration

* chore(NA): include sourcemaps

* chore(NA): include metrics bundle file generation during distributable build

* chore(NA): correctly setup paths

* chore(NA): change sourcemap types

* chore(NA): remove useless sourcemaps

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use non-minified packages in dev mode
6 participants