fix workflow ss not found (#16085)

### What problem does this PR solve?
fix workflow ss not found
This commit is contained in:
maoyifeng
2026-06-16 17:46:07 +08:00
committed by GitHub
parent ff2e76e77c
commit 1feb1c4785

View File

@@ -186,6 +186,8 @@ jobs:
- name: Prepare function test environment
working-directory: docker
run: |
# install ss
sudo apt update && sudo apt install -y iproute2
# Determine runner number (default to 1 if not found)
RUNNER_NUM=$(sudo docker inspect $(hostname) --format '{{index .Config.Labels "com.docker.compose.container-number"}}' 2>/dev/null || true)
RUNNER_NUM=${RUNNER_NUM:-1}