Skip to content

feat(mutation-testing): print a wall-clock estimate before a mutation run #9689

Description

@kyle-sexton

Part of #6045

Problem

On .NET each mutant can cost a rebuild plus a test run, so an --exercised audit on a large solution can run for hours with no warning. The audit prints no time estimate before it starts.

Scope

  • A deterministic helper, plugins/mutation-testing/scripts/estimate-run.sh --mutants <n> --seconds <s>, that prints Estimated wall-clock: <h>h <m>m (<n> mutants x <s>s per build-and-test), with the arithmetic in the script, not in the model.
  • skills/audit/SKILL.md: before any mutation run, time one build-plus-test of the selected scope (for .NET, one project line from dotnet-test-selection.sh), take the mutant count from the tool's dry run or listing, and print the helper's line. Ecosystem-neutral: the same step serves every runner.
  • estimate-run.test.sh with fixture numbers, including zero mutants and a fractional per-mutant time.
  • Changelog fragment for mutation-testing.

Done when

  • bash plugins/mutation-testing/scripts/estimate-run.sh --mutants 120 --seconds 45 prints Estimated wall-clock: 1h 30m (120 mutants x 45s per build-and-test).
  • bash plugins/mutation-testing/scripts/estimate-run.test.sh exits 0.
  • git grep -n 'estimate-run.sh' plugins/mutation-testing/skills/audit/SKILL.md prints a line in the step before the mutation run.
  • bash scripts/affected-tests.sh --run exits 0.

Activity

  1. added
    status: ready
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; a maintainer confirms or changes it.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none

    Understood: add a deterministic estimate-run.sh helper to the mutation-testing plugin. It takes a mutant count and seconds per build-and-test and prints a wall-clock estimate. The audit skill would call it before any mutation run. The issue also asks for a test script and a changelog fragment. The scope and done-when checks are exact, so nothing is missing. I found no likely duplicates among the open issues.

    Automated triage. A maintainer reviews it.

  3. melodic-automation-lanes commented on Oct 24, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: blocker #9686 is not closed as completed by a listed human or a merge.

  4. added
    agent-ready
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readystatus: ready

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions