Tengda-He / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
0 stars 3 forks source link

Node V12.22.7 Integration Test Failures #64

Open Carthanial opened 2 years ago

Carthanial commented 2 years ago

The following files contain failed tests when running the Jenkins Integration Test stage...

src/core/server/metrics/integration_tests/server_collector.test.ts

src/dev/npm/integration_tests/installed_packages.test.ts

The following error/warning logs when the stage fails out...

(node:1231) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated Node.js process-warning detected:

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

at new Object..module.exports.internals.Response (/var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/shot/lib/response.js:22:23) at /var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/shot/lib/index.js:62:21 at new Promise () at Object..exports.inject (/var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/shot/lib/index.js:59:12) at Object..internals.Server.inject (/var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/hapi/lib/server.js:295:32) at KbnServer.inject (/var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/src/legacy/server/kbn_server.js:198:30) at Object. (/var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/src/core/server/ui_settings/integration_tests/doc_missing.ts:28:21) at Object.asyncJestLifecycle (/var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:53:37) at /var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/jest-jasmine2/build/queueRunner.js:43:12 at new Promise () at mapper (/var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/jest-jasmine2/build/queueRunner.js:26:19) at /var/lib/jenkins/workspace/Kibana_bfs7.7.1-upgrade/node_modules/jest-jasmine2/build/queueRunner.js:73:41 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) Terminating process...

error Command failed with exit code 1.

Following same SOP in solving issue #62

Carthanial commented 2 years ago
This deprecation warning/errors seem to be from an old unmaintained module shot which has been replaced by @hapi/shot. Proposed fix is to install that dependency and run the Jenkins pipeline again.

This understanding comes from looking through the node_modules files where these errors occur and seeing that they all are either inside of the shot module or are using tooling from it.

zhyuanqi commented 2 years ago

Hi. After investigate with the code.