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

Cleanup package.json resolutions. #99456

Merged
merged 10 commits into from
May 19, 2021

Conversation

azasypkin
Copy link
Member

@azasypkin azasypkin commented May 6, 2021

Summary

Cleanup/upgrade of the package.json resolutions where it was feasible.

@azasypkin azasypkin added chore release_note:skip Skip the PR/issue when compiling release notes v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed labels May 6, 2021
@@ -324,7 +323,6 @@
"react-ace": "^5.9.0",
"react-beautiful-dnd": "^13.0.0",
"react-color": "^2.13.8",
"react-datetime": "^2.14.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

note: it's not used anywhere

"**/chokidar": "^3.4.3",
"**/cross-fetch/node-fetch": "^2.6.1",
Copy link
Member Author

Choose a reason for hiding this comment

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

note: we don't have any package that depends on cross-fetch right now.

@@ -87,7 +86,7 @@
"**/react-syntax-highlighter": "^15.3.1",
"**/react-syntax-highlighter/**/highlight.js": "^10.4.1",
"**/request": "^2.88.2",
"**/trim": "0.0.3",
"**/trim": "1.0.1",
Copy link
Member Author

Choose a reason for hiding this comment

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

note: really, nothing to worry about, just moved to a proper semver.

@azasypkin azasypkin marked this pull request as ready for review May 6, 2021 13:26
@azasypkin azasypkin requested a review from a team as a code owner May 6, 2021 13:26
@azasypkin azasypkin requested a review from a team May 6, 2021 13:26
yarn.lock Outdated
Comment on lines 5377 to 5382
"@types/node@*", "@types/[email protected]", "@types/[email protected]", "@types/[email protected]", "@types/node@>= 8", "@types/node@>=8.9.0", "@types/node@^10.1.0":
version "14.14.44"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.44.tgz#df7503e6002847b834371c004b372529f3f85215"
integrity sha512-+gaugz6Oce6ZInfI/tK4Pq5wIIkJMEJUu92RB3Eu93mtj4wjjjz9EB5mLp5s1pSsLXdC/CPut/xF20ZzAQJbTA==

"@types/[email protected]":
Copy link
Contributor

Choose a reason for hiding this comment

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

These should probably be consolidated

@@ -71,9 +71,8 @@
"url": "https://github.com/elastic/kibana.git"
},
"resolutions": {
"**/@types/node": "14.14.14",
"**/@types/node": "14.14.44",
Copy link
Contributor

Choose a reason for hiding this comment

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

We should update our own reference in the package.json file as well

@azasypkin azasypkin requested review from a team as code owners May 6, 2021 16:42
Copy link
Contributor

@mshustov mshustov left a comment

Choose a reason for hiding this comment

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

ok for the Core changes

@azasypkin azasypkin requested a review from watson May 10, 2021 10:02

timeout = setTimeout(
timeout = window.setTimeout(
Copy link
Contributor

Choose a reason for hiding this comment

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

what caused the need for this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's because of NodeJS typings update that might have (finally) made setTimeout related types stricter. We don't yet clearly separate environments for TS compiler to know that this setTimeout is supposed to be provided by the browser and TS assumes that it's a NodeJS one. NodeJS setTimeout is a different API with a different return type (NodeJS.Timeout instead of number) than what browsers provide.

@azasypkin azasypkin requested a review from poffdeluxe May 17, 2021 07:24
Copy link
Contributor

@poffdeluxe poffdeluxe left a comment

Choose a reason for hiding this comment

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

Presentation changes lgtm -- I tested out the shareable runtime and found no issues

@azasypkin azasypkin enabled auto-merge (squash) May 19, 2021 18:20
@azasypkin
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

kibanamachine commented May 19, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Jest Integration Tests.src/core/server/saved_objects/migrationsv2/integration_tests.migration v2 rewrites id deterministically for SO with namespaceType: "multiple" and "multiple-isolated"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/98351


Stack Trace

: Timeout - Async callback was not invoked within the 280000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 280000 ms timeout specified by jest.setTimeout.Error: 
    at new Spec (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmine/Spec.js:116:22)
    at new Spec (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/setup_jest_globals.js:78:9)
    at specFactory (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmine/Env.js:523:24)
    at Env.it (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmine/Env.js:592:24)
    at Env.it (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:134:23)
    at it (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmine/jasmineLight.js:100:21)
    at Suite.<anonymous> (/dev/shm/workspace/parallel/3/kibana/src/core/server/saved_objects/migrationsv2/integration_tests/rewriting_id.test.ts:110:3)
    at addSpecsToSuite (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmine/Env.js:444:51)
    at Env.describe (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmine/Env.js:414:11)
    at describe (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/jasmine/jasmineLight.js:88:18)
    at Object.<anonymous> (/dev/shm/workspace/parallel/3/kibana/src/core/server/saved_objects/migrationsv2/integration_tests/rewriting_id.test.ts:91:1)
    at Runtime._execModule (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-runtime/build/index.js:1299:24)
    at Runtime._loadModule (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-runtime/build/index.js:898:12)
    at Runtime.requireModule (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-runtime/build/index.js:746:10)
    at jasmine2 (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-jasmine2/build/index.js:230:13)
    at runTestInternal (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-runner/build/runTest.js:380:22)
    at runTest (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-runner/build/runTest.js:472:34)

Metrics [docs]

Unknown metric groups

References to deprecated APIs

id before after diff
canvas 29 25 -4
crossClusterReplication 8 6 -2
fleet 22 20 -2
globalSearch 4 2 -2
indexManagement 12 7 -5
infra 261 149 -112
lens 67 45 -22
licensing 18 15 -3
maps 286 208 -78
ml 121 115 -6
monitoring 109 56 -53
stackAlerts 101 95 -6
total -295

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@azasypkin azasypkin merged commit c6e8ee2 into elastic:master May 19, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 19, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 19, 2021
@azasypkin azasypkin deleted the issue-xxx-update-resolutions branch May 20, 2021 05:54
yctercero pushed a commit to yctercero/kibana that referenced this pull request May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed chore release_note:skip Skip the PR/issue when compiling release notes v7.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants