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

Relationships

#2445 Flaky test: otel worker correlation sees a fresh trace id under the full suite

Opened by stack72 · 9/23/2026· Shipped 9/25/2026

Problem

integration/otel_logs_worker_correlation_test.ts (test: worker correlation: child logs carry the propagated parent trace id, line 91) fails intermittently when the whole suite runs in parallel. The assertion at line 129 expects the propagated parent trace id 11111111111111111111111111111111 but gets a freshly generated one (for example db8413583cbfe976b54df00dc94c8fad).

It passes in isolation (deno run test integration/otel_logs_worker_correlation_test.ts --repeats 5: 5/5 green). It failed once in three verify-build runs on the issue-2428 branch, whose changes do not touch tracing or logging.

The stack runs through runWithParentTrace (src/infrastructure/tracing/parent_trace.ts) and withSpan (src/infrastructure/tracing/tracer.ts), which use the process-global OpenTelemetry context manager and AsyncLocalStorage, so another test file that installs or resets the global tracer/context manager concurrently is the likely cause.

Expected

The test passes deterministically under the full parallel suite and under --repeats, per the AGENTS.md timing and flakiness rules (no reliance on process-global state shared across test files).

Found during verification of swamp-club#2428.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 7 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/25/2026, 10:26:48 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack9/25/2026, 9:41:32 PM
Editable. Press Enter to edit.

zack commented 9/25/2026, 9:41:27 PM

Reopening: the flake is still being investigated. Triaging and attempting a reproduction under the full parallel suite.

Sign in to post a ripple.