Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix connection timeout errors caused by far away relays #7119

Conversation

MarkusPettersson98
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 commented Nov 4, 2024

This PR introduces some changes to end-to-end test cases which has been shown to be particularly prone to timeout issues during the connecting phase. In an attempt to reduce the perceived flakiness, we restrict what relays may be selected to relays which are geographically close to the client under test in order to reduce the amount of latency in the system.

Looks promising: https://github.com/mullvad/mullvadvpn-app/actions/runs/11659693517/job/32460901751


This change is Reviewable

Copy link

linear bot commented Nov 4, 2024

dlon
dlon previously approved these changes Nov 4, 2024
Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@MarkusPettersson98 MarkusPettersson98 marked this pull request as draft November 5, 2024 09:41
@MarkusPettersson98 MarkusPettersson98 force-pushed the fix-connection-timeout-errors-caused-by-far-away-relays-des-1419 branch 3 times, most recently from 724fbe9 to d74d0e0 Compare November 8, 2024 11:07
@MarkusPettersson98 MarkusPettersson98 marked this pull request as ready for review November 8, 2024 12:03
@MarkusPettersson98 MarkusPettersson98 force-pushed the fix-connection-timeout-errors-caused-by-far-away-relays-des-1419 branch 2 times, most recently from e160eed to be778b2 Compare November 8, 2024 14:19
Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@MarkusPettersson98 MarkusPettersson98 force-pushed the fix-connection-timeout-errors-caused-by-far-away-relays-des-1419 branch 4 times, most recently from b695dd4 to b67023c Compare November 12, 2024 07:37
Limit relay selection in
`test_quantum_resistant_multihop_shadowsocks_tunnel` to reduce flakiness

Hopefully this should be able to (at least partially) mitigate
timeout-related issues.
Limit relay selection in
`test_quantum_resistant_multihop_udp2tcp_tunnel` to reduce flakiness.

Hopefully this should be able to (at least partially) mitigate
timeout-related issues.
Limit relay selection in
`test_quantum_resistant_tunnel` to reduce flakiness.

Hopefully this should be able to (at least partially) mitigate timeout
related issues.
Limit relay selection in `test_multihop` to reduce flakiness.

Hopefully this should be able to (at least partially) mitigate timeout
related issues.
Limit relay selection in
`test_wireguard_over_shadowsocks` to reduce flakiness.

Hopefully this should be able to (at least partially) mitigate timeout
related issues.
@MarkusPettersson98 MarkusPettersson98 force-pushed the fix-connection-timeout-errors-caused-by-far-away-relays-des-1419 branch from b67023c to 09b0542 Compare November 12, 2024 08:08
@MarkusPettersson98 MarkusPettersson98 merged commit 1320907 into main Nov 12, 2024
58 checks passed
@MarkusPettersson98 MarkusPettersson98 deleted the fix-connection-timeout-errors-caused-by-far-away-relays-des-1419 branch November 12, 2024 08:32
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