GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — chore(examples): tighten the size budgets and keep them tight by redfish4ktc · Pull Request #1296 · maxGraph/maxGraph Conversation
|
| Example | Measured | Budget before | Budget after |
|---|---|---|---|
| js-example | 464 013 / 469 522 B | 467_000 / 473_000 | 465_000 / 470_000 |
| js-example-selected-features | 382 389 / 387 898 B | 385_000 / 391_000 | 383_000 / 388_000 |
| js-example-without-defaults | 237 843 / 238 826 B | 239_000 / 240_000 | 238_000 / 239_000 |
| ts-example | 426 187 B | 429 kB | 427 kB |
| ts-example-selected-features | 359 163 B | 362 kB | 360 kB |
| ts-example-without-defaults | 219 797 B | 221 kB | 220 kB |
The webpack examples give the asset, then the entrypoint (the bundle plus the extracted CSS); the Vite examples give the maxgraph chunk.
To keep it from happening again, the prepare-release skill gets a step that compares the sizes of the new version with the budgets and tightens the loose ones, leaving the changes for the release commit like the bundle size history. It never raises a budget, since a growth already fails the CI of the pull request that causes it. The webpack entrypoints are built locally for this, because the CI logs only print them in KiB rounded by webpack. The release how-to describes the new step and the files to check before the release commit.
The sizes were measured with ./scripts/build-all-examples.bash after building packages/core, with the bundler versions of the lockfile (webpack 5.111.1, Vite 8.3.4, terser 5.51.2). The script passes with the new budgets.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Every example bundle shrank by 1 to 3 kB between 0.25.0 and 0.25.1, but the budgets were not updated, so they kept the 0.25.0 sizes and left up to 3 kB of headroom. Limits that loose no longer show the size evolution they are meant to follow. Set each limit to the measured size rounded up to the next kB. The asset and chunk sizes match the 0.25.1 row of docs/examples-bundle-size/maxgraph-examples.csv; the webpack entrypoints add the extracted CSS to the bundle. | Example | measured | budget | | ---------------------------- | ------------------- | ------------------ | | js-example | 464 013 / 469 522 B | 465_000 / 470_000 | | js-example-selected-features | 382 389 / 387 898 B | 383_000 / 388_000 | | js-example-without-defaults | 237 843 / 238 826 B | 238_000 / 239_000 | | ts-example | 426 187 B | 427 kB | | ts-example-selected-features | 359 163 B | 360 kB | | ts-example-without-defaults | 219 797 B | 220 kB | The webpack examples give the asset, then the entrypoint; the Vite examples give the maxgraph chunk.
…ease The CI fails when an example bundle grows past its budget, but nothing detects a budget left loose after the bundle got smaller. Between 0.25.0 and 0.25.1 every example lost 1 to 3 kB and no budget followed. The prepare-release skill already records the sizes of the new version, so it now also compares them with the budgets and tightens the loose ones, leaving the changes for the release commit like the bundle size history. It never raises a budget: a growth already failed the CI of the pull request that caused it. The asset and chunk limits come from the sizes the CI prints, but the webpack entrypoints also count the extracted CSS, and the CI logs only give them in KiB rounded by webpack. The skill therefore builds the webpack examples locally for them, after asking, rather than deriving an approximate limit. The release how-to describes the new step and the files to check before the release commit.
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Release budget guidance .claude/skills/prepare-release/SKILL.md, packages/website/docs/development/release.md |
The release skill and guide describe comparing bundle sizes with existing budgets, tightening eligible budgets, and reporting the changes. |
Updated example limits packages/js-example-*/webpack.config.js, packages/ts-example-*/vite.config.js |
Webpack asset and entrypoint limits and Vite chunk-size limits are reduced across six example configurations. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Suggested reviewers: tbouffard
c69beNo actionable merge-blocking risk remains in the documented release workflow or tightened example budgets.
Explanation
The title uses the conventional commits format and names the main change: tightening the example size budgets so they stay tight at release. The changeset matches it, since the six budgets are lowered and the prepare-release skill gains a step that tightens budgets. The title is concise and specific.
Explanation
The description follows the template's main sections: Problem, Cause, Changes, and Notes. It explains why the budgets are tightened and how the new sizes were measured, and it links the release how-to. The template's PR checklist and the issue-link line are absent. The author did not link a tracking issue or state that the PR scope was discussed with maintainers. The PR also has no test or documentation checkboxes, although the change is a configuration and tooling update where tests do not apply in the usual sense.
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 6 files. (2 skipped: 2 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.