Skip to content

ci: run mutants on demand rather than on every pull request - #89

Merged
lmarkmann merged 1 commit into
mainfrom
ci/mutants-on-demand
Aug 29, 2026
Merged

lmarkmann merged 1 commit into
mainfrom
ci/mutants-on-demand

Conversation

@lmarkmann

Copy link
Copy Markdown
Owner

ci.yml finishes in 2 minutes of wall clock. Its six jobs run in parallel behind a 1.9m Windows leg:

job time
test (windows-latest) 1.9m
fmt + clippy + test (ubuntu) 1.7m
test (macos-latest) 1.1m
msrv + cargo deny + zizmor 0.6m combined

The mutants job took 12 to 19 minutes on top of that, six to ten times everything else put together. It was also continue-on-error: true, so it could never fail a pull request: a dashboard priced like a gate, and one nobody was reading.

The justification for running it per PR was that the full crate is hours while a diff is minutes. The first half holds and the second does not. Nearly all of the time is rebuilds rather than mutants: a ten-minute local --in-diff run got through five unviable mutants and executed none of them.

workflow_dispatch stays, so nothing is lost but the automatic cost. just mutants-file src/<module>.rs remains the shape worth running by hand.

.github/ is excluded from the crate tarball, so this cuts no release.

What was considered and rejected

Dropping the macOS leg from the cross job. It saves nothing on either axis: the repository is public, so standard runners are free and the 10x macOS multiplier does not apply, and at 1.1m it is not on the critical path, so removing it saves zero wall clock. It also guards aarch64-apple-darwin, which ships a binary every release, and tests/launch.rs spawning the real binary is the test most likely to catch a crossterm or ratatui platform break.

ci.yml finishes in 2 minutes of wall clock, six jobs in parallel behind a
1.9m Windows leg. The mutants job took 12 to 19 minutes on top of that,
six to ten times everything else combined, and it was continue-on-error
so it could never fail a PR. A dashboard priced like a gate.

The justification for putting it on PRs was that the full crate is hours
while a diff is minutes. The first half is right and the second is not:
almost all the time is rebuilds rather than mutants, and a ten-minute
local --in-diff run got through five unviable mutants and executed none
of them.

workflow_dispatch stays, so the capability is unchanged and only its
automatic cost is gone. Killing survivors is deliberate work now, which
suits it better: the module with the most of them is analytic_sky, where
every one sits in the chromaticity coefficients and no test written for
them so far has closed one.
@codspeed

codspeed Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 70 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing ci/mutants-on-demand (89c8367) with main (cb90899)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@lmarkmann
lmarkmann merged commit 42b89be into main Aug 29, 2026
8 checks passed
@lmarkmann
lmarkmann deleted the ci/mutants-on-demand branch August 29, 2026 10:19
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.

1 participant