ci(interop-netem): Enhance netem workflow with Go and pre-flight checks

This commit is contained in:
Nils Andreas Svee committed 2026-10-26 16:05:34 +07:00
1 parent 9bb3fd63d8
commit da433f9902
1 file changed
+22 -1
+22 -1
View File
@@ -34,12 +34,33 @@ jobs:
with: with:
cache: false cache: false
- name: Install Go toolchain
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: '1.27.3'
cache: false
- name: Install netem dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends iproute2 python3
- name: Check host tools and network administration access - name: Check host tools and network administration access
run: | run: |
ip -V ip -V
tc -V tc -V
go version go version
sudo -n true # Exercise the namespace, veth, and qdisc operations the harness needs.
# sudo/NET_ADMIN alone do not establish mount/namespace permissions.
sudo -n bash -euo pipefail <<'SH'
probe_ns="irtt-preflight-$$"
ip netns add "$probe_ns"
trap 'ip netns delete "$probe_ns"' EXIT
ip netns exec "$probe_ns" sh -ec '
ip link add probe0 type veth peer name probe1
tc qdisc add dev probe0 root netem delay 1ms
'
SH
- name: Install upstream irtt - name: Install upstream irtt
run: | run: |