Skip to content

Add contract WASM size budget checks - #520

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
newmattock:issue-496-wasm-size-budget
Jun 27, 2026
Merged

Add contract WASM size budget checks#520
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
newmattock:issue-496-wasm-size-budget

Conversation

@newmattock

@newmattock newmattock commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a CI workflow that enforces a 100 KB default WASM budget for each contract artifact.
  • Add a reusable scripts/check-wasm-size.sh helper with WASM_SIZE_LIMIT_BYTES and SKIP_WASM_BUILD controls.
  • Document local usage, CI behavior, and remediation steps for oversized contract builds.

Verification

  • bash -n scripts/check-wasm-size.sh
  • WASM_SIZE_LIMIT_BYTES=0 bash scripts/check-wasm-size.sh exits with the expected validation error.
  • Attempted ./scripts/check-wasm-size.sh; local full build was blocked by environment issues after switching toolchains, then by disk exhaustion.

CI note

  • The new WASM Size Budget / Contract WASM size check workflow passes on this PR.
  • Existing CI / Test and Test Coverage jobs are red on workspace-wide formatting and test_proptest.rs HashSet<Address> issues that are outside this script/docs change.

Closes #496

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@newmattock Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Merged via direct push to main (admin)

@greatest0fallt1me
greatest0fallt1me merged commit d27b1a0 into CalloraOrg:main Jun 27, 2026
2 of 4 checks passed
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.

Add WASM size budget CI check (< 100 KB per contract)

2 participants