Skip to content

Portal mutants: a mutant with no check filter runs the whole suite, which exceeds the harness's 240 s limit #474

Open

Description

@ephico2real2

Part of #20. Found by the coordinator while proving PR #472 (#407), 2026-11-20.

What is wrong. cmapi-portal-ui/tests/api/mutants.mjs runs each suite with SUITE_TIMEOUT_MS = 240_000. A mutant whose last field (the check filter) is empty runs the whole portal.test.mjs, which takes about 10 minutes on this Mac (78 checks, measured 2026-11-20). Since #472's F2, a baseline run that times out is refused (Baseline failed for portal : Error: spawnSync ... ETIMEDOUT), so npm run test:mutants with no filter stops before testing any mutant. Before F2 such a timeout counted as a kill, which was a false credit. So the full mutant run has no working path on this machine. Filtered runs work: npm run test:mutants -- 407 killed 5 of 5, and -- 392 killed 4 of 4.

How to prove it. npm run test:mutants with no argument on main after #472: it fails at the baseline. After the fix, it runs every mutant and reports killed or survived for each.

Research mandate. Research: search the primary sources (mutation-testing practice for slow suites, e.g. Stryker's per-test coverage and timeouts), compare the options (give every mutant a check filter, derive the timeout from the measured baseline, or run the baseline once and reuse it), choose the industry best practice, fix the cause rather than the symptom, and record the choice and its sources.

Activity

  1. added
    bug
    status:open
    sev:low
    Backlog
    on Nov 20, 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

    Backlogbugsev:lowstatus:open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions