Skip to content

fix(tests): make Windows actor checks deterministic#1661

Merged
Aaronontheweb merged 1 commit into
devfrom
fix/windows-actor-test-determinism
Jul 15, 2026
Merged

fix(tests): make Windows actor checks deterministic#1661
Aaronontheweb merged 1 commit into
devfrom
fix/windows-actor-test-determinism

Conversation

@Aaronontheweb

@Aaronontheweb Aaronontheweb commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Problem

Windows validation on PR #1659 failed in two unrelated actor-test races:

  • Akka.Hosting.TestKit recovered a test actor lost during host startup, but strict message serialization rejected its internal probe-retarget message.
  • The deferred reminder expiry test used a 700 ms global backstop and 200 ms wall-clock expiry without proving all execution slots were occupied. On Windows, one blocker completed early and the reminder under test started instead of being queued.

Fix

  • Bind the narrow Akka.Hosting.TestKit StableTestProbeRef.UpdateTarget control message and add a strict-serialization round-trip regression.
  • Replace the reminder test's real-time orchestration with FakeTimeProvider, three observed gateway deliveries as the saturation barrier, same-sender mailbox ordering, and an explicit delivery result to release one slot.
  • Keep production and CI timeout thresholds unchanged. Do not bind Akka Streams internal stage messages.

Validation

  • Focused regressions: 2/2 pass
  • Affected classes: 62/62 pass
  • Focused stress: 20 consecutive runs, all pass
  • Full Netclaw.Actors.Tests: 2,627/2,627 pass
  • Slopwatch: 0 issues
  • Copyright headers: pass
  • Diff check: pass

@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) July 15, 2026 21:14
@Aaronontheweb Aaronontheweb added tests All issues related to testing, quality assurance, and smoke testing. bug Something isn't working labels Jul 15, 2026
@Aaronontheweb
Aaronontheweb merged commit 1b5d68f into dev Jul 15, 2026
21 checks passed
@Aaronontheweb
Aaronontheweb deleted the fix/windows-actor-test-determinism branch July 15, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working tests All issues related to testing, quality assurance, and smoke testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant