fix: let core.upstream refuse requests offline

RETROBIOS_OFFLINE was read by six callers and never by the network
gateway: a caller that did not pass offline=True sent the request,
untokened. core.offline holds the rule, open_retrying refuses with
OfflineError and the cached reads answer as an offline run. The callers
read the same predicate, and the tests that fake the network clear the
variable for themselves (tests.ONLINE).
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 00:20:03 +01:00
1 parent 409cc843f9
commit 83e810d1b3
23 files changed
+124 -17

No files matched your search

+1
View File
@@ -46,6 +46,7 @@ def _opener(failure):
return urlopen
@tests.ONLINE
class ManifestErrors(unittest.TestCase):
def fetch(self, failure):
# A 503 is retried after a wait: the waits are skipped, not the retries.