Skip to content

chore: slice the mutation tests over parallel jobs - #1071

Merged
vbreuss merged 1 commit into
mainfrom
ci/slice-mutation-tests
Sep 13, 2026
Merged

vbreuss merged 1 commit into
mainfrom
ci/slice-mutation-tests

Conversation

@vbreuss

@vbreuss vbreuss commented Sep 13, 2026

Copy link
Copy Markdown
Member

The full run on main mutates the whole project and takes over two hours in a single job - long enough that the hosted runner was once reclaimed mid-run. Raising Stryker's concurrency changed nothing, because more test runners only contend for the same four vCPUs, so the remaining lever is more machines.

Each slice mutates its own patterns minus those of every slice before it, and the last slice mutates whatever the others do not. Their union is the whole source by construction, so a file in a new folder falls into the last slice instead of quietly dropping out of the score. The dashboard job merges the slice reports back into the single report the upload expects, and refuses to publish when a slice is missing or two slices overlap.

Pull requests still mutate only their own changes in a single job, so ci.yml is unchanged.

The full run on `main` mutates the whole project and takes over two hours in a single job - long enough that the hosted runner was once reclaimed mid-run. Raising Stryker's concurrency changed nothing, because more test runners only contend for the same four vCPUs, so the remaining lever is more machines.

Each slice mutates its own patterns minus those of every slice before it, and the last slice mutates whatever the others do not. Their union is the whole source by construction, so a file in a new folder falls into the last slice instead of quietly dropping out of the score. The dashboard job merges the slice reports back into the single report the upload expects, and refuses to publish when a slice is missing or two slices overlap.

Pull requests still mutate only their own changes in a single job, so `ci.yml` is unchanged.
@vbreuss vbreuss self-assigned this Sep 13, 2026
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

     50 files  ± 0       50 suites  ±0   8m 57s ⏱️ - 2m 58s
 20 712 tests +10   20 710 ✅ +10  2 💤 ±0  0 ❌ ±0 
107 750 runs  ± 0  107 748 ✅ ± 0  2 💤 ±0  0 ❌ ±0 

Results for commit 8c0caeb. ± Comparison against base commit 9bafd87.

This pull request removes 3194 and adds 3204 tests. Note that renamed tests count towards both.
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message0cf142b4-c993-4cd8-9588-2eaf0ff4f1bd")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message3ddec2a9-485d-437c-b74d-e2bf33fc5aa3")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message59b2e7a1-22f3-492b-9520-a60f9b6ebe1c")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message7d63fa05-3bfc-4862-9c0a-49c1a2d75bb6")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messagea3b597c8-460c-47b7-9f04-f2841b30d257")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messagee5a620fc-54b1-4c21-8769-fb4bde4fd828")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message00d9a24e-cc6c-489a-aa18-ef5bbefe26db")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message1078184e-7332-40d8-a646-862ba8142453")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message4b15b9de-f2da-4cda-be36-ca39bff6c676")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message6237c12a-c8a8-4cb1-91a6-f5128ad9ce05")
…
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message00ad0280-b37e-4abd-9a9a-88a2f1d4a06d")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message05f67de0-62c2-4622-809f-38c9665e51fd")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message15361259-5f22-45ab-a814-598450da1f3d")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message30e01894-7b57-46bc-b5ee-d74cd7f860af")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message5df52abb-bfcc-4eda-9489-3eb725d57bb9")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message6081c8bb-02fb-4d33-9558-eddadd7210a3")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message074f3d3d-19d3-4031-95a6-cbb60d035e3f")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message71699324-162f-4289-9d8c-c6f5d3e8d216")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message72474de8-cf1d-42fc-855d-a871d778f856")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "messagebd7ca7b0-5d36-4ec8-bf88-cd19ec903af8")
…

♻️ This comment has been updated with latest results.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.5 LTS (Noble Numbat)
AMD EPYC 7763 2.87GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.303
[Host] : .NET 8.0.31 (8.0.31, 8.0.3126.42015), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Method Mean Error StdDev Gen0 Gen1 Allocated
Bool_aweXpect 264.6 ns 4.33 ns 3.61 ns 0.0415 - 696 B
Bool_FluentAssertions 250.3 ns 5.40 ns 5.05 ns 0.0567 - 952 B
Equivalency_aweXpect 318,240.5 ns 2,254.88 ns 2,109.22 ns 20.0195 0.4883 335444 B
Equivalency_FluentAssertions 2,735,964.6 ns 20,826.15 ns 19,480.79 ns 289.0625 46.8750 4841651 B
Int_GreaterThan_aweXpect 268.9 ns 4.04 ns 3.77 ns 0.0515 - 864 B
Int_GreaterThan_FluentAssertions 257.3 ns 4.77 ns 4.46 ns 0.0730 - 1224 B
ItemsCount_AtLeast_aweXpect 492.1 ns 5.25 ns 4.91 ns 0.0811 - 1360 B
ItemsCount_AtLeast_FluentAssertions 522.0 ns 7.26 ns 6.80 ns 0.1192 - 2008 B
String_aweXpect 483.1 ns 5.41 ns 5.06 ns 0.0672 - 1128 B
String_FluentAssertions 1,248.6 ns 10.75 ns 10.05 ns 0.2346 - 3944 B
StringArray_aweXpect 1,989.4 ns 15.62 ns 14.61 ns 0.1564 - 2624 B
StringArray_FluentAssertions 1,413.0 ns 13.73 ns 12.84 ns 0.2480 - 4152 B
StringArrayInAnyOrder_aweXpect 2,617.8 ns 12.05 ns 11.28 ns 0.1678 - 2816 B
StringArrayInAnyOrder_FluentAssertions 27,833.7 ns 233.78 ns 218.67 ns 1.9836 0.0610 33471 B

@github-actions

Copy link
Copy Markdown
Contributor

👽 Mutation Results

Mutation testing badge

aweXpect

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Runtime Errors Total Detected Total Undetected Total Mutants

The final mutation score is NaN%

Coverage Thresholds: high:80 low:60 break:0

aweXpect.Core

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Runtime Errors Total Detected Total Undetected Total Mutants

The final mutation score is NaN%

Coverage Thresholds: high:80 low:60 break:0

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