Skip to content

fix(mutation): key cached results by execution inputs#14971

Merged
mablr merged 4 commits into
mutation-testing-fastfrom
mablr/mutation-cache-correctness
May 29, 2026
Merged

fix(mutation): key cached results by execution inputs#14971
mablr merged 4 commits into
mutation-testing-fastfrom
mablr/mutation-cache-correctness

Conversation

@mablr
Copy link
Copy Markdown
Collaborator

@mablr mablr commented May 29, 2026

Summary

Fix mutation result caching so cached outcomes are invalidated when execution inputs change, including test artifacts, config, and EVM options.

  • Keep mutant-set caching scoped to inputs that affect generated mutants.
  • Added an execution cache key for result and survived-span caches.
  • Added unit coverage plus a CLI regression for test changes invalidating cached mutation results.

towards OSS-1

Copy link
Copy Markdown
Collaborator

@figtracer figtracer left a comment

Choose a reason for hiding this comment

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

Two cache correctness concerns from review.

Comment thread crates/forge/src/mutation/orchestrator.rs Outdated
Comment thread crates/forge/src/mutation/orchestrator.rs
@mablr mablr requested a review from figtracer May 29, 2026 15:35
Comment thread crates/forge/src/mutation/mod.rs Outdated
@mablr mablr merged commit 6c0d06e into mutation-testing-fast May 29, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry May 29, 2026
@mablr mablr deleted the mablr/mutation-cache-correctness branch May 29, 2026 18:27
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.

3 participants