Skip to content

ci(wasm): enforce per-artifact size budgets - #256

Merged
BridgeAR merged 2 commits into
mainfrom
BridgeAR/2026-09-03-wasm-size-report
Sep 7, 2026
Merged

ci(wasm): enforce per-artifact size budgets#256
BridgeAR merged 2 commits into
mainfrom
BridgeAR/2026-09-03-wasm-size-report

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Sep 3, 2026

Copy link
Copy Markdown
Member

Profiles both the universal and remote-config WASM artifacts, reports crate attribution for each, and enforces 210 KiB and 330 KiB packaged-size budgets in CI.

The attribution parser now handles Binaryen escapes and Rust crate disambiguators. CLI tests pin the last accepted and first rejected byte for both budgets.

Tested with the complete 48-test package and type suite plus targeted ESLint.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Overall package size

Self size: 31.52 MB
Deduped: 31.52 MB
No deduping: 31.52 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------|

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@BridgeAR
BridgeAR marked this pull request as ready for review September 3, 2026 20:36
@BridgeAR
BridgeAR requested review from a team as code owners September 3, 2026 20:36
@BridgeAR
BridgeAR marked this pull request as draft September 3, 2026 20:36
The size report covered only the universal artifact and could not attribute remote-config growth. Build symbol-preserving profiles for both artifacts, report their crate ownership, and fail the real CLI when either packaged artifact crosses its explicit budget.

The parser also decodes Binaryen escape sequences and crate disambiguators so attribution does not split one dependency across synthetic names.
The immediate-abort WASM build reduced the inlined artifacts to 197.6 and 314.5 KiB. The 210 and 330 KiB caps retain 6.3% and 4.9% headroom.

The CLI now owns final inline-size limits; package tests retain independent raw-WASM bounds.
@BridgeAR
BridgeAR force-pushed the BridgeAR/2026-09-03-wasm-size-report branch from ad3ba41 to 73d9546 Compare September 3, 2026 22:43
@BridgeAR
BridgeAR marked this pull request as ready for review September 3, 2026 22:56
@BridgeAR
BridgeAR merged commit f5b15e0 into main Sep 7, 2026
53 checks passed
@BridgeAR
BridgeAR deleted the BridgeAR/2026-09-03-wasm-size-report branch September 7, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants