Skip to content

Drop the Pyodide test that resolved a real host name - #8936

Merged
danlapid merged 1 commit into
mainfrom
dlapid/no-dns-in-pyodide-test
Nov 28, 2026
Merged

danlapid merged 1 commit into
mainfrom
dlapid/no-dns-in-pyodide-test

Conversation

@danlapid

Copy link
Copy Markdown
Collaborator

an_unresolvable_host_names_the_request looked up pyodide-bundle.invalid through the system resolver. How long that takes depends on the machine's DNS configuration, not on workerd. On some CI hosts it took about 1 s, which was nearly the whole workerd-server_test run. On others the resolver retried search domains for long enough to use up the crate test's 15 s timeout. The cases after it never ran, because libtest runs them one at a time in name order.

A failed lookup and a refused connection reach the Pyodide code the same way: as the error of kj_hyper::client::connect_allowed(), which download() wraps with request_error(). a_refused_connection_names_the_request already checks that wrapping without leaving the machine, so this drops the lookup test instead of replacing it.

workerd-server_test, five runs each: debug max 0.2 s (was 1.2 s), ASan max 0.6 s.

🤖 Generated with Claude Code

an_unresolvable_host_names_the_request looked up
pyodide-bundle.invalid through the system resolver. How long that
takes depends on the machine's DNS configuration, not on workerd:
about 1 s on some CI hosts, and on others long enough to use up the
crate test's whole 15 s timeout, retrying search domains before
the resolver gave up. Every case after it was then left unrun.

A failed lookup and a refused connection reach the Pyodide code the
same way, as the error of kj_hyper::client::connect_allowed(), which
download() wraps with request_error().
a_refused_connection_names_the_request already checks that wrapping,
without leaving the machine, so this drops the lookup test rather
than replacing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danlapid
danlapid marked this pull request as ready for review November 28, 2026 01:39
@danlapid
danlapid requested review from a team as code owners November 28, 2026 01:39
@danlapid
danlapid merged commit 42789fb into main Nov 28, 2026
24 checks passed
@danlapid
danlapid deleted the dlapid/no-dns-in-pyodide-test branch November 28, 2026 01:40
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.

1 participant