fix: replace mktemp with PID-based temp path for BusyBox compat

BusyBox mktemp in alpine/k8s doesn't support .json suffix in template.
The mktemp failure triggered set -e, causing pipeline to report failure
despite all 93 tests passing.
This commit is contained in:
Celes Renata
2026-04-19 19:35:02 +00:00
parent 4df513d096
commit 1f69a27e3b
+1 -1
View File
@@ -456,7 +456,7 @@ if [ -n "$RUNNER_POD" ]; then
kubectl logs "$RUNNER_POD" -n "$NAMESPACE" 2>/dev/null || true kubectl logs "$RUNNER_POD" -n "$NAMESPACE" 2>/dev/null || true
# Try to copy profiling report # Try to copy profiling report
PROFILING_TMP=$(mktemp /tmp/profiling-report-XXXXXX.json) PROFILING_TMP="/tmp/profiling-report-$$.json"
if kubectl cp "$NAMESPACE/$RUNNER_POD:/tmp/profiling-report.json" "$PROFILING_TMP" 2>/dev/null; then if kubectl cp "$NAMESPACE/$RUNNER_POD:/tmp/profiling-report.json" "$PROFILING_TMP" 2>/dev/null; then
log "Profiling report collected" log "Profiling report collected"
PROFILING_JSON="$PROFILING_TMP" PROFILING_JSON="$PROFILING_TMP"