From 59cd9a047ca16520f4b455b146e3ce5cd57c0723 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Fri, 23 Oct 2026 04:18:38 +0000 Subject: [PATCH 1/3] test(scripts): run live chromium egress tests Add a live chromium egress test invocation to the feature test script so the egress suite runs alongside the other live browser tests. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- scripts/test-features.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/test-features.sh b/scripts/test-features.sh index a7b75f57b..8bc67c95b 100755 --- a/scripts/test-features.sh +++ b/scripts/test-features.sh @@ -14,6 +14,7 @@ esac cargo test --locked --workspace cargo test --locked --workspace --all-features RUST_TEST_THREADS=1 TINYCOMPUTER_LIVE_BROWSER_TESTS=1 cargo test --locked -p tinycomputer-browser --features agent-browser live_ +RUST_TEST_THREADS=1 TINYCOMPUTER_LIVE_BROWSER_EGRESS_TESTS=1 cargo test --locked -p tinycomputer --features static-link --lib live_chromium_ cargo test --locked -p tinycomputer --features static-link cargo run --locked -p tinycomputer-examples --bin basic forbidden="$(cargo tree -p tinycomputer-bus -e normal,build --prefix none | grep -Ei 'tinybus|tokio|reqwest|ureq|hyper|rusqlite|git2|agent-desktop' || true)" From 6536cc0256943793dd452f2b4e9ecb1b6c2f656a Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Fri, 23 Oct 2026 04:32:44 +0000 Subject: [PATCH 2/3] test(browser_egress): bind denied listener on ipv6 loopback The live egress test bound its denied listener to 127.0.0.2, which macOS does not accept without an interface alias, so the test failed on that platform. It now binds to the IPv6 loopback address instead, which is available by default. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../src/tinybus_module/browser_egress_live_tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs b/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs index 6dc89899e..f9e77d6ae 100644 --- a/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs @@ -140,7 +140,9 @@ async fn live_chromium_module_dials_only_the_host_returned_socket_and_rejects_ch let _guard = LIVE_TEST_LOCK.lock().await; let allowed_listener = tokio::net::TcpListener::bind("127.0.0.1:0").await?; let port = allowed_listener.local_addr()?.port(); - let denied_listener = tokio::net::TcpListener::bind(("127.0.0.2", port)).await?; + // Use a distinct loopback address that does not require an interface alias + // (macOS only binds 127.0.0.1 by default). + let denied_listener = tokio::net::TcpListener::bind((std::net::Ipv6Addr::LOCALHOST, port)).await?; let allowed_address = allowed_listener.local_addr()?.to_string(); let rebound_address = denied_listener.local_addr()?.to_string(); let extra_allowed_connections = Arc::new(AtomicUsize::new(0)); From ae9714f65f0fc7974989ac0881edb71d51ee54cc Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Fri, 23 Oct 2026 04:33:09 +0000 Subject: [PATCH 3/3] test(browser_egress): wrap long listener bind line Reformatted the denied listener bind call in the live chromium egress test to fit the line width limit. No behaviour change. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../src/tinybus_module/browser_egress_live_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs b/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs index f9e77d6ae..db6701b0d 100644 --- a/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/browser_egress_live_tests.rs @@ -142,7 +142,8 @@ async fn live_chromium_module_dials_only_the_host_returned_socket_and_rejects_ch let port = allowed_listener.local_addr()?.port(); // Use a distinct loopback address that does not require an interface alias // (macOS only binds 127.0.0.1 by default). - let denied_listener = tokio::net::TcpListener::bind((std::net::Ipv6Addr::LOCALHOST, port)).await?; + let denied_listener = + tokio::net::TcpListener::bind((std::net::Ipv6Addr::LOCALHOST, port)).await?; let allowed_address = allowed_listener.local_addr()?.to_string(); let rebound_address = denied_listener.local_addr()?.to_string(); let extra_allowed_connections = Arc::new(AtomicUsize::new(0));