Skip to content

Filter walrus version from trampoline snapshots - #187

Merged
adampetro merged 2 commits into
mainfrom
ap/insta-walrus-version-filter
Jul 23, 2026
Merged

Filter walrus version from trampoline snapshots#187
adampetro merged 2 commits into
mainfrom
ap/insta-walrus-version-filter

Conversation

@adampetro

@adampetro adampetro commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enable Insta snapshot filters for the trampoline tests
  • normalize the Walrus producer version to [WALRUS-VERSION]
  • update the provider trampoline snapshots to use the normalized value
  • refresh the log-past-capacity fuel expectation for the current Rust compiler

Testing

  • cargo test
  • cargo test -p shopify_function_trampoline disassemble_trampoline

Assisted-By: devx/db2a5897-58c0-416b-802a-3a871e0b1dcc
Assisted-By: devx/db2a5897-58c0-416b-802a-3a871e0b1dcc
@adampetro
adampetro marked this pull request as ready for review July 22, 2026 18:00
@adampetro
adampetro requested a review from jeffcharles July 22, 2026 18:00

@jeffcharles jeffcharles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just have the one question about the fuel change.

let (_, logs, fuel) = run_example("log-past-capacity", vec![])?;
assert_eq!(logs, format!("{}{}", "a".repeat(991), "b".repeat(10)));
assert_fuel_consumed_within_threshold(928, fuel);
assert_fuel_consumed_within_threshold(965, fuel);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea why the fuel consumed changed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it is a change in the latest Rust version, see #186 which has the same test failure, which I would also expect on main

@adampetro
adampetro merged commit 8020a57 into main Jul 23, 2026
4 checks passed
@adampetro
adampetro deleted the ap/insta-walrus-version-filter branch July 23, 2026 14:03
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