Skip to content

[526] Wire scripts/check_wasm_size.sh into CI as an enforced per-contract WASM size budget gate - #543

Merged
Baskarayelu merged 5 commits into
CredenceOrg:mainfrom
Max-Owolabi:fix/526-wire-scripts-check-wasm-size-sh-into-ci-as-an-enforced-per-contract-wasm-size-budget-gate
Jun 23, 2026
Merged

[526] Wire scripts/check_wasm_size.sh into CI as an enforced per-contract WASM size budget gate#543
Baskarayelu merged 5 commits into
CredenceOrg:mainfrom
Max-Owolabi:fix/526-wire-scripts-check-wasm-size-sh-into-ci-as-an-enforced-per-contract-wasm-size-budget-gate

Conversation

@Max-Owolabi

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/wasm-size.yml to build release WASM (wasm32-unknown-unknown --release --locked) and run scripts/check_wasm_size.sh on every PR.
  • Introduces scripts/wasm-size-budget.toml for per-contract ceilings (64 KiB each) and updates the check script to enforce them.
  • Documents enforced budgets and CI cross-links in docs/wasm-size-budget.md and README.md.

Test plan

  • CI WASM Size Budget workflow builds release artifacts and runs the size gate
  • Over-budget binary fails the gate (script exits non-zero)
  • Existing workspace tests and lint workflows remain unchanged

Closes #526

Adds a release-WASM size gate wiring the existing script into CI,
per-contract budgets in wasm-size-budget.toml, and documents the
enforced limits.

Closes CredenceOrg#526

Co-authored-by: Cursor <cursoragent@cursor.com>
@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Max-Owolabi 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

Max-Owolabi and others added 4 commits June 23, 2026 14:26
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Move soroban-sdk testutils to dev-dependencies for deployable contracts,
fix clippy warnings in credence_bond, and align CI tests with workspace scope.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Baskarayelu

Copy link
Copy Markdown
Contributor

Wire scripts/check_wasm_size.sh into CI as an enforced per-contract WASM size budget gate — great addition. merging 👍

@Baskarayelu
Baskarayelu merged commit 679ffe2 into CredenceOrg:main Jun 23, 2026
8 of 11 checks passed
@Baskarayelu

Copy link
Copy Markdown
Contributor

Wire scripts/check_wasm_size.sh into CI as an enforced per-contract WASM size budget gate — rebased onto main and merged 👍

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.

Wire scripts/check_wasm_size.sh into CI as an enforced per-contract WASM size budget gate

2 participants