ci(perf): use POSIX sh options in the G4 step
CI / fmt + clippy + test (Linux x86_64) (push) Waiting to run
CI / schema instance validation + consumers (push) Waiting to run
CI / runtime contract (macos-latest) (push) Waiting to run
CI / runtime contract (windows-latest) (push) Waiting to run
Linux strict security lane (G-C) / strict isolation escape matrix (push) Waiting to run
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful

Woodpecker runs commands with /bin/sh (dash), which has no pipefail option.
The G4 script failed before measuring; use set -eu.
This commit is contained in:
cflmy committed 2026-11-21 19:58:37 +08:00
1 parent a3f3ecf9d0
commit 1199c88e3e
1 file changed
+1 -1
+1 -1
View File
@@ -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"