Repository navigation
ci: run mutants on demand rather than on every pull request - #89
Merged
Merged
Conversation
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.
Contributor
Merging this PR will not alter performance
Comparing Footnotes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ci.ymlfinishes in 2 minutes of wall clock. Its six jobs run in parallel behind a 1.9m Windows leg:test (windows-latest)fmt + clippy + test(ubuntu)test (macos-latest)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-diffrun got through five unviable mutants and executed none of them.workflow_dispatchstays, so nothing is lost but the automatic cost.just mutants-file src/<module>.rsremains 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
crossjob. 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 guardsaarch64-apple-darwin, which ships a binary every release, andtests/launch.rsspawning the real binary is the test most likely to catch a crossterm or ratatui platform break.