test(integration): scope offline resolution to the restricted runner

This commit is contained in:
Yuneng Jiang 2026-11-02 12:14:09 -08:00
parent 5133050db6
commit 4eb5e1e326
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -128,6 +128,8 @@ fi
sudo iptables -L integration_only -n -v -x > "$results/egress-guard.txt"
awk '$3 == "REJECT" && $1 > 0 { rejected=1 } END { exit !rejected }' "$results/egress-guard.txt"
export UV_OFFLINE=true
if [ "$mode" = parity ]; then
export INTEGRATION_WORKERS=1
else

View file

@ -110,7 +110,7 @@ def _install_base_native(worktree: Path, repo_root: Path) -> None:
}
_run(
[
"uv", "pip", "install", "--offline", "--python", sys.executable, "--no-deps",
"uv", "pip", "install", "--python", sys.executable, "--no-deps",
"--target", str(worktree.parent / "native-install"), "--editable", str(worktree),
],
cwd=worktree,