Repository navigation
fix(ci): build optimized WASM on Rust 1.92 and fix Prisma drift - #639
Merged
Merged
Conversation
`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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
`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>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.wasmwas 83,552 bytes against Soroban's 64 KB (65,536) limit. The rawcargo buildoutput was never deployable.scripts/deploy-testnet.shnow runstellar contract build --optimize --locked, so the budget check measures the artifact that is actually deployed:donation.wasmis 43,956 bytes andcreator_registry.wasmis 23,916.stellar contract buildrejects Rust 1.91.0 (it emits Wasm Soroban cannot run). Pin 1.92.0 inrust-toolchain.toml,ci.ymland the deploy docs.soroban-sdk 25.3.1needs >= 1.91, so 1.92.0 is the smallest working pin.versioninput.Backend: Prisma drift
prisma migrate diffreported drift onCreator.presetAmounts: the migrations leave the default as the cast expression Postgres stores, which Prisma cannot match against@default([])on aDecimal[]. The schema now uses the equivalentdbgenerated()default. No migration and no database change.Verified locally
-D warnings,cargo test --workspace --locked(6 + 52 + 94 pass), optimized build sizes abovemigrate deploy, drift check (no difference), seeding twice, integration tests (24 pass)Still red, not fixable in code
Dependency Reviewfails with "Dependency graph is not enabled". Enable it in repo Settings, Code security.🤖 Generated with Claude Code