Files
Strata/apps
Niko1221 fd40eb0fd8 net: setup's downloads and launch's model step say what they wait for, and a silent host fails in about 44 s, not 320 s (lane 15, item 1)
setup.py's size request (HEAD) for a download used to run 5 times with a 60 s limit and a 5 s sleep, silently: about 320 s per file, and
launch printed nothing meanwhile. Now every setup request on the download path goes through strata_control/netpolicy.py:
- the connection phase (lookup, connect, TLS, proxy CONNECT, the server's headers) gets 12 s, then one retry with 30 s, 2 s apart;
  no lookup answer, a refused port, an unreachable network, a refused certificate and HTTP 4xx fail at once;
- after 5 s a line "  Waiting for <host> to answer (<n> s so far) ..." is printed, then every 10 s;
- a host that failed after the whole window is not asked again for 10 minutes in the same process (memory only, never on disk);
- the failure names the host and says what to check and what still works offline (W3/W4/W5); the proxy and ModelScope hints follow.
Launch: the heartbeat also runs in the download phase, the waiting line becomes the status sentence (phase "waiting", W2), a new sentence is
always printed by the non-terminal printer (a second download's first figure was hidden), and a cancelled or stopped launch writes
"(you stopped it: <status>)" to the setup log. The app string "Waiting for {0} to answer ({1} s so far)" is added in nine languages
(translations are first drafts). conftest.py: every test starts with an empty host memory.

Tests: tests/terminal/test_netpolicy.py, test_net_launch_waits.py (local black hole, refusing port, a normal server), test_tls_trust.py,
test_no_acquisition.py, tools/test_setup_*.py (the fakes now patch the netpolicy.urlopen seam), apps/host/tests/net-waiting.test.mjs.
2026-11-10 19:44:31 +01:00
..