Skip to content

fix(verify-pack): read the npm 12 pack --json output - #7133

Merged
trentm merged 2 commits into
open-telemetry:mainfrom
embrace-io:overbalance/verify-pack-npm-12
Sep 29, 2026
Merged

trentm merged 2 commits into
open-telemetry:mainfrom
embrace-io:overbalance/verify-pack-npm-12

Conversation

@overbalance

Copy link
Copy Markdown
Contributor

Summary

npm run verify-pack fails for every package on npm 12 with Cannot read properties of undefined (reading 'filename').

npm pack --json changed shape in npm 12. npm 11 returns an array of results. npm 12 returns an object keyed by package name:

// npm 11
[{ "id": "@opentelemetry/template@3.0.0-development.0", "filename": "...", ... }]
// npm 12
{ "@opentelemetry/template": { "id": "@opentelemetry/template@3.0.0-development.0", "filename": "...", ... } }

The script now accepts both shapes. CI uses npm 11 and is not affected. The failure shows up locally for contributors on npm 12, which the devEngines floor (>=11.10.0) allows.

How Has This Been Tested?

  • Confirmed both shapes with npm pack --dry-run --json on npm 12.1.0 and npx npm@11.
  • npm run verify-pack on npm 12.1.0: all 38 packages resolve.

@overbalance
overbalance requested a review from a team as a code owner September 29, 2026 00:05
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-09-29 00:24 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.04%. Comparing base (e696b3e) to head (9e9cc08).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7133   +/-   ##
=======================================
  Coverage   95.04%   95.04%           
=======================================
  Files         383      383           
  Lines       13455    13455           
  Branches     3094     3094           
=======================================
  Hits        12788    12788           
  Misses        667      667           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@trentm
trentm added this pull request to the merge queue Sep 29, 2026
Merged via the queue into open-telemetry:main with commit e276856 Sep 29, 2026
25 checks passed
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