Skip to content

fix(ci): build optimized WASM on Rust 1.92 and fix Prisma drift - #639

Merged
sammajayi merged 4 commits into
mainfrom
fix/ci-main-merge-breakage
Nov 26, 2026
Merged

sammajayi merged 4 commits into
mainfrom
fix/ci-main-merge-breakage

Conversation

@sammajayi

Copy link
Copy Markdown
Contributor

Follow-up to #637, which was merged before these last two commits were pushed. They fix the two jobs still red on main.

Contracts: WASM size budget

  • donation.wasm was 83,552 bytes against Soroban's 64 KB (65,536) limit. The raw cargo build output was never deployable.
  • CI and scripts/deploy-testnet.sh now run stellar contract build --optimize --locked, so the budget check measures the artifact that is actually deployed: donation.wasm is 43,956 bytes and creator_registry.wasm is 23,916.
  • Correction to fix(ci): repair broken merges on main so CI builds again #637: stellar contract build rejects Rust 1.91.0 (it emits Wasm Soroban cannot run). Pin 1.92.0 in rust-toolchain.toml, ci.yml and the deploy docs. soroban-sdk 25.3.1 needs >= 1.91, so 1.92.0 is the smallest working pin.
  • stellar-cli is installed with the official action, pinned to the v25.2.0 commit SHA with an explicit version input.

Backend: Prisma drift

  • prisma migrate diff reported drift on Creator.presetAmounts: the migrations leave the default as the cast expression Postgres stores, which Prisma cannot match against @default([]) on a Decimal[]. The schema now uses the equivalent dbgenerated() default. No migration and no database change.

Verified locally

  • Rust 1.92.0: fmt, clippy -D warnings, cargo test --workspace --locked (6 + 52 + 94 pass), optimized build sizes above
  • Backend against a fresh Postgres: migrate deploy, drift check (no difference), seeding twice, integration tests (24 pass)

Still red, not fixable in code

Dependency Review fails with "Dependency graph is not enabled". Enable it in repo Settings, Code security.

🤖 Generated with Claude Code

sammajayi and others added 2 commits November 26, 2026 13:38
`prisma migrate diff` reported drift on Creator.presetAmounts: the migrations
leave the column default as the cast expression Postgres stores for
`ARRAY[]::DECIMAL(20,7)[]`, which Prisma cannot match against `@default([])`
on a Decimal[]. Declare it with the equivalent dbgenerated() default so the
schema matches the migrated database. No migration is needed and the
database default is unchanged.

Verified against a fresh Postgres: migrate deploy, drift check (no
difference), seeding twice, and the Postgres integration tests all pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Toolchain: 1.91.0 (my previous bump) is rejected by `stellar contract
  build` because it emits Wasm Soroban cannot run; pin 1.92.0 in
  rust-toolchain.toml, ci.yml and the deploy docs. soroban-sdk 25.3.1
  needs >= 1.91, so 1.92.0 is the smallest working pin.
- Size: the raw cargo release output was never deployable (donation.wasm
  was 83,552 bytes against Soroban's 64 KB limit). Build with
  `stellar contract build --optimize --locked` in CI and in
  scripts/deploy-testnet.sh so the budget check measures the artifact that
  is actually deployed: donation.wasm is 43,956 bytes and
  creator_registry.wasm is 23,916.
- CI installs stellar-cli with the official action, pinned to the v25.2.0
  commit SHA with an explicit version input.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
support-me-7ajm Ready Ready Preview Nov 26, 2026 1:07pm UTC

`prisma format` re-aligned neighbouring columns when the presetAmounts
default was changed. Restore the original formatting so the drift fix is a
one-line diff.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rustsec/audit-check runs `cargo install cargo-audit` inside the repo, so
rust-toolchain.toml (1.92.0) applies and the latest cargo-audit fails to
compile (its dependencies need Rust 1.95+). The scan never ran. Install and
run cargo-audit on the current stable toolchain explicitly; it only reads
Cargo.lock, so the contracts' pin is irrelevant to it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sammajayi
sammajayi merged commit 0e152de into main Nov 26, 2026
7 of 10 checks passed

This branch was successfully deployed

1 active deployment
Preview — a0555571 Deployed Nov 26, 2026 by vercel[bot]
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.

1 participant