Skip to content

Fail CI when test snapshots are missing or stale - #436

Merged
leighmcculloch merged 4 commits into
mainfrom
check-test-snapshots-ci
Nov 26, 2026
Merged

leighmcculloch merged 4 commits into
mainfrom
check-test-snapshots-ci

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Stacked on #435.

What

Commit every example's test snapshots and fail the build-and-test job when running the tests changes them, the same way rs-soroban-sdk does.

Why

Snapshots were gitignored yet three were committed anyway, and nobody regenerated them through two SDK upgrades because nothing failed when they drifted.

Known limitations

Snapshots of tests that deploy wasm built by the build step are gitignored, because they embed the wasm's hash, code and costs, which differ between the msrv and latest Rust toolchains; the fuzzing example's proptest snapshots are gitignored because proptest picks random inputs each run; the account examples now seed their keypair RNG so their snapshots are deterministic.

@leighmcculloch
leighmcculloch marked this pull request as ready for review November 26, 2026 12:42
Base automatically changed from update-soroban-sdk-v30 to main November 26, 2026 15:13
@leighmcculloch
leighmcculloch force-pushed the check-test-snapshots-ci branch from 4c5aa34 to bc56f30 Compare November 26, 2026 15:14
@leighmcculloch
leighmcculloch enabled stacked auto-merge (squash) November 26, 2026 15:14
@leighmcculloch
leighmcculloch merged commit a9a06d1 into main Nov 26, 2026
141 checks passed
@leighmcculloch
leighmcculloch deleted the check-test-snapshots-ci branch November 26, 2026 15:18
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.

2 participants