Skip to content

test(server): fix race condition in tracing tests - #2604

Merged
krishicks merged 1 commit into
mainfrom
hicks/push-mnmulylrwmwv
Aug 4, 2026
Merged

test(server): fix race condition in tracing tests#2604
krishicks merged 1 commit into
mainfrom
hicks/push-mnmulylrwmwv

Conversation

@krishicks

@krishickskrishicks commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Try to fix the flaky tracing tests.

Related Issue

Changes

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Comment threadcrates/openshell-server/src/otel_tracing.rs Outdated
Comment threadcrates/openshell-server/src/otel_tracing.rs Outdated
@krishicks
krishicksforce-pushed the hicks/push-mnmulylrwmwv branch 3 times, most recently from 5565fdd to 6d78860CompareAugust 4, 2026 14:11
@krishickskrishicks changed the title test(server): fix TracingTestGuard drop order and add force_flushtest(server): fix race condition in tracing testsAug 4, 2026
Keep the completed instrumented handler future in an explicit pinned box and
drop it after the await. This releases the handler-side request span clone
before the disconnect test checks producer ownership, avoiding compiler- and
platform-dependent retention of an unfinished span.
Signed-off-by: Kris Hicks <khicks@nvidia.com>
@krishicks
krishicks added this pull request to the merge queueAug 4, 2026
Merged via the queue into main with commit 4d55265Aug 4, 2026
48 checks passed
@krishicks
krishicks deleted the hicks/push-mnmulylrwmwv branch August 4, 2026 17:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@krishicks@matthewgrossman