Build: Add export and module tracing to bundle-size bot - #286
Open
jlukic wants to merge 7 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The size bot learns to explain itself, designed for SNR: rows are findings, never inventory.
Changes
fromcolumn on the changed-bundles table plus a, fromx`` clause in the alert when one source dominatesRisk
2/10
Trace failures degrade to measurement-only, one-sided traces to no-section, artifact fields sanitized before the privileged reporter renders. 42/42 harness tests. Consumption study in ai/workspace (private).
Sample comment — the five-pragma retention leak, rendered as implemented
🟡 Bundle size:
component+371 B brotli · +0 shipped LOC fordemo123Base: main · Run: #0 · Raw:
size-report.jsonDemo
2 larger · 0 smaller · 22 unchanged · +0 shipped LOC · +0 comment LOC
Bundles that changed (2 of 24)
component🎯utils/strings.js100%frameworkSorted by absolute brotli delta, increases first. 🎯 = bundle most relevant to this PR.
from= share of the movement by source module, from the harness build.Tracked import costs (query · reactivity · utils): 9 moved
query$queryregisterBehaviorutilsjoinWordsutilscapitalizeutilstoTitleCaseutilslogutilsgetArticleutilstoNumberutilshumanizeThe minified cost of importing just this export, standalone. One row per co-movement group, named by its master — full per-export pricing in size-report.json.
LOC by scope: +0 shipped LOC · +0 comment LOC
No change in shipped source lines.
All 24 bundles, gzip, and raw sizes
compilercomponent🎯queryreactivityrendererspecstailwindtemplatingutils†frameworkbuttoncardcontainerdividericonimageinputlabelmenumodalrailsegmentspinnertablebrotli q11 · gzip l9 · vs
main· fresh build both sides