-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
[11.x] test-require-deps-deprecation fails on --without-ssl
builds
#26480
Comments
--with-ssl
--without-ssl
builds
So for the
|
I was not able to reproduce the issue locally. I suggest we just remove the tests in v11. Any objections? |
It does reproduce for me. |
Regarding the patch$ git diff
diff --git a/test/parallel/test-require-deps-deprecation.js b/test/parallel/test-require-deps-deprecation.js
index 5bee24a5db..aba84b5af7 100644
--- a/test/parallel/test-require-deps-deprecation.js
+++ b/test/parallel/test-require-deps-deprecation.js
@@ -4,9 +4,6 @@ const common = require('../common');
const assert = require('assert');
const deprecatedModules = [
- 'node-inspect/lib/_inspect',
- 'node-inspect/lib/internal/inspect_client',
- 'node-inspect/lib/internal/inspect_repl',
'v8/tools/SourceMap',
'v8/tools/codemap',
'v8/tools/consarray',
@@ -19,6 +16,12 @@ const deprecatedModules = [
'v8/tools/tickprocessor-driver'
];
+if (common.hasCrypto) {
+ deprecatedModules.push('node-inspect/lib/_inspect',
+ 'node-inspect/lib/internal/inspect_client',
+ 'node-inspect/lib/internal/inspect_repl');
+}
+
// Newly added deps that do not have a deprecation wrapper around it would
// throw an error, but no warning would be emitted.
const deps = [ |
For posterity, |
Prior to b280d90: -bash-4.2$ ./node
> require('node-inspect/lib/_inspect')
Thrown:
Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support
at assertCrypto (internal/util.js:101:11)
at crypto.js:31:1
at NativeModule.compile (internal/bootstrap/loaders.js:341:5)
at Function.NativeModule.require (internal/bootstrap/loaders.js:213:16)
at NativeModule.requireForDeps (internal/bootstrap/loaders.js:228:23)
at internal/deps/node-inspect/lib/internal/inspect_client.js:24:16
at NativeModule.compile (internal/bootstrap/loaders.js:341:5)
at Function.NativeModule.require (internal/bootstrap/loaders.js:213:16)
at NativeModule.requireForDeps (internal/bootstrap/loaders.js:228:23)
> (node:3877) [DEP0084] DeprecationWarning: Requiring Node.js-bundled 'node-inspect/lib/_inspect' module is deprecated. Please install the necessary module locally.
> .exit After we get an extra second deprecation warning which then causes the test to fail because the test is expecting a 1:1 mapping between the list of modules in it and warnings: -bash-4.2$ ./node
> require('node-inspect/lib/_inspect')
Thrown:
Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support
at assertCrypto (internal/util.js:101:11)
at crypto.js:31:1
at NativeModule.compile (internal/bootstrap/loaders.js:317:5)
at Function.NativeModule.require (internal/bootstrap/loaders.js:220:7)
at NativeModule.requireWithFallbackInDeps (internal/bootstrap/loaders.js:239:23)
at internal/deps/node-inspect/lib/internal/inspect_client.js:24:16
at NativeModule.compile (internal/bootstrap/loaders.js:317:5)
at NativeModule.require (internal/bootstrap/loaders.js:220:7)
> (node:5615) [DEP0084] DeprecationWarning: Requiring Node.js-bundled 'node-inspect/lib/_inspect' module is deprecated. Please install the necessary module locally.
(node:5615) [DEP0084] DeprecationWarning: Requiring Node.js-bundled 'node-inspect/lib/internal/inspect_client' module is deprecated. Please install the necessary module locally.
.exit
-bash-4.2$ node/test/parallel/test-require-deps-deprecation.js Lines 6 to 20 in 3c277d7
node/test/parallel/test-require-deps-deprecation.js Lines 29 to 32 in 3c277d7
Of the modules in the list only diff --git a/test/parallel/test-require-deps-deprecation.js b/test/parallel/
index 5bee24a..e2c8e9c 100644
--- a/test/parallel/test-require-deps-deprecation.js
+++ b/test/parallel/test-require-deps-deprecation.js
@@ -4,7 +4,6 @@ const common = require('../common');
const assert = require('assert');
const deprecatedModules = [
- 'node-inspect/lib/_inspect',
'node-inspect/lib/internal/inspect_client',
'node-inspect/lib/internal/inspect_repl',
'v8/tools/SourceMap', |
If this file is loaded with Node.js build without ssl, it will load 'node-inspect/lib/internal/inspect_client' as well. Due to that two deprecation warnings will be emitted instead of one and the test fails. It should be safe to just test all other cases and to ignore this specific file. PR-URL: #26619 Fixes: #26480 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
If this file is loaded with Node.js build without ssl, it will load 'node-inspect/lib/internal/inspect_client' as well. Due to that two deprecation warnings will be emitted instead of one and the test fails. It should be safe to just test all other cases and to ignore this specific file. PR-URL: nodejs#26619 Fixes: nodejs#26480 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
If this file is loaded with Node.js build without ssl, it will load 'node-inspect/lib/internal/inspect_client' as well. Due to that two deprecation warnings will be emitted instead of one and the test fails. It should be safe to just test all other cases and to ignore this specific file. PR-URL: #26619 Fixes: #26480 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
If this file is loaded with Node.js build without ssl, it will load 'node-inspect/lib/internal/inspect_client' as well. Due to that two deprecation warnings will be emitted instead of one and the test fails. It should be safe to just test all other cases and to ignore this specific file. PR-URL: #26619 Fixes: #26480 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
We have only just enabled the
--without-ssl
builds in the last week: nodejs/build#1574The test in question doesn't exist in
master
(removed in #25138 which is semver-major). I kicked off https://ci.nodejs.org/job/node-test-commit-linux-containered/11117/ againstv11.x
(i.e. 11.10.1) and the test failed there so it's not a new regression in this proposed release so I'm okay with ignoring this for now but we do need to address it so the builds pass for the next 11.x release.Originally posted by @richardlau in #26322 (comment)
The text was updated successfully, but these errors were encountered: