Skip to content

Show ping/latency next to connection path score output#18

Merged
ehsanking merged 1 commit intomainfrom
ehsan/disable-ping-and-latency-tests
Apr 2, 2026
Merged

Show ping/latency next to connection path score output#18
ehsanking merged 1 commit intomainfrom
ehsan/disable-ping-and-latency-tests

Conversation

@ehsanking
Copy link
Copy Markdown
Owner

Motivation

  • Provide immediate, human-readable verification that connectivity checks actually measured reachability and latency by surfacing ping metrics alongside each successful connection path score.
  • Make it easier for users to trust a reported score without opening full reports or running separate tools.

Description

  • Added parsePingMetrics to iran_connectivity.js to extract transmitted, received, packetLossPercent, and averageLatencyMs from raw ping output.
  • Persisted parsed ping stats on each connectivity result as sourcePingStats and targetPingStats so metrics are available for reporting and future use.
  • Updated the success log for connection path scores to include inline badges showing {ping received/transmitted} and {latency <avg> ms} with N/A fallbacks when parsing fails.
  • All changes are additive and do not modify scoring logic or security/authorization behavior.

Testing

  • Ran the repository test suite with npm test which runs node --test tests/*.test.js, and all tests passed (6/6).
  • No other automated checks were modified or required for this change.

Codex Task

@ehsanking ehsanking merged commit a4973b8 into main Apr 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant