Skip to content

[8.x] [chore] Tweak io-ts config on shared bundle (#217202)#217623

Merged
kibanamachine merged 2 commits intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-217202
Apr 9, 2025
Merged

[8.x] [chore] Tweak io-ts config on shared bundle (#217202)#217623
kibanamachine merged 2 commits intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-217202

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## Summary

Save ~250kb out of thin air by tweaking the webpack configuration for
the `io-ts` package.

(cherry picked from commit 99d6c85)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 9, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) April 9, 2025 08:22
@kibanamachine kibanamachine merged commit b4ab096 into elastic:8.x Apr 9, 2025
8 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #1 / discover/context_awareness extension getRowAdditionalLeadingControls ES|QL mode should render logs controls for logs data source

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
aiAssistantManagementSelection 66 64 -2
apm 1918 1916 -2
infra 1738 1735 -3
inventory 234 232 -2
investigateApp 575 573 -2
observability 1243 1241 -2
observabilityAIAssistantApp 425 423 -2
observabilityAiAssistantManagement 385 383 -2
profiling 291 289 -2
slo 1113 1111 -2
streamsApp 441 439 -2
synthetics 1222 1220 -2
uptime 793 791 -2
ux 182 180 -2
total -29

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/ui-shared-deps-src 53 56 +3

Async chunks

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

id before after diff
aiAssistantManagementSelection 96.8KB 76.4KB -20.4KB
apm 2.7MB 2.7MB -20.4KB
infra 1.6MB 1.6MB -20.6KB
inventory 212.2KB 191.8KB -20.4KB
investigateApp 200.8KB 200.8KB +8.0B
observability 1.3MB 1.3MB -20.5KB
observabilityAIAssistantApp 264.9KB 244.5KB -20.4KB
observabilityAiAssistantManagement 107.2KB 86.8KB -20.4KB
profiling 400.9KB 380.5KB -20.4KB
slo 909.4KB 909.4KB +10.0B
streamsApp 425.9KB 405.5KB -20.4KB
synthetics 1.1MB 1.1MB -20.4KB
uptime 525.0KB 504.3KB -20.7KB
ux 168.9KB 148.6KB -20.4KB
total -245.4KB

Page load bundle

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

id before after diff
aiAssistantManagementSelection 5.3KB 5.3KB +52.0B
apm 35.8KB 35.9KB +69.0B
infra 54.3KB 54.4KB +70.0B
inventory 13.5KB 13.5KB +53.0B
investigateApp 11.6KB 11.6KB +68.0B
kbnUiSharedDeps-srcJs 3.6MB 3.6MB +928.0B
observability 93.9KB 94.0KB +68.0B
observabilityAIAssistantApp 15.5KB 15.5KB +53.0B
observabilityAiAssistantManagement 5.8KB 5.8KB +52.0B
profiling 17.9KB 18.0KB +68.0B
slo 42.4KB 42.4KB +68.0B
streamsApp 9.6KB 9.7KB +53.0B
synthetics 37.8KB 37.9KB +68.0B
uptime 53.6KB 53.6KB +20.0B
ux 7.3KB 7.4KB +53.0B
total +1.7KB
Unknown metric groups

API count

id before after diff
@kbn/ui-shared-deps-src 62 65 +3

async chunk count

id before after diff
uptime 15 14 -1

History

cc @dej611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants