From 1199c88e3e461f0443f99c5bf528ddd6a24aa2c6 Mon Sep 17 00:00:00 2001 From: cflmy Date: Sat, 21 Nov 2026 19:58:37 +0800 Subject: [PATCH] ci(perf): use POSIX sh options in the G4 step Woodpecker runs commands with /bin/sh (dash), which has no pipefail option. The G4 script failed before measuring; use set -eu. --- .woodpecker/performance.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/performance.yml b/.woodpecker/performance.yml index b06c842..72013b3 100644 --- a/.woodpecker/performance.yml +++ b/.woodpecker/performance.yml @@ -18,7 +18,7 @@ steps: - apt-get install -y --no-install-recommends python3 util-linux ca-certificates - cargo build --release --locked -p marqdo-cli - | - set -euo pipefail + set -eu allowed="$(awk '/^Cpus_allowed_list:/ {print $2}' /proc/self/status)" cpu_list="${MARQDO_PERF_CPU_LIST:-$(printf '%s' "$allowed" | cut -d, -f1 | cut -d- -f1)}" echo "G4_NODE host=$(uname -n) kernel=$(uname -r) arch=$(uname -m) allowed_cpus=$allowed pin=$cpu_list"