GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(examples): tighten the size budgets and keep them tight by redfish4ktc · Pull Request #1296 · maxGraph/maxGraph

Conversation

@redfish4ktc

@redfish4ktc redfish4ktc commented Oct 26, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Problem

Every example bundle shrank by 1 to 3 kB between 0.25.0 and 0.25.1, but none of the size budgets followed. They kept the 0.25.0 sizes, leaving up to 3 kB of headroom, so they no longer show the size evolution they are meant to follow: a later growth of up to 3 kB would go unnoticed.

This was found while rebasing #1152, whose earlier version raised the budget of js-example-selected-features by 1 kB for a 42 B growth, although the bundle was already 2.5 kB below that budget on main.

Cause

The CI fails when a bundle grows past its budget, but nothing detects a budget left loose after the bundle got smaller. The release preparation records the new sizes in docs/examples-bundle-size, but did not compare them with the budgets.

Changes

Tighten the budgets of the 6 examples to the measured sizes rounded up to the next kB, as .claude/rules/tooling/bundle-size-budgets.md requires. The asset and chunk sizes match the 0.25.1 row of docs/examples-bundle-size/maxgraph-examples.csv.

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.

Notes

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.

Summary by CodeRabbit

  • Chores
    • Lowered bundle-size limits across JavaScript and TypeScript examples, so builds now enforce slightly smaller asset, entrypoint, and chunk budgets.
    • Updated release preparation guidance to include recording bundle sizes and reviewing tightened example budgets in release changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
redfish4ktc added 2 commits October 26, 2026 07:22
@redfish4ktc
chore(examples): tighten the size budgets to the 0.25.1 sizes
0f22120
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.
@redfish4ktc
chore(release): tighten the example size budgets when preparing a rel…
c69beaa
…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.
@redfish4ktc redfish4ktc added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 03561704-bb42-4cf6-b4b4-1050b805e9c8
Commits

Reviewing files that changed from the base of the PR and between c69beaa and 25d5952.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 077d05be-4a93-4054-8608-ac7ebce3aa27
Commits

Reviewing files that changed from the base of the PR and between cda1fb6 and c69beaa.

Files selected for processing: 8
  • .claude/skills/prepare-release/SKILL.md
  • packages/js-example-selected-features/webpack.config.js
  • packages/js-example-without-defaults/webpack.config.js
  • packages/js-example/webpack.config.js
  • packages/ts-example-selected-features/vite.config.js
  • packages/ts-example-without-defaults/vite.config.js
  • packages/ts-example/vite.config.js
  • packages/website/docs/development/release.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

Release preparation guidance now includes checking and tightening example bundle-size budgets. Webpack and Vite configuration files for six examples have lower size limits.

Changes

Example Bundle Size Budgets

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: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: tbouffard

Merge Risk: Minimal · up to c69be

No actionable merge-blocking risk remains in the documented release workflow or tightened example budgets.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed 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…
Description check Passed 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…
Docstring Coverage Passed 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…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

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.

Full details: Description check

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.

Full details: Docstring Coverage

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.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@redfish4ktc
Merge remote-tracking branch 'origin/main' into chore/tighten-example…
25d5952
…s-size-budgets
@sonarqubecloud

sonarqubecloud Bot commented Oct 26, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@redfish4ktc
redfish4ktc merged commit 32d37a6 into main Oct 27, 2026
14 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@redfish4ktc
redfish4ktc deleted the chore/tighten-examples-size-budgets branch October 27, 2026 06:12
@redfish4ktc redfish4ktc changed the title chore(examples): tighten the size budgets and keep them tight at release chore(examples): tighten the size budgets and keep them tight Oct 27, 2026
This was referenced Oct 31, 2026
chore(claude): add build, review and mixin analysis agents #1299
Merged
chore(claude): add an agent explaining bundle size changes #1307
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@redfish4ktc
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.