Host-sensitive test failures: macOS prefetch fixture read, robots scrape worker budget, taffy Style size
Three tests fail on some hosts at a005d16, independent of any code change. Production code is not affected; the failures come from test fixtures and a stale expectation.
Environment: a005d16, Rust 1.94.1, cargo-nextest 0.9.146, release builds. macOS 27.0 on Apple Silicon and Ubuntu 26.04 on x86_64.
1. page::tests::page_transport_prefetches_once_and_capture_reuses_the_bytes (macOS, intermittent)
cargo nextest run --release --features render,stealth -p obscura-browser -E 'test(page_transport_prefetches_once_and_capture_reuses_the_bytes)'Running the single test 50 times on macOS: 49/50 passed. Failures are either assertion left == right failed, left: 0, right: 1 (page.rs:8095) or the request line not starting with GET /asset.svg . Linux: 50/50.
The fixture's accepted TcpStream can inherit the listener's nonblocking mode on macOS. The first read can return WouldBlock before the request arrives; unwrap_or(0) turns that into an empty request and the fixture answers without it.
2. obey_robots_reaches_scrape_worker_and_blocks_target_request (loaded hosts)
The test passes --timeout 5 to scrape. On a heavily loaded macOS host (release run on 22d3f2d; this test file is unchanged in a005d16) it failed after 5.04 s, before the scrape worker had started and read its first command. It passes on idle hosts (4/4 in three rounds on both platforms). The test checks policy propagation to the worker, not executable startup time.
3. style::tests::style_sizes in vendored taffy (deterministic)
Running the vendored crate as a standalone workspace (vendor/taffy, cargo nextest run --release --lib):
Expected taffy::style::Style for be 544 byte(s) but it was 552 byte(s)108/109 on both platforms, on every run. Style<String> is 552 bytes and Style<Arc<str>> is 520 bytes.
A test-only PR follows.
Source: h4ckf0r0day/obscura