Skip to content

Use all your internet connections at once on Windows, macOS, Linux and Android: per-connection load balancing over Wi-Fi, Ethernet, mobile data and phone tethers

CI: retry openSUSE refresh, wait for kill -9 cleanup on macOS (#40)

Rohit Mahtob7d9741815b9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 28a84ef..f9f0574 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -176,7 +176,11 @@ jobs:
run: |
docker run --rm --network host --cap-add NET_ADMIN --cap-add NET_RAW opensuse/tumbleweed bash -ec '
zypper --non-interactive addrepo http://localhost:8000/rpm/net-merge.repo
- zypper --non-interactive --gpg-auto-import-keys refresh
+ # the openSUSE mirrors time out now and then: retry before calling it a failure
+ for i in 1 2 3; do
+ zypper --non-interactive --gpg-auto-import-keys refresh && break
+ [ $i = 3 ] && exit 1; sleep 15
+ done
zypper --non-interactive install net-merge
rpm -q net-merge
net-merge version'
diff --git a/scripts/macos-smoke.sh b/scripts/macos-smoke.sh
index 8eac729..95959cf 100755
--- a/scripts/macos-smoke.sh
+++ b/scripts/macos-smoke.sh
@@ -75,7 +75,9 @@ sudo "$BIN" run -state-dir "$STATE" -log "$STATE-2.log" -stats 0 -for 120s &
wait_on || fail "second start did not turn on"
pid=$(jq -r .PID "$STATE/status.json" 2>/dev/null)
sudo kill -9 "$pid"
-sleep 1
+for _ in 1 2 3 4 5 6 7 8 9 10; do # the kernel drops the utun once the killed process is gone
+ [ "$(captured)" = 0 ] && break; sleep 1
+done
[ "$(captured)" = 0 ] && pass "capture routes gone after kill -9" || fail "capture routes survived kill -9"
[ "$(http)" = 200 ] && pass "internet works after kill -9" || fail "internet after kill -9 failed"
sudo "$BIN" cleanup >/dev/null