Repository navigation
feat(mutation): split the full sweep across runners - #68
Merged
Merged
Conversation
A large repository's full sweep can outgrow the 6-hour job limit. The new mutation-full-shards input (default 1) splits it by whole files across heavy runners, balanced by the last sweep's measured time per file. Each shard reruns its files with --force and defers the break threshold. The Mutation (full) verdict fails on any missing, stale or unfinished report, merges the rest, scores the merge with Stryker's own metrics and applies the threshold once. At one shard the sweep runs unsplit as before, without the dead incremental cache restore. Freshness, merging and scoring move into .github/scripts, shared by the scoped and full paths. The scoped cache merge no longer saves a partial merge after a run whose shards all passed.
Reject reports whose file map or mutant lists are malformed, trust a shard record over the plan, and treat only folders as shard artifacts. Merge files by their normalised path, match exclusions the same way, weigh only each shard's own mutants when sharing out its time, and give every shard a file when weights tie.
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.
Draft until a maintainer reviews it; proven live from a consumer.
A large repository's full sweep exceeds the 6-hour job limit. This splits the scheduled or manual full sweep across heavy runners, keeping one global verdict.
mutation-full-shards, default 1. At 1 the sweep runs unsplit as before (no--mutate, no new config contract)mutatefromstryker.config.json/.stryker.conf.json, or an optionalmutation:scope:fullscript. Splits by whole files only, heaviest first, by the last sweep's timings (line count when untimed)timeout-minutes: 345,--incremental --force --incrementalFile <fresh> --mutate. Passes on exit 1 only with Stryker's exact "under breaking threshold" line and a fresh report; a shard with no mutants is valid; always uploadsMutation (full)mutation-testing-metrics, appliesthresholds.breakonce, publishes the merged HTML/JSON and saves timings under a run/attempt key.github/scripts/mutation-reports.mjs, checked out atjob.workflow_sha, holds freshness, merge and scoring for both paths. The scoped cache merge now stops instead of saving a partial merge after a run whose shards all passed--forceOffline: actionlint with shellcheck, qlty,
node --testfor the library, and the plan, shard and verdict scripts run against a real 23,963-mutant report (merge is key-for-key identical, same score) and fault fixtures. The scoped score and cache merge were diffed against the current inline versions and match.Live proof from a consumer whose unsplit sweep has passed 6 hours:
Mutation (full)failed on the merged scoreMutation (full)failed: shards ended cancelled, shard uploaded nothingMutation (full)failed: shard uploaded nothingMutation (full)rather than passing it