From b10696a41ed76d7eeef8bfc217629dbf3a264155 Mon Sep 17 00:00:00 2001 From: Thomas SharedInbox Date: Wed, 20 May 2026 10:38:26 +0200 Subject: [PATCH] =?UTF-8?q?fix(ci):=20remove=20tmp=20timing=20file=20?= =?UTF-8?q?=E2=80=94=20receiver=20writes=20directly=20to=20stdout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Taskfile.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 5bda4df..d540b9e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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