Skip to content

[Dummy PR to validate the failing test for Photon os]Add timeout parameter to network.traceroute to prevent CI flakes#68844

Open
sujitdb wants to merge 1 commit intosaltstack:masterfrom
sujitdb:fix/network-traceroute-timeout
Open

[Dummy PR to validate the failing test for Photon os]Add timeout parameter to network.traceroute to prevent CI flakes#68844
sujitdb wants to merge 1 commit intosaltstack:masterfrom
sujitdb:fix/network-traceroute-timeout

Conversation

@sujitdb
Copy link
Copy Markdown
Collaborator

@sujitdb sujitdb commented Mar 25, 2026

Summary

  • Added optional timeout parameter to network.traceroute() to prevent the command from hanging indefinitely in restricted network environments
  • The functional test test_network_traceroute now uses timeout=60 to prevent >90s pytest timeouts on CI runners (Photon OS 5, etc.)
  • Added unit tests for the new timeout parameter

Root Cause

The traceroute command hangs when ICMP/UDP packets are blocked (e.g., GitHub Actions runners on Azure), causing 30 hops × 5s × 3 probes = ~150s, exceeding the 90s pytest timeout.

Test plan

  • Unit tests pass on Photon OS 5 and Debian 11 containers
  • Functional test passes locally with timeout
  • CI: Watch Photon OS 5 functional zeromq 2 job

The traceroute command can hang indefinitely in environments with
restricted network access (e.g., GitHub Actions runners on Azure)
where ICMP/UDP probe packets are blocked, causing each hop to wait
the full default timeout (5s × 3 probes × 30 hops = ~150s).

This adds an optional `timeout` parameter to `network.traceroute()`
that is passed through to `cmd.run`, and uses it in the functional
test with a 60-second limit to prevent the >90s pytest timeout.

Made-with: Cursor
@sujitdb sujitdb requested a review from a team as a code owner March 25, 2026 23:09
@sujitdb sujitdb changed the title Add timeout parameter to network.traceroute to prevent CI flakes [Dummy PR to validate the failing test for Photon os]Add timeout parameter to network.traceroute to prevent CI flakes Mar 25, 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