Skip to content

fix(forge): validate mutation compiler profile#15628

Open
mablr wants to merge 9 commits into
masterfrom
mablr/mutation-baseline
Open

fix(forge): validate mutation compiler profile#15628
mablr wants to merge 9 commits into
masterfrom
mablr/mutation-baseline

Conversation

@mablr

@mablr mablr commented Jul 7, 2026

Copy link
Copy Markdown
Member

Mutation testing now validates the unmutated project under the same compiler profile that will be used for mutants. This catches cases where --mutation-via-ir or --mutation-optimizer-runs makes the baseline fail before any source mutation is applied, and reports a mutation-specific setup error instead of surfacing a raw compiler failure later in the run.

The mutation runner now builds the selected sources with the mutation compiler overrides, runs an unmutated baseline against that output, and only then starts executing mutants. The mutation result cache and mutant execution also use that mutation-profile compile output, keeping setup and execution aligned.

@mablr mablr marked this pull request as ready for review July 7, 2026 18:37
mattsse
mattsse previously approved these changes Jul 7, 2026

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Comment thread crates/forge/src/cmd/test/mod.rs Outdated
Comment thread crates/forge/src/cmd/test/mod.rs Outdated
stevencartavia
stevencartavia previously approved these changes Jul 8, 2026
@mablr mablr requested review from mattsse and stevencartavia July 9, 2026 09:30
figtracer
figtracer previously approved these changes Jul 9, 2026
# Conflicts:
#	crates/forge/src/cmd/test/mod.rs
stevencartavia
stevencartavia previously approved these changes Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants