okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
2b36e8a02
main
1# Strict offline, verified against a real child process (checklist U08) 2# repo: f48650a020394c59b640dc2cdd5b3ff9f42b93b9 3 4# The claim: under --offline, nothing in the process tree reaches the network. The test spawns an 5# actual Python child with the environment child_env() builds and asks the child what it sees. 6 7 offline=False: 8 HF_HUB_OFFLINE None 9 TRANSFORMERS_OFFLINE None 10 PIP_NO_INDEX None 11 NO_PROXY None 12 STRATA_OFFLINE None 13 offline=True: 14 HF_HUB_OFFLINE '1' 15 TRANSFORMERS_OFFLINE '1' 16 PIP_NO_INDEX '1' 17 NO_PROXY '*' 18 STRATA_OFFLINE '1' 19 20 A profile cannot remove the policy by naming the same variable: 21 profile asked HF_HUB_OFFLINE=0 -> '1' (the policy is applied last)