Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@opentelemetry/api:test): Major upgrade of webpack to 5.85.0 and use xxhash64 hash function #4322

Closed
wants to merge 3 commits into from

Conversation

evantorrie
Copy link

Which problem is this PR solving?

Fixes errors when trying to run unit tests on Mac OS with Node v18 and above.

Fixes #4321

Short description of the changes

Upgrade webpack from 4.46.0 to 5.85.0

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Ran all tests locally. All tests now pass instead of throwing errors about unsupported openssl functions

Checklist:

  • Followed the style guidelines of this project
  • [n/a] Unit tests have been added
  • Documentation has been updated

Unclear whether this requires a CHANGELOG.md update -- since it a bug fix to unit tests.

This fixes @opentelemetry/api:test failures of the form

```
3) tree-shaking
     verify TraceAPI:
   Uncaught Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (node_modules/webpack/lib/NormalModule.js:471:10)
```
@evantorrie evantorrie requested a review from a team November 22, 2023 20:34
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Merging #4322 (56c5338) into main (b3a539d) will increase coverage by 0.32%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4322      +/-   ##
==========================================
+ Coverage   92.31%   92.63%   +0.32%     
==========================================
  Files         330      296      -34     
  Lines        9424     8300    -1124     
  Branches     1998     1717     -281     
==========================================
- Hits         8700     7689    -1011     
+ Misses        724      611     -113     

see 63 files with indirect coverage changes

@evantorrie
Copy link
Author

Clearly, webpack-5.x is more than I can deal with... I defer to someone else who understands webpack/karma/browser runners better than I do.

@evantorrie evantorrie closed this Nov 24, 2023
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.

webpack createHash errors in @opentelemetry/api:test
1 participant