Skip to content

Conversation

grandizzy
Copy link
Collaborator

@grandizzy grandizzy commented Oct 3, 2025

Motivation

Solution

  • do not replay failure if current test selector is different than test that created counterexample
  • extra: replayed failure does not count as a run, so if logic changes to vm.assume then should not decrement total runs

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@grandizzy grandizzy changed the title fix(forge): replay fuzz failure only if same test sig fix(forge): replay fuzz failure only if same test selector Oct 3, 2025
@grandizzy grandizzy marked this pull request as ready for review October 3, 2025 11:40
Copy link
Member

@yash-atreya yash-atreya left a comment

Choose a reason for hiding this comment

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

Makes sense!

@grandizzy grandizzy merged commit 7b84375 into foundry-rs:master Oct 3, 2025
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 3, 2025
@grandizzy grandizzy deleted the issue-11927 branch October 3, 2025 11:56
grandizzy added a commit to grandizzy/foundry that referenced this pull request Oct 3, 2025
grandizzy added a commit that referenced this pull request Oct 3, 2025
…or (#11947) (#11949)

fix(forge): replay fuzz failure only if same test selector (#11947)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug(fuzz): replay fails for counterexample recorded with different test selector
2 participants