-
Notifications
You must be signed in to change notification settings - Fork 55
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
[DEP0040] DeprecationWarning: The punycode
module is deprecated. Please use a userland alternative instead.
#1283
Comments
Hi @tlunsfordCXP! What version of the Docker image are you using? |
Thanks for reporting! The issue started in $ docker run --entrypoint node datadog/ci:v2.24.1 --version
v20.8.1
$ docker run --entrypoint node datadog/ci:v2.25.0 --version
v21.4.0 To reproduce the issue: $ docker run -e NODE_OPTIONS=--trace-deprecation datadog/ci:v2.25.0 2>&1 | tail -n 14
You can also print more details about any of these commands by calling them with
the `-h,--help` flag right after the command name.
(node:1) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:397:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:333:10)
at loadBuiltinModule (node:internal/modules/helpers:101:7)
at Module._load (node:internal/modules/cjs/loader:1001:17)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/usr/local/lib/node_modules/@datadog/datadog-ci/node_modules/ent/encode.js:1:16)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) As you can see, the warning comes from It uses This package is imported by $ yarn why -R ent
└─ @datadog/datadog-ci@workspace:.
└─ @google-cloud/logging@npm:11.0.0 (via npm:^11.0.0)
└─ @google-cloud/common@npm:5.0.1 (via npm:^5.0.0)
└─ ent@npm:2.2.0 (via npm:^2.2.0) Since |
Thank you!
|
Hi @tlunsfordCXP! googleapis/nodejs-common#812 was merged and released! 🎉 But sadly, the warning still remains, and this time it's because of the This was already reported in googleapis/gaxios#429 (comment), and is tracked in googleapis/gaxios#508. We'll have to wait for |
Progress! Thank you!
Looks like that gaxios issue is fixed and awaiting their next release. 🤞
|
It looks like this package still needs punycode via ajv
|
Hi @fishpen0! The yarn why -R punycode
└─ @datadog/datadog-ci@workspace:.
├─ @microsoft/eslint-formatter-sarif@npm:3.1.0 (via npm:^3.0.0)
│ └─ eslint@npm:8.57.0 (via npm:^8.9.0)
│ ├─ @eslint/eslintrc@npm:2.1.4 (via npm:^2.1.4)
│ │ └─ ajv@npm:6.12.6 (via npm:^6.12.4)
│ │ └─ uri-js@npm:4.4.1 (via npm:^4.2.2)
│ │ └─ punycode@npm:2.3.1 (via npm:^2.1.0)
│ └─ ajv@npm:6.12.6 (via npm:^6.12.4)
└─ eslint@npm:7.32.0 (via npm:^7.32.0)
├─ @eslint/eslintrc@npm:0.4.3 (via npm:^0.4.3)
│ └─ ajv@npm:6.12.6 (via npm:^6.12.4)
└─ ajv@npm:6.12.6 (via npm:^6.10.0) We can still see the deprecation message in the latest version of datadog-ci: $ docker run -e NODE_OPTIONS=--trace-deprecation datadog/ci:v2.46.2
(node:1) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
at loadBuiltinModule (node:internal/modules/helpers:114:7)
at Function._load (node:internal/modules/cjs/loader:1100:17)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/usr/local/lib/node_modules/@datadog/datadog-ci/node_modules/whatwg-url/lib/url-state-machine.js:2:18) And as I said above, this is caused by yarn why -R whatwg-url
└─ @datadog/datadog-ci@workspace:.
├─ @google-cloud/logging@npm:11.1.0 (via npm:^11.1.0)
│ ├─ @google-cloud/common@npm:5.0.2 (via npm:^5.0.0)
│ │ ├─ google-auth-library@npm:9.7.0 (via npm:^9.0.0)
│ │ │ ├─ gaxios@npm:6.7.0 (via npm:^6.1.1)
│ │ │ │ └─ node-fetch@npm:2.7.0 [22a35] (via npm:^2.6.9 [22a35])
│ │ │ │ └─ whatwg-url@npm:5.0.0 (via npm:^5.0.0)
│ │ │ ├─ gcp-metadata@npm:6.1.0 (via npm:^6.1.0)
│ │ │ │ └─ gaxios@npm:6.7.0 (via npm:^6.0.0)
│ │ │ └─ gtoken@npm:7.1.0 (via npm:^7.0.0)
│ │ │ └─ gaxios@npm:6.7.0 (via npm:^6.0.0)
│ │ ├─ retry-request@npm:7.0.2 (via npm:^7.0.0)
│ │ │ └─ teeny-request@npm:9.0.0 (via npm:^9.0.0)
│ │ │ └─ node-fetch@npm:2.7.0 [22a35] (via npm:^2.6.9 [22a35])
│ │ └─ teeny-request@npm:9.0.0 (via npm:^9.0.0)
│ ├─ gcp-metadata@npm:6.1.0 (via npm:^6.0.0)
│ ├─ google-auth-library@npm:9.7.0 (via npm:^9.0.0)
│ └─ google-gax@npm:4.3.8 (via npm:^4.0.3)
│ ├─ google-auth-library@npm:9.7.0 (via npm:^9.3.0)
│ ├─ retry-request@npm:7.0.2 (via npm:^7.0.0)
│ └─ node-fetch@npm:2.7.0 [22a35] (via npm:^2.6.9 [22a35])
├─ @google-cloud/run@npm:1.4.0 (via npm:^1.4.0)
│ └─ google-gax@npm:4.3.8 (via npm:^4.0.3)
├─ google-auth-library@npm:9.12.0 (via npm:^9.12.0)
│ ├─ gaxios@npm:6.7.0 (via npm:^6.1.1)
│ ├─ gcp-metadata@npm:6.1.0 (via npm:^6.1.0)
│ └─ gtoken@npm:7.1.0 (via npm:^7.0.0)
└─ pkg@npm:5.8.1 [77038] (via npm:5.8.1 [77038])
└─ pkg-fetch@npm:3.4.2 (via npm:3.4.2)
└─ node-fetch@npm:2.7.0 [22a35] (via npm:^2.6.9 [22a35]) This may have been fixed since my last message though, so I'll look into a possible update. |
Bug description
Running
datadog-ci git-metadata upload
returns the following error every time:[DEP0040] DeprecationWarning: The
punycodemodule is deprecated. Please use a userland alternative instead.
This sort of warning makes it very difficult to maintain clean CI/CD pipelines. These warnings build up and eventually hide items that are real issues. ...which make this sort of issue a real issue.
The history of this repo shows the warning as occurring in this code for well over a year.
Describe what you expected
No warning.
Steps to reproduce the issue
datadog-ci git-metadata upload
Additional context
Run in docker container
datadog/ci
.Command
git-metadata
The text was updated successfully, but these errors were encountered: