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

@krishicks krishicks 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)

@krishicks
krishicks enabled auto-merge August 3, 2026 23:19
@krishicks
krishicks force-pushed the hicks/push-mnmulylrwmwv branch from e0bd740 to 95788b1 Compare August 4, 2026 01:59
Comment thread crates/openshell-server/src/otel_tracing.rs Outdated
Comment thread crates/openshell-server/src/otel_tracing.rs Outdated
@krishicks
krishicks force-pushed the hicks/push-mnmulylrwmwv branch 3 times, most recently from 5565fdd to 6d78860 Compare August 4, 2026 14:11
@krishicks krishicks changed the title test(server): fix TracingTestGuard drop order and add force_flush test(server): fix race condition in tracing tests Aug 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 force-pushed the hicks/push-mnmulylrwmwv branch from 6d78860 to 2f1bbab Compare August 4, 2026 14:53
@krishicks
krishicks added this pull request to the merge queue Aug 4, 2026
Merged via the queue into main with commit 4d55265 Aug 4, 2026
48 checks passed
@krishicks
krishicks deleted the hicks/push-mnmulylrwmwv branch August 4, 2026 17:14
Sign up for free to 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