Fix flaky QUIC hole-punching tests (#314)

This commit is contained in:
Thomas Eizinger 2023-10-25 13:23:34 +11:00 committed by GitHub
parent 261c1978ec
commit 9247c9fd99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 4 deletions

View File

@ -11,9 +11,19 @@ on:
name: libp2p holepunching interop test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-hole-punch-interop:
runs-on: ['self-hosted', 'linux', 'x64', '4xlarge'] # https://github.com/pl-strflt/tf-aws-gh-runner/blob/main/runners.tf
# Uncomment to test for flakiness.
# strategy:
# matrix:
# dim1: ['a', 'b', 'c', 'd', 'e']
# dim2: [1, 2, 3, 4, 5]
# fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/run-interop-hole-punch-test

View File

@ -1,5 +1,5 @@
image_name := rust-v0.52
commitSha := d99fa2f87406cbd1a207b29f8cbcec32b7b180f7
commitSha := 1ead41ed04ce89e50b11a078586e47d89e17d3c4
all: image.json

View File

@ -23,9 +23,8 @@ const RELAY_QUIC_ADDRESS: &str = "RELAY_QUIC_ADDRESS";
#[tokio::main]
async fn main() -> Result<()> {
env_logger::builder()
.filter_level(log::LevelFilter::Debug)
.parse_filters(
"netlink_proto=warn,rustls=warn,multistream_select=warn,libp2p_swarm::connection=info",
"debug,netlink_proto=warn,rustls=warn,multistream_select=warn,libp2p_swarm::connection=info,quinn=debug,libp2p_quic=trace",
)
.parse_default_env()
.init();

View File

@ -54,7 +54,7 @@ function buildSpec(name: string, dialerImage: string, listenerImage: string, rou
set -ex;
ROUTER_IP=$$(dig +short ${actor}_router)
INTERNET_SUBNET=$$(curl --silent --unix-socket /var/run/docker.sock http://localhost/networks/${internetNetworkName} | jq -r '.IPAM.Config[0].Subnet')
INTERNET_SUBNET=$$(curl --fail --silent --unix-socket /var/run/docker.sock http://localhost/networks/${internetNetworkName} | jq -r '.IPAM.Config[0].Subnet')
ip route add $$INTERNET_SUBNET via $$ROUTER_IP dev eth0
@ -138,6 +138,7 @@ function buildSpec(name: string, dialerImage: string, listenerImage: string, rou
environment: {
TRANSPORT: transport,
MODE: "listen",
SSLKEYLOGFILE: "/tmp/tls.key"
},
networks: {
lan_listener: {},