• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / inference-perf / 43286339232
87%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 07:17PM UTC
Jobs 1
Files 141
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2026 07:04PM UTC coverage: 86.411% (+0.006%) from 86.405%
43286339232

push

github

web-flow
End processes a mutant's tests fork (#1066)

Part of #872

A test that starts Workers through `LoadGenerator.mp_run` leaves them
behind once per mutant. mutmut ends a mutant's run with `os._exit` or a
kill, which skips the exit hook that stops daemon processes. Each
stranded Worker is small, so the per-mutant memory cap from #1035 never
trips. They pile up until the runner dies with "The hosted runner lost
communication with the server" and no summary. #946 hits this on every
run because it changes `test_runtime_metrics_wiring.py`, which has an
`mp_run` test.

Now a process a mutant's test forks, and a Python process it starts
along with what that one forks, is killed when its parent exits. That
reaches Workers, which the multiprocessing forkserver forks. The stats
run and the clean run are left alone.

Changes:
* A `mutation_orphan_guard` module in the harness directory sets
`PR_SET_PDEATHSIG` to SIGKILL when `MUTANT_UNDER_TEST` names a mutant. A
before-fork hook notes the parent's pid, so a child whose parent already
left exits on its own.
* The `mutation_child_hits` plugin's at-fork hook calls the guard, which
covers what a test forks itself.
* The harness directory's `sitecustomize.py` runs the guard in every
interpreter started under a mutant. The forkserver starts by exec and
runs no fork hook, so this is what arms it and each Worker it forks.
* A test that starts a sleeping process through `fork` and through
`forkserver` and leaves through `os._exit(1)`. The process is gone
within 5 s under a mutant and still alive under the stats run.
* One paragraph under Wall time in `docs/mutation_testing.md`.

Linux only. Elsewhere `prctl` is missing and the guard does nothing. A
program that is not Python is not covered.

Failing on main:

```
E       AssertionError: assert False
E        +  where False = process_ended(622973, 5)
```

A local ratchet run for #946 on main left 266 of these processes holding
18.6 GB. The same run on this branch left none.

... (continued)

13742 of 15903 relevant lines covered (86.41%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 43286339232.1 12 Nov 2026 07:17PM UTC 141
86.41
GitHub Action Run
Source Files on build 43286339232
  • Tree
  • List 141
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43286339232
  • 721a1eac on github
  • Prev Build on main (#43260477553)
  • Next Build on main (#43302222367)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc