Skip to content

[CI/CD] Hard bundle budget thresholds in CI (block regressions) #707

Description

@nanaf6203-bit

Problem Statement

next-bundle-analyzer is configured (scripts/run-analyze-build.mjs) but no hard budget exists. The size-limit.json is loose; no CI gate fires when a feature regresses the bundle.

Acceptance Criteria

  • Hard limits: initial JS ≤ 220KB, web3-vendors ≤ 180KB, CSS ≤ 60KB
  • The perf:budgets script returns non-zero when exceeded
  • PRs with regressions are blocked; comments appear inline

Implementation Notes

Wire next-bundle-analyzer JSON into a custom check in scripts/check-performance-budgets.mjs.

Files Likely Affected

  • scripts/check-performance-budgets.mjs
  • .github/workflows/ci.yml
  • .size-limit.json

Difficulty / Effort

  • Difficulty: Moderate
  • Effort: T-Shirt M

Labels

ci-cd, priority:high, area:performance

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions