Skip to content

test: add nightly connectivity tests with stronger assertions #3511

@iduartgomez

Description

@iduartgomez

Problem

The current test_connection_growth_stall_regression test uses a small simulation (15 nodes, 20 virtual minutes) with moderate assertions to keep CI fast. This limits how tightly we can assert on connection growth speed and final topology quality due to run-to-run variance in small simulations.

Proposal

Add nightly-only connectivity tests with:

  • Larger scale: 50+ nodes, min_connections=10+, 1 virtual hour (per testing.md guidance)
  • Growth rate assertions: Checkpoint connection counts at multiple time intervals (e.g., 5m, 15m, 30m, 60m) and assert monotonic growth toward min_connections
  • Stronger final-state assertions: >= 90% of nodes at min_connections (per testing.md)
  • Fault recovery speed: After injecting faults, assert recovery to pre-fault levels within a bounded time window

These would run on a schedule (not per-PR) since they take several minutes each.

Context

PR #3510 tightened the existing regression test assertions but was limited by the small simulation size. Nightly tests can use realistic parameters without blocking CI.

Checklist

  • Add #[cfg(feature = "nightly_tests")] gated tests
  • 50-node topology formation test with median >= min_connections assertion
  • Growth rate checkpoint test (no plateau detection)
  • Fault injection + recovery speed test
  • CI schedule configuration for nightly runs

Metadata

Metadata

Assignees

Labels

A-developer-xpArea: developer experienceA-networkingArea: Networking, ring protocol, peer discoveryE-mediumExperience needed to fix/implement: Medium / intermediateT-enhancementType: Improvement to existing functionality

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions