Skip to content

fix(ci): cap Infection threads at 4 - #23

Merged
tyrsson merged 1 commit into
1.0.xfrom
tyrsson-mutation-thread-cap
Nov 1, 2026
Merged

tyrsson merged 1 commit into
1.0.xfrom
tyrsson-mutation-thread-cap

Conversation

@tyrsson

@tyrsson tyrsson commented Nov 1, 2026

Copy link
Copy Markdown
Member

Summary

Caps Infection's parallel thread count at 4 in infection.json5.dist.

Rationale

"max" resolves to the number of logical processors. On a developer machine that is commonly 16 logical processors across 8 physical cores, so max means 16 concurrent threads.

Because this config sets staticAnalysisTool: "mago", Infection spawns one mago analyze subprocess per mutant. At max that is 16 concurrent Mago processes contending for 8 physical cores, which saturates the host for tens of minutes and makes the machine unusable for anything else.

A cap of 4 matches the vCPU count of the GitHub-hosted ubuntu-latest runner, so local and CI runs behave identically instead of diverging in both speed and resource shape. webware-acl and webware-migration already use 4, so this makes the fleet uniform.

Diff

One line: "threads": "max" becomes "threads": 4. Nothing else changes.

"max" resolves to the number of logical processors. On a developer machine that is commonly 16 logical processors across 8 physical cores, so max means 16 concurrent threads. Because this config sets staticAnalysisTool to mago, Infection spawns one mago analyze subprocess per mutant. At max that is 16 concurrent Mago processes contending for 8 physical cores, which saturates the host for tens of minutes and makes the machine unusable for anything else. A cap of 4 matches the vCPU count of the GitHub-hosted ubuntu-latest runner, so local and CI runs behave identically instead of diverging in both speed and resource shape. webware-acl and webware-migration already use 4, so this makes the fleet uniform.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tyrsson
tyrsson merged commit 183626c into 1.0.x Nov 1, 2026
12 checks passed
@tyrsson
tyrsson deleted the tyrsson-mutation-thread-cap branch November 1, 2026 20:42
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