From 12971cf8efd92dcb1d16016452efdad313ebe2bc Mon Sep 17 00:00:00 2001 From: Arqu Date: Mon, 1 Sep 2025 18:42:19 +0000 Subject: [PATCH] deploy: 9e393b2dccdb24ee088ec7c7b4d641f4d0c69dd4 --- pr/3448/docs/src/iroh/net_report.rs.html | 12 +- .../docs/src/iroh/net_report/probes.rs.html | 165 +++++++++--------- 2 files changed, 88 insertions(+), 89 deletions(-) diff --git a/pr/3448/docs/src/iroh/net_report.rs.html b/pr/3448/docs/src/iroh/net_report.rs.html index 2458d5a20c..c76515a34d 100644 --- a/pr/3448/docs/src/iroh/net_report.rs.html +++ b/pr/3448/docs/src/iroh/net_report.rs.html @@ -461,7 +461,7 @@ 461 .instrument(info_span!("QAD-IPv4", %relay_url)), 462 ); 463 -464 // Port variation probe (QUIC port + 1) - disable IP mapping to avoid conflicts +464 // Port variation probe (QUIC port + 1) 465 if let Ok(relay_addr) = 466 reportgen::get_relay_addr_ipv4(&dns_resolver, &relay_node).await 467 { @@ -472,8 +472,8 @@ 472 .run_until_cancelled_owned(time::timeout( 473 PROBES_TIMEOUT, 474 run_probe_v4( -475 None, // Disable IP mapping for port variation to avoid conflicts -476 relay_node, +475 ip_mapped_addrs, +476 relay_node, 477 quic_client, 478 dns_resolver, 479 Some(port_variation), @@ -511,7 +511,7 @@ 511 .instrument(info_span!("QAD-IPv6", %relay_url)), 512 ); 513 -514 // Port variation probe (QUIC port + 1) - disable IP mapping to avoid conflicts +514 // Port variation probe (QUIC port + 1) 515 if let Ok(relay_addr) = 516 reportgen::get_relay_addr_ipv6(&dns_resolver, &relay_node).await 517 { @@ -522,8 +522,8 @@ 522 .run_until_cancelled_owned(time::timeout( 523 PROBES_TIMEOUT, 524 run_probe_v6( -525 None, // Disable IP mapping for port variation to avoid conflicts -526 relay_node, +525 ip_mapped_addrs, +526 relay_node, 527 quic_client, 528 dns_resolver, 529 Some(port_variation), diff --git a/pr/3448/docs/src/iroh/net_report/probes.rs.html b/pr/3448/docs/src/iroh/net_report/probes.rs.html index 43a1a95969..1888a4f7dd 100644 --- a/pr/3448/docs/src/iroh/net_report/probes.rs.html +++ b/pr/3448/docs/src/iroh/net_report/probes.rs.html @@ -197,86 +197,85 @@ 197 BTreeSet::from([ 198 Probe::QadIpv4, 199 Probe::QadIpv6, -200 // TODO: Re-enable once IPv4-mapped IPv6 address conversion is fixed -201 // Probe::QadIpv4PortVariation, -202 // Probe::QadIpv6PortVariation, -203 Probe::Https -204 ]) -205 } -206 -207 #[tokio::test] -208 async fn test_initial_probeplan() { -209 let (_servers, relay_map) = test_utils::relay_map(2).await; -210 let relay_node_1 = relay_map.nodes().next().unwrap(); -211 let relay_node_2 = relay_map.nodes().nth(1).unwrap(); -212 let plan = ProbePlan::initial(&relay_map, &default_protocols()); -213 -214 let expected_plan: ProbePlan = [ -215 probeset! { -216 proto: Probe::Https, -217 relay: relay_node_1.clone(), -218 delays: [ -219 Duration::from_millis(200), -220 Duration::from_millis(300), -221 Duration::from_millis(400) -222 ], -223 }, -224 probeset! { -225 proto: Probe::Https, -226 relay: relay_node_2.clone(), -227 delays: [ -228 Duration::from_millis(200), -229 Duration::from_millis(300), -230 Duration::from_millis(400) -231 ], -232 }, -233 ] -234 .into_iter() -235 .collect(); -236 -237 println!("expected:"); -238 println!("{expected_plan}"); -239 println!("actual:"); -240 println!("{plan}"); -241 // The readable error: -242 assert_eq!(plan.to_string(), expected_plan.to_string()); -243 // Just in case there's a bug in the Display impl: -244 assert_eq!(plan, expected_plan); -245 } -246 -247 #[tokio::test] -248 async fn test_initial_probeplan_some_protocols() { -249 let (_servers, relay_map) = test_utils::relay_map(2).await; -250 let relay_node_1 = relay_map.nodes().next().unwrap(); -251 let relay_node_2 = relay_map.nodes().nth(1).unwrap(); -252 let plan = ProbePlan::initial(&relay_map, &BTreeSet::from([Probe::Https])); -253 -254 let expected_plan: ProbePlan = [ -255 probeset! { -256 proto: Probe::Https, -257 relay: relay_node_1.clone(), -258 delays: [Duration::from_millis(200), -259 Duration::from_millis(300), -260 Duration::from_millis(400)], -261 }, -262 probeset! { -263 proto: Probe::Https, -264 relay: relay_node_2.clone(), -265 delays: [Duration::from_millis(200), -266 Duration::from_millis(300), -267 Duration::from_millis(400)], -268 }, -269 ] -270 .into_iter() -271 .collect(); -272 -273 println!("expected:"); -274 println!("{expected_plan}"); -275 println!("actual:"); -276 println!("{plan}"); -277 // The readable error: -278 assert_eq!(plan.to_string(), expected_plan.to_string()); -279 // Just in case there's a bug in the Display impl: -280 assert_eq!(plan, expected_plan); -281 } -282} \ No newline at end of file +200 Probe::QadIpv4PortVariation, +201 Probe::QadIpv6PortVariation, +202 Probe::Https +203 ]) +204 } +205 +206 #[tokio::test] +207 async fn test_initial_probeplan() { +208 let (_servers, relay_map) = test_utils::relay_map(2).await; +209 let relay_node_1 = relay_map.nodes().next().unwrap(); +210 let relay_node_2 = relay_map.nodes().nth(1).unwrap(); +211 let plan = ProbePlan::initial(&relay_map, &default_protocols()); +212 +213 let expected_plan: ProbePlan = [ +214 probeset! { +215 proto: Probe::Https, +216 relay: relay_node_1.clone(), +217 delays: [ +218 Duration::from_millis(200), +219 Duration::from_millis(300), +220 Duration::from_millis(400) +221 ], +222 }, +223 probeset! { +224 proto: Probe::Https, +225 relay: relay_node_2.clone(), +226 delays: [ +227 Duration::from_millis(200), +228 Duration::from_millis(300), +229 Duration::from_millis(400) +230 ], +231 }, +232 ] +233 .into_iter() +234 .collect(); +235 +236 println!("expected:"); +237 println!("{expected_plan}"); +238 println!("actual:"); +239 println!("{plan}"); +240 // The readable error: +241 assert_eq!(plan.to_string(), expected_plan.to_string()); +242 // Just in case there's a bug in the Display impl: +243 assert_eq!(plan, expected_plan); +244 } +245 +246 #[tokio::test] +247 async fn test_initial_probeplan_some_protocols() { +248 let (_servers, relay_map) = test_utils::relay_map(2).await; +249 let relay_node_1 = relay_map.nodes().next().unwrap(); +250 let relay_node_2 = relay_map.nodes().nth(1).unwrap(); +251 let plan = ProbePlan::initial(&relay_map, &BTreeSet::from([Probe::Https])); +252 +253 let expected_plan: ProbePlan = [ +254 probeset! { +255 proto: Probe::Https, +256 relay: relay_node_1.clone(), +257 delays: [Duration::from_millis(200), +258 Duration::from_millis(300), +259 Duration::from_millis(400)], +260 }, +261 probeset! { +262 proto: Probe::Https, +263 relay: relay_node_2.clone(), +264 delays: [Duration::from_millis(200), +265 Duration::from_millis(300), +266 Duration::from_millis(400)], +267 }, +268 ] +269 .into_iter() +270 .collect(); +271 +272 println!("expected:"); +273 println!("{expected_plan}"); +274 println!("actual:"); +275 println!("{plan}"); +276 // The readable error: +277 assert_eq!(plan.to_string(), expected_plan.to_string()); +278 // Just in case there's a bug in the Display impl: +279 assert_eq!(plan, expected_plan); +280 } +281} \ No newline at end of file