Skip to content

Move vendored dependencies to non-standard folder#7115

Merged
BridgeAR merged 12 commits intomasterfrom
vendor-relative
Dec 16, 2025
Merged

Move vendored dependencies to non-standard folder#7115
BridgeAR merged 12 commits intomasterfrom
vendor-relative

Conversation

@rochdev
Copy link
Copy Markdown
Member

@rochdev rochdev commented Dec 15, 2025

What does this PR do?

Move vendored dependencies to non-standard folder.

Motivation

Yarn v2+ deletes all node_modules folder in the entire tree of dependencies, making it impossible to write standard Node code.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 15, 2025

Overall package size

Self size: 4.34 MB
Deduped: 5.22 MB
No deduping: 5.22 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 1.15.0 | 127.66 kB | 856.24 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-datadog-prod-us1
Copy link
Copy Markdown

datadog-datadog-prod-us1 Bot commented Dec 15, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 938d7f6 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Dec 15, 2025

Benchmarks

Benchmark execution time: 2025-12-16 01:08:00

Comparing candidate commit 938d7f6 in PR branch vendor-relative with baseline commit a8ed0d8 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 288 metrics, 32 unstable metrics.

Copy link
Copy Markdown
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % linting issues

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 15, 2025

Codecov Report

❌ Patch coverage is 97.36842% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.85%. Comparing base (a8ed0d8) to head (938d7f6).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...dog-instrumentations/src/helpers/rewriter/index.js 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7115      +/-   ##
==========================================
+ Coverage   84.78%   84.85%   +0.07%     
==========================================
  Files         521      516       -5     
  Lines       22149    22006     -143     
==========================================
- Hits        18778    18674     -104     
+ Misses       3371     3332      -39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@rochdev rochdev marked this pull request as ready for review December 15, 2025 23:47
@rochdev rochdev requested review from a team as code owners December 15, 2025 23:47
@rochdev rochdev requested review from BridgeAR and removed request for a team December 15, 2025 23:47
const net = require('net')
const zlib = require('zlib')
const { Profile } = require('pprof-format')
const { Profile } = require('../../vendor/dist/pprof-format')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really annoying. I'm almost considering a build step just to not have to do this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I think we can look into this again at a later point

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm almost considering a build step just to not have to do this

That should be how we do this anyway, but unfortunately it is not currently possible as the code is not modularized, so we can't bundle individual features properly, and bundling a single output is unacceptable because of Serverless.

@BridgeAR BridgeAR merged commit 86b4f71 into master Dec 16, 2025
793 checks passed
@BridgeAR BridgeAR deleted the vendor-relative branch December 16, 2025 14:56
dd-octo-sts Bot pushed a commit that referenced this pull request Dec 16, 2025
This is required to make sure yarn 2+ continues to work as
expected. It would otherwise remove the node_modules folder during
install. That would break dd-trace usage.
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Dec 16, 2025
BridgeAR pushed a commit that referenced this pull request Dec 17, 2025
This is required to make sure yarn 2+ continues to work as
expected. It would otherwise remove the node_modules folder during
install. That would break dd-trace usage.
nina9753 pushed a commit that referenced this pull request Dec 20, 2025
This is required to make sure yarn 2+ continues to work as
expected. It would otherwise remove the node_modules folder during
install. That would break dd-trace usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants