Skip to content

test: Add network divergence test demonstrating STO2-35#75

Closed
Mikerah wants to merge 1 commit intomainfrom
repro/fakenetwork-vs-real
Closed

test: Add network divergence test demonstrating STO2-35#75
Mikerah wants to merge 1 commit intomainfrom
repro/fakenetwork-vs-real

Conversation

@Mikerah
Copy link
Contributor

@Mikerah Mikerah commented Feb 10, 2026

Documents the critical gap between FakeNetwork (tests) and Docker (production):

FakeNetwork:

  • <1μs latency, guaranteed FIFO delivery
  • 500 message buffer, no reconnection logic

Docker:

  • 10-50ms+ latency (10,000x slower)
  • 100 message buffer, complex reconnection

Tests show:

  • Identical operations have vastly different timing
  • BadFakeNetwork test configs use 1-3ms delays (10-50x too fast)
  • Untested production code paths in reconnection/DNS/heartbeat

Recommendation: Update BadFakeNetwork tests to use Uniform::new(10, 50)

Documents the critical gap between FakeNetwork (tests) and Docker (production):

FakeNetwork:
- <1μs latency, guaranteed FIFO delivery
- 500 message buffer, no reconnection logic

Docker:
- 10-50ms+ latency (10,000x slower)
- 100 message buffer, complex reconnection

Tests show:
- Identical operations have vastly different timing
- BadFakeNetwork test configs use 1-3ms delays (10-50x too fast)
- Untested production code paths in reconnection/DNS/heartbeat

Recommendation: Update BadFakeNetwork tests to use Uniform::new(10, 50)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@linear
Copy link

linear bot commented Feb 10, 2026

@gecko-security
Copy link

This repository is currently set to inactive in Gecko Security. To enable automated security scanning for pull requests, please activate it in your Gecko Security dashboard.

@Mikerah
Copy link
Contributor Author

Mikerah commented Feb 19, 2026

Solved in #77

@Mikerah Mikerah closed this Feb 19, 2026
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