chore(ci): make bundle budget resilient to runtime chunk changes - #51
Draft
ClodoCapeo wants to merge 1 commit into
Draft
chore(ci): make bundle budget resilient to runtime chunk changes#51ClodoCapeo wants to merge 1 commit into
ClodoCapeo wants to merge 1 commit into
Conversation
Replace runtime-owned chunk-name assumptions with a graph walk rooted at Solar's emitted ESM entry. Preserve per-mode and host budgets, count merged chunks once, and retain a semantic broadcast overlay guard. Add a regression fixture for renamed and merged runtime chunks. Refs #5 Agent-Role: Eleven Agent-Thread: codex-solar-advance-2026-08-15 Work-Unit: SOLAR-5-BUNDLE-GRAPH Issue: #5 Evidence: npm run lint; npm run typecheck; npm test; npm run build; npm run check:bundle
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.
Problem
Solar's bundle-size gate required runtime-owned chunk prefixes (
index,tree,broadcast,control,test,status-pill). A runtime minor rename or merge could fail CI even when the emitted ESM graph and budgets were valid.Change
dist/solar.js;BroadcastMode/ControlMode/TestModeloader exports, not emitted filenames;npm test.Evidence
npm run lint— passednpm run typecheck— passednpm test— 112 Vitest tests + 2 bundle-graph tests passednpm run build— passednpm run check:bundle— passeddfe282cbad92508af872bba679d34d2ecfa48a4fnpm run test:e2ewas attempted but could not launch because this workstation lacks the Playwright Chromium and Headless Shell executables; the CDN install did not complete. No application assertion ran or failed.Refs #5