Skip to content

test: make the eventually tests independent of the agent speed - #1035

Merged
vbreuss merged 1 commit into
mainfrom
chore/unskip-eventually-cancellation-test
Sep 6, 2026
Merged

vbreuss merged 1 commit into
mainfrom
chore/unskip-eventually-cancellation-test

Conversation

@vbreuss

@vbreuss vbreuss commented Sep 6, 2026 •

Copy link
Copy Markdown
Member

DefaultCheckInterval_ShouldDetermineTheNumberOfEvaluations asserted at least two evaluations, which a build agent cannot guarantee: when the first evaluation alone uses up the one second retry budget - a cold and busy agent JITs the whole expectation pipeline on the way - the subject is evaluated once and the assertion fails. The upper bound is what the test is about: a 200ms check interval within a one second budget allows at most six evaluations, while an ignored interval would evaluate the subject far more often. How many of the six a machine reaches is a property of that machine, not of the check interval.

WhenCancelledDuringTheWaitThatConsumesTheTimeout_ShouldBeInconclusive was skipped while the cancellation of a wait could be observed after the retry budget had expired. That race is fixed (#1034), so it runs again.

@vbreuss vbreuss self-assigned this Sep 6, 2026
Copilot AI lite review requested due to automatic review settings September 6, 2026 18:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vbreuss
vbreuss enabled auto-merge (squash) September 6, 2026 18:51
@github-actions

github-actions Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

     23 files   -  27       23 suites   - 27   8m 57s ⏱️ - 2m 13s
 20 158 tests  -  30   20 156 ✅  -  29  2 💤  - 1  0 ❌ ±0 
104 141 runs   - 108  104 139 ✅  - 102  2 💤  - 6  0 ❌ ±0 

Results for commit 3f6b4bd. ± Comparison against base commit eef3e6a.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
INTEL XEON PLATINUM 8573C 3.46GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.303
[Host] : .NET 8.0.30 (8.0.30, 8.0.3026.36720), X64 RyuJIT x86-64-v4

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

Method Mean Error StdDev Gen0 Gen1 Allocated
Bool_aweXpect 226.5 ns 5.60 ns 5.24 ns 0.0081 - 696 B
Bool_FluentAssertions 229.6 ns 2.11 ns 1.97 ns 0.0112 - 952 B
Equivalency_aweXpect 239,451.9 ns 2,106.45 ns 1,970.38 ns 3.9063 - 335444 B
Equivalency_FluentAssertions 1,837,318.2 ns 28,731.88 ns 23,992.42 ns 54.6875 7.8125 4841613 B
Int_GreaterThan_aweXpect 222.3 ns 1.98 ns 1.76 ns 0.0103 - 864 B
Int_GreaterThan_FluentAssertions 227.9 ns 2.36 ns 2.09 ns 0.0143 - 1224 B
ItemsCount_AtLeast_aweXpect 398.1 ns 8.59 ns 8.04 ns 0.0162 - 1360 B
ItemsCount_AtLeast_FluentAssertions 419.1 ns 4.52 ns 4.01 ns 0.0238 - 2008 B
String_aweXpect 357.0 ns 2.60 ns 2.17 ns 0.0134 - 1128 B
String_FluentAssertions 976.9 ns 7.56 ns 6.31 ns 0.0458 - 3944 B
StringArray_aweXpect 1,151.5 ns 11.71 ns 9.77 ns 0.0305 - 2624 B
StringArray_FluentAssertions 1,090.4 ns 4.26 ns 3.99 ns 0.0496 - 4152 B
StringArrayInAnyOrder_aweXpect 1,535.4 ns 9.67 ns 7.55 ns 0.0324 - 2816 B
StringArrayInAnyOrder_FluentAssertions 14,093.8 ns 48.70 ns 40.66 ns 0.3967 - 33465 B

@github-actions

github-actions Bot commented Sep 6, 2026

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

@vbreuss
vbreuss disabled auto-merge September 6, 2026 19:04
Copilot AI review requested due to automatic review settings September 6, 2026 19:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

`DefaultCheckInterval_ShouldDetermineTheNumberOfEvaluations` asserted at
least two evaluations, which a build agent cannot guarantee: when the first
evaluation alone uses up the one second retry budget - a cold and busy agent
JITs the whole expectation pipeline on the way - the subject is evaluated
once and the assertion fails. The upper bound is what the test is about: a
200ms check interval within a one second budget allows at most six
evaluations, while an ignored interval would evaluate the subject far more
often. How many of the six a machine reaches is a property of that machine,
not of the check interval.

`WhenCancelledDuringTheWaitThatConsumesTheTimeout_ShouldBeInconclusive` was
skipped while the cancellation of a wait could be observed after the retry
budget had expired. That race is fixed (#1034), so it runs again.
@vbreuss
vbreuss force-pushed the chore/unskip-eventually-cancellation-test branch from 191fea2 to 3f6b4bd Compare September 6, 2026 19:14
@vbreuss vbreuss changed the title test: re-enable the cancelled eventually expectation test test: make the eventually tests independent of the agent speed Sep 6, 2026
@vbreuss
vbreuss enabled auto-merge (squash) September 6, 2026 19:18
@sonarqubecloud

sonarqubecloud Bot commented Sep 6, 2026

Copy link
Copy Markdown

@vbreuss
vbreuss merged commit 24a17c1 into main Sep 6, 2026
14 checks passed
@vbreuss
vbreuss deleted the chore/unskip-eventually-cancellation-test branch September 6, 2026 19:23
github-actions Bot added a commit that referenced this pull request Sep 6, 2026
…dent of the agent speed (#1035) by Valentin Breuß
github-actions Bot added a commit that referenced this pull request Sep 6, 2026
…dent of the agent speed (#1035) by Valentin Breuß
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

This is addressed in release v2.38.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants