Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneesstack72

Relationships

#2131 Flaky test: otel_init_test.ts initTracing returns undefined when no traceparent

Opened by stack72 · 9/13/2026· Shipped 9/13/2026

src/infrastructure/tracing/otel_init_test.ts:105 — the test 'initTracing: returns undefined when no traceparent is set' intermittently fails. It asserts that the return value is undefined, but sometimes gets a BaseContext with a NonRecordingSpan instead.

Observed during the verification workflow for swamp-club#2108. The test failed on the first verification run (11542 passed, 1 failed) and passed on the second run (11543 passed, 0 failed) with no code changes between runs. The failure is unrelated to the changes in that PR (model_handlers.ts only).

The error output shows the test expected undefined but received a BaseContext containing a NonRecordingSpan with traceId '11111111111111111111111111111111'. This suggests process-global OpenTelemetry state leaking between test files during parallel execution.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 7 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/13/2026, 10:37:16 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/13/2026, 10:17:24 PM

Sign in to post a ripple.