Skip to content

LLT-7637: natlab link detection test fails due to timeout - #1970

Merged
tomaszpatejko merged 1 commit into
mainfrom
LLT-7637-natlab-link-detection-test-fails-due-to-timeout
Aug 28, 2026
Merged

LLT-7637: natlab link detection test fails due to timeout#1970
tomaszpatejko merged 1 commit into
mainfrom
LLT-7637-natlab-link-detection-test-fails-due-to-timeout

Conversation

@tomaszpatejko

@tomaszpatejko tomaszpatejko commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Problem

By default on Windows, ping has its wait time for reply set to 4000ms (4s). For natlab test test_event_link_state_peer_doesnt_respond, on Windows, that ping is sent every ~5s which colludes with session_keeper's ICMPv6 keepalive messages sent every 5s.

If such collision happens then within wg's 1s polling window data is both sent and received. This in turn prevents BytesAndTimestamps::first_tx_after_rx to be set to Some. This variable is set to Some when within a polling window data is only sent and no data is received.

Test test_event_link_state_peer_doesnt_respond waits for BytesAndTimestamps:: first_tx_after_rx to be set to Some. If that doesn't happen in 300s, Timeout exception is thrown and the test crashes.

Fixes LLT-Fixes LLT-7637.

Solution

Set ping wait for reply to 1s for Windows natlab tests.

☑️ Definition of Done checklist

  • Commit history is clean (requirements)
  • README.md is updated
  • Functionality is covered by unit or integration tests

@tomaszpatejko
tomaszpatejko requested a review from a team as a code owner August 26, 2026 11:49
@tomaszpatejko
tomaszpatejko force-pushed the LLT-7637-natlab-link-detection-test-fails-due-to-timeout branch from 4cb9e45 to f3d26d8 Compare August 26, 2026 11:54
@tomaszpatejko tomaszpatejko changed the title Set natlab Windows ping wait time to 1000ms LLT-7637: natlab link detection test fails due to timeout Aug 26, 2026
@tomaszpatejko
tomaszpatejko force-pushed the LLT-7637-natlab-link-detection-test-fails-due-to-timeout branch from f3d26d8 to 0041c6d Compare August 27, 2026 05:05
@tomaszpatejko
tomaszpatejko force-pushed the LLT-7637-natlab-link-detection-test-fails-due-to-timeout branch from 0041c6d to 7514e9a Compare August 27, 2026 16:19
@tomaszpatejko
tomaszpatejko force-pushed the LLT-7637-natlab-link-detection-test-fails-due-to-timeout branch from 7514e9a to 5dc618e Compare August 27, 2026 18:10
stalowyjez
stalowyjez previously approved these changes Aug 28, 2026

@stalowyjez stalowyjez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, +1

Comment thread .unreleased/LLT-7637_natlab_link_detection_test_fails_due_to_timeout Outdated
@matislovas

Copy link
Copy Markdown
Collaborator

+1

By default on Windows, ping has its wait time for reply set to 4000ms (4s).
For natlab test test_event_link_state_peer_doesnt_respond, on Windows,
that ping is sent every ~5s which colludes with session_keeper's ICMPv6
keepalive messages sent every 5s.

If such collision happens then within wg's 1s polling window data is both sent
and received. This in turn prevents BytesAndTimestamps::first_tx_after_rx to
be set to Some. This variable is set to Some when within a polling window
data is only sent and no data is received.

Test test_event_link_state_peer_doesnt_respond waits for BytesAndTimestamps::
first_tx_after_rx to be set to Some. If that doesn't happen in 300s, Timeout
exception is thrown and the test crashes.

Fixes LLT-Fixes LLT-7637.
@tomaszpatejko
tomaszpatejko force-pushed the LLT-7637-natlab-link-detection-test-fails-due-to-timeout branch from 5dc618e to 125c42b Compare August 28, 2026 12:44
@tomaszpatejko
tomaszpatejko added this pull request to the merge queue Aug 28, 2026
Merged via the queue into main with commit aab276e Aug 28, 2026
62 checks passed
@tomaszpatejko
tomaszpatejko deleted the LLT-7637-natlab-link-detection-test-fails-due-to-timeout branch August 28, 2026 15:59
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.

3 participants