Repository navigation
fix(verify-pack): resolve workspace deps so entry points fully load - #7138
Merged
overbalance merged 2 commits intoSep 29, 2026
Merged
overbalance merged 2 commits into
overbalance merged 2 commits into
Conversation
Pull request dashboard statusMerged · refreshed 2026-09-29 22:05 UTC Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7138 +/- ##
=======================================
Coverage 95.04% 95.04%
=======================================
Files 383 383
Lines 13468 13468
Branches 3100 3100
=======================================
Hits 12801 12801
Misses 667 667 🚀 New features to boost your workflow:
|
JacksonWeber
approved these changes
Sep 29, 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.
Which problem is this PR solving?
verify-packextracts each tarball intoos.tmpdir(). From there, Node cannot find the repo'snode_modules, so every import of a sibling workspace package fails. The script logs these asskip(declared dependency, not packed) and still reportsok.On
main, a run logs 119 skips. Only 4 of 38 packages (api,api-logs,semantic-conventions,propagator-env-carrier) load fully. For the other 34, the CJS entry stops at its firstrequireof a dependency, and the ESM entry fails to link before it runs. The require/import check then proves little more than "the file exists in the tarball".Short description of the changes
Create the scratch directory in the root
node_modules. Dependencies now resolve to the built workspace packages, and self-references still resolve to the extracted tarball.walk()already skipsnode_modules, so the scratch copy is not picked up as a package. The skip path inhandleLoadErrorstays as a fallback for third-party dependencies that are not installed.Type of change
How Has This Been Tested?
npm run compile, thennpm run verify-pack: 0 skips (was 119), all 38 packages pass.packages/opentelemetry-core/dist/utils/url.{cjs,mjs}and ran both versions:main:ok @opentelemetry/corewith 6 skips.FAIL @opentelemetry/core, withrequire(".")andimport(".")both reporting the missing file.Checklist: