Skip to content

Use the focused mutation test pool by default - #219

Merged
tob-scott-a merged 5 commits into
mainfrom
codex/217-mutation-fast-pool
Nov 26, 2026
Merged

tob-scott-a merged 5 commits into
mainfrom
codex/217-mutation-fast-pool

Conversation

@tob-scott-a

@tob-scott-a tob-scott-a commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Mutation testing now uses the focused mutation_fast pool by default in the repository runner, routine CI, manual mutation runs, and reusable-workflow calls. Tests remain in their original modules, and ordinary CI still runs the complete test suite. --test-group=full retains the full mutation test pool.

  • Mark 1,451 existing test functions, selecting 3,166 tests for the focused pool.
  • Keep coverage-driven selection inside either pool, with pool-bound neutral baselines, failure-prefix confirmation, actual failing-test witnesses, independent report directories, stable mutation inventories, and phase timings.
  • Run one focused-pool mutation campaign on pull requests. Weekly Monday 06:00 UTC and manually triggered audits compare the full and fast pools, using an unfiltered full-pool reference. Comparisons reject inconclusive outcomes and report every lost kill across the complete application inventory; reviewed survivor exceptions stay unchanged.
  • Separate routine and audit concurrency groups so their focused-pool jobs cannot cancel each other.
  • Bound traversal work in the F*, Lean, and Rego discovery fixtures. Ignore generated native-cache filenames even when a mutant corrupts the suffix, while retaining grammar-source fingerprint checks.
  • Retain the optional controlled benchmark with matched serialized repetitions and plain unsharded pytest-gremlins as a reference.

The full-pool coverage-selected CI run and the focused-pool campaign passed on the preceding revision. Aggregate mutation-shard job time was 1,258 versus 815 runner-minutes (35% lower); the slowest shard was 71.6 versus 36.2 minutes. These are observations from one sharded CI comparison. The unfiltered reference audit remains separate from routine PR validation.

Validation: the runner changes passed all 5,979 tests locally with native tools required; the final workflow and documentation simplification passed 584 documentation checks. Ruff, formatting, ty, Zizmor, and whitespace checks pass. actionlint 1.7.12 passes with only its unsupported $/-syntax diagnostic filtered. Real subprocess regressions exercise the fast default, explicit full-pool selection, both audit modes, failing-test witnesses, and detection of a deliberately incomplete focused pool. The new comparison option permits coverage-selected references explicitly and still rejects a reduced-pool reference.

The completed coverage-selected pool comparison checked all 12,092 mutants: the full pool killed 9,545, the focused pool killed 9,546, and no full-pool kills were lost. The promoted pool is now called the fast pool; scheduled/manual audit jobs are named Full pool and Fast pool.

Refs #217.

@tob-scott-a
tob-scott-a marked this pull request as ready for review November 25, 2026 20:22
@tob-scott-a tob-scott-a changed the title Add a candidate mutation test pool and parity audits Use the focused mutation test pool by default Nov 26, 2026
@tob-scott-a
tob-scott-a merged commit 08dab02 into main Nov 26, 2026
56 checks passed
@tob-scott-a
tob-scott-a deleted the codex/217-mutation-fast-pool branch November 26, 2026 10:30
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