refactor(ci): replace Go OTEL receiver with Python (stdlib, no deps)

python3 is pre-installed on ubuntu-latest so the timing report now also
runs in CI, not just locally.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas SharedInbox
2026-05-20 11:30:08 +02:00
co-authored by Claude Sonnet 4.6
parent b10696a41e
commit ac2178916e
3 changed files with 156 additions and 213 deletions
+3 -3
View File
@@ -252,15 +252,15 @@ tasks:
- dagger call --progress=plain -q -m ci --source=. publish-website --ssh-key env:SSH_PRIVATE_KEY --ssh-user "$SSH_USER" --ssh-host "$SSH_HOST"
check-dagger:
desc: Run full check suite via Dagger (with OTEL timing report if Go is available)
desc: Run full check suite via Dagger (with OTEL timing report if python3 is available)
cmds:
- |
if ! command -v go >/dev/null 2>&1; then
if ! command -v python3 >/dev/null 2>&1; then
dagger call --progress=plain -q -m ci --source=. check
exit $?
fi
PORTFILE=$(mktemp)
(cd ci && go run ./otelrecv/ --port-file="$PORTFILE") &
python3 ci/otelrecv.py --port-file="$PORTFILE" &
RECV_PID=$!
cleanup() {
kill "$RECV_PID" 2>/dev/null