Skip to content

test(server-utils): Remove hapi unit test that replicated SDK async-context logic#22100

Merged
andreiborza merged 1 commit into
developfrom
ab/remove-hapi-unit-test
Jul 8, 2026
Merged

test(server-utils): Remove hapi unit test that replicated SDK async-context logic#22100
andreiborza merged 1 commit into
developfrom
ab/remove-hapi-unit-test

Conversation

@andreiborza

@andreiborza andreiborza commented Jul 8, 2026

Copy link
Copy Markdown
Member

Removes the hapi unit test that stubbed the SDK's async context strategy to drive spans, which replicated SDK internals in the test layer. Per the review thread in #21885, we rely on the integration tests instead.

The orchestrion path is covered by the hapi node integration suite. hapi-utils.test.ts stays (pure metadata formatting, no async-context stubbing). The remaining unit-only assertions checked internal implementation details (setup only wrapping once when called twice, no span without an active span, accepting the ext handler as a tuple or an object) rather than the spans a user actually sees, so there was nothing meaningful to move into an integration test.

Ref: #21885 (comment)

…ontext logic

The suite stubbed the SDK's async context strategy via `setAsyncContextStrategy` to
drive spans, duplicating SDK internals in the test layer. The hapi node integration
suite already covers the orchestrion path end to end. `hapi-utils.test.ts` (pure
metadata formatting, no async-context stubbing) is kept.

Co-Authored-By: Opus 4.8 <noreply@anthropic.com>
@andreiborza andreiborza requested a review from a team as a code owner July 8, 2026 15:26
@andreiborza andreiborza requested review from JPeer264, chargome, isaacs, logaretm, mydea and s1gr1d and removed request for a team July 8, 2026 15:26
@andreiborza andreiborza merged commit a758b82 into develop Jul 8, 2026
416 of 419 checks passed
@andreiborza andreiborza deleted the ab/remove-hapi-unit-test branch July 8, 2026 18:00
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