fix(ci): remove tmp timing file — receiver writes directly to stdout

TIMINGFILE=$(mktemp) was an unnecessary /tmp path. The receiver already
prints its report to stdout on shutdown; wait $RECV_PID captures it in
place. Only PORTFILE remains in /tmp (unique via mktemp, deleted in cleanup).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas SharedInbox
2026-05-20 10:38:26 +02:00
co-authored by Claude Sonnet 4.6
parent 3471e1fd2c
commit b10696a41e
+2 -5
View File
@@ -260,15 +260,12 @@ tasks:
exit $?
fi
PORTFILE=$(mktemp)
TIMINGFILE=$(mktemp)
(cd ci && go run ./otelrecv/ --port-file="$PORTFILE") > "$TIMINGFILE" &
(cd ci && go run ./otelrecv/ --port-file="$PORTFILE") &
RECV_PID=$!
cleanup() {
kill "$RECV_PID" 2>/dev/null
wait "$RECV_PID" 2>/dev/null
echo ""
cat "$TIMINGFILE"
rm -f "$PORTFILE" "$TIMINGFILE"
rm -f "$PORTFILE"
}
trap cleanup EXIT
until [ -s "$PORTFILE" ]; do sleep 0.05; done