Fix debugger template corpus snapshots and preview regressions - #3
Merged
Conversation
String.toInt now returns Maybe, curried let-bound calls emit correctly, and corpus bootstrap uses deterministic random plus stable snapshot normalization so all 30 template fixtures match current runtime preview behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop revision and other machine-specific watch_model fields from snapshot comparison, keep corpus random override visible to async runtime tasks, and run template corpus ExUnit steps serially in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
SHA256 fields depend on compile artifact layout and differ between CI and local runs even when preview output is equivalent. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
debugger_template_corpusgolden snapshots for current runtime/debugger behavior (runtime_view_output_model_sha256, preview pipeline, newwatch-demo-drawing-showcasefixture).String.toIntreturnsMaybe(notResult) soMaybe.withDefaultworks in updates (games with storage best-score load).RandomGeneratedplaceholder, deterministic corpus random via:corpus_fixed_random_int, float rounding in preview ops.Test plan
mix test test/ide/mcp/debugger_template_corpus_test.exs --only template_corpus --max-cases 1(31/31, run twice)mix testinelmx(307 tests)Debugger Strict Coverageon this PRMade with Cursor