Fix OTEL SDK teardown errors breaking CI with vitest 4.1.0#620
Merged
peter-leonov-ch merged 2 commits intodependabot/npm_and_yarn/dev-dependencies-19b399dc78from Mar 16, 2026
Merged
Conversation
|
|
Co-authored-by: peter-leonov-ch <209667683+peter-leonov-ch@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
[WIP] Bump dev-dependencies group across 1 directory with 15 updates
Fix OTEL SDK teardown errors breaking CI with vitest 4.1.0
Mar 15, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
peter-leonov-ch
approved these changes
Mar 16, 2026
a55ee13
into
dependabot/npm_and_yarn/dev-dependencies-19b399dc78
56 checks passed
peter-leonov-ch
added a commit
that referenced
this pull request
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vitest 4.1.0 (bumped by dependabot) now awaits and propagates OTEL SDK
shutdown()errors as fatal. WhenOTEL_EXPORTER_OTLP_ENDPOINTis unavailable, the SDK falls back tolocalhost:4318, fails withECONNREFUSEDon teardown, and the entire test run exits with code 1 — even though all tests passed.vitest.node.otel.js: Export aProxywrapping the SDK instead of the raw instance. Interceptsshutdown()andforceFlush()to catch and warn on errors rather than propagate them. All other SDK method/property access is forwarded transparently viaReflect.get.Checklist
Delete items not relevant to your PR:
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.