Skip to content

use synctest for the RTT and reordering tests#5464

Merged
marten-seemann merged 1 commit intomasterfrom
rtt-test-synctest
Dec 2, 2025
Merged

use synctest for the RTT and reordering tests#5464
marten-seemann merged 1 commit intomasterfrom
rtt-test-synctest

Conversation

@marten-seemann
Copy link
Copy Markdown
Member

@marten-seemann marten-seemann commented Nov 28, 2025

Depends on #5463.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 28, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
2004 1 2003 1
View the top 1 failed test(s) by shortest run time
github.com/quic-go/quic-go/integrationtests/self_test::[build failed]
Stack Traces | 0s run time
Build error

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the RTT and reordering integration tests from using a proxy-based approach to using synctest for deterministic time control and simnet for network simulation. This modernization improves test reliability and removes dependencies on the legacy proxy infrastructure.

Key Changes

  • Migrated to synctest: Both tests now use synctest.Test() wrapper for deterministic time control, eliminating timing-related flakiness
  • Replaced proxy with simnet: Network conditions are now simulated using the simnet package instead of the quicproxy package, providing more precise control over latency and bandwidth
  • Enhanced RTT validation: Added explicit RTT assertions in TestDownloadWithFixedRTT to verify both client and server measure the expected RTT values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread integrationtests/self/rtt_test.go
@marten-seemann marten-seemann force-pushed the rtt-test-synctest branch 2 times, most recently from 818f225 to 80ad82c Compare November 30, 2025 05:01
@marten-seemann marten-seemann force-pushed the simnet-update branch 3 times, most recently from 4bdd948 to 2903d7f Compare November 30, 2025 08:25
@marten-seemann marten-seemann changed the base branch from simnet-update to master December 2, 2025 15:41
@marten-seemann marten-seemann marked this pull request as ready for review December 2, 2025 15:41
@marten-seemann marten-seemann merged commit 7aee135 into master Dec 2, 2025
38 of 39 checks passed
@marten-seemann marten-seemann deleted the rtt-test-synctest branch December 3, 2025 06:10
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.

2 participants